/* =====================================================================
   events.css — Events page components
   Full page-hero block included here, matching the pattern in
   careers.css / media.css (each page owns the complete set).
   ===================================================================== */

/* ---- Page hero (full block, same pattern as careers.css) ---- */
.page-hero{color:#fff;isolation:isolate;align-items:center;min-height:520px;padding-block:5rem;display:flex;overflow:hidden}
.page-hero__bg{z-index:-2;background-position:50%;background-size:cover;position:absolute;inset:0}
.page-hero:after{content:"";z-index:-1;background:linear-gradient(90deg,#101418a0 0%,#1014187a 45%,#10141840 100%),linear-gradient(#10141800 40%,#1014185c);position:absolute;inset:0}
/* Hero photo (images/hero-events-team.webp): three of the MVS team at the
   booth with a FaceCapture unit. Below 1024px the copy spans the hero, so the
   photo fills it (cover) behind a fade to black, framed on the team; the
   short top fade keeps the nav readable over the banner lettering. */
.page-hero:after{background:linear-gradient(#000000d9 0,#00000000 180px),linear-gradient(90deg,#000 0%,#000000eb 45%,#000000b3 75%,#00000080 100%)}
.page-hero__bg--events{background-position:62% 0%}
/* From 1024px the photo layer starts 415px past the start of the text column
   (the .container's left edge) and runs to the hero's right edge, so the
   team lands just right of the copy at every width with no black strip on the
   right. The hero behind it is black and the fade runs from solid black at
   the photo's left edge over the banner backdrop, so the copy always sits on
   black. Worst pixel behind the rendered text, 375-1920px and through the
   zoom: H1 5.9:1, lead 5.5:1, eyebrow 7.1:1. Re-measure if the photo changes. */
@media (width>=1024px){
  .page-hero{background:#000}
  /* The Ken Burns zoom grows from the photo's left edge, not its centre, so it
     never creeps under the copy. */
  .page-hero__bg--events{left:calc(max(20px,(100% - 1440px)/2) + 415px);right:0;background-size:cover;background-position:left 0 top 0;transform-origin:left top}
  .page-hero:after{background:linear-gradient(#000000f2 0,#000000b3 90px,#00000000 200px),linear-gradient(90deg,#000 0,#000 calc(max(20px,(100% - 1440px)/2) + 415px),#00000000 calc(max(20px,(100% - 1440px)/2) + 615px))}
}
.page-hero__inner{max-width:760px}
.page-hero .eyebrow{color:var(--sage);text-shadow:0 1px 8px #0009}

.page-hero h1{color:#fff;text-shadow:0 2px 18px #00000080;margin-bottom:1.3rem;font-size:clamp(2.4rem,4.6vw,3.8rem)}
.page-hero p{font-size:var(--fs-lead);color:#fff;text-shadow:0 1px 12px #0009;max-width:580px}

/* ---- Section ---- */
.events { background: #F4F5F0; }

/* ---- Grid ---- */
.events__grid {
  display: grid;
  /* minmax(0, 1fr), not 1fr: a plain 1fr track can't shrink below its
     content, so one long venue name made its column wider than the others. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* ---- Card ---- */
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  background-image:
    radial-gradient(#ffffffe0 20%, #fff0 72%),
    linear-gradient(#5f783217 1px, #0000 1px),
    linear-gradient(90deg, #5f783217 1px, #0000 1px);
  background-position: 0 0, -1px -1px, -1px -1px;
  background-size: 100% 100%, 28px 28px, 28px 28px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .12s var(--ease), border-color .12s var(--ease);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--mvs-green);
}

/* ---- Tag (same pattern as news-card__tag) ---- */
.event-card__tag {
  font-family: var(--font-display);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--olive-deep);
  font-size: .74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .9rem;
}

.event-card__tag::before {
  content: "";
  display: inline-block;
  background: var(--mvs-green);
  width: 16px;
  height: 2px;
}

/* ---- Heading ---- */
.event-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

/* ---- Date + location chips ---- */
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.event-card__chip {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  gap: .35rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .28rem .75rem;
  font-size: .82rem;
  color: var(--grey-700);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.45;
}

.event-card__chip svg {
  width: 13px;
  height: 13px;
  margin-top: .2em;
  color: var(--mvs-green);
  flex-shrink: 0;
}

/* ---- Body copy ---- */
.event-card p {
  color: var(--grey-500);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ---- CTA buttons ---- */
.event-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: auto;
}

/* Scale down the standard .btn slightly inside cards */
.event-card__actions .btn {
  padding: .65rem 1.2rem;
  font-size: .88rem;
}

/* ---- Empty state ---- */
.events__empty {
  color: var(--grey-500);
  text-align: center;
  font-size: 1rem;
  padding: 3rem 0;
}

/* ---- Responsive ---- */
@media (width <= 900px) {
  .events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 560px) {
  .events__grid { grid-template-columns: minmax(0, 1fr); }
}
