.lives-hero {
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 43vw, 38.5rem);
  padding: clamp(44px, 5.45vw, 86px) 0;
  background: radial-gradient(ellipse at 82% 30%, #2b579d, transparent 64%),
    linear-gradient(125deg, #142e62, #1c4384);
  color: #fff;
}
.lives-hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(26px, 4.2vw, 68px);
}
.lives-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 5.85rem);
  line-height: .98;
  margin: 0;
}
.lives-hero h1 span { display: block; color: #aed6f7; }
.lives-hero p {
  color: #e4efff;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.6;
  max-width: 29rem;
  margin: clamp(16px, 3vw, 24px) 0 0;
}
.lives-hero-action { margin-top: clamp(20px, 3.1vw, 34px); }
.lives-hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(96%, 37.5rem);
  justify-self: end;
  gap: clamp(6px, .75vw, 11px);
}
.lives-hero-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #b7dafa50;
  border-radius: clamp(7px, 1.25vw, 18px);
  background: #1a3a71;
  box-shadow: 0 10px 26px #0a1b3a36;
}
.lives-hero-gallery img:first-child { border-color: #83cbf2; }
@media (max-width: 760px) {
  .lives-hero { min-height: 0; padding: 34px 0 26px; }
  .lives-hero > .container { grid-template-columns: minmax(0, 1fr); }
  .lives-hero-gallery { justify-self: center; }
  .lives-hero h1 { font-size: clamp(2.22rem, 8.6vw, 4.4rem); }
}
.header nav a[href="/lives/"][aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.lives-catalog { padding: clamp(35px, 5vw, 64px) 0 clamp(52px, 7vw, 92px); background: #f3f7fc; scroll-margin-top: 58px; }
.lives-catalog [hidden] { display: none !important; }
.live-section + .live-section { margin-top: clamp(28px, 4vw, 52px); }
.live-section h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin: 0 0 14px; }
.lives-note { color: #405a83; }
.lives-load {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: #3f5882;
}
.live-list { display: grid; gap: 12px; }
.live-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: clamp(15px, 2.8vw, 30px);
  align-items: start;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #d8e4f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px #213e7309;
  scroll-margin-top: 100px;
}
.live-card time {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 77px;
  padding: 6px;
  border-radius: 12px;
  color: #204584;
  background: #eaf2fc;
  font-family: var(--display);
}
.live-card time strong { font-size: 1.7rem; line-height: 1.17; font-weight: 770; }
.live-card time span { font-size: .82rem; font-weight: 680; text-transform: uppercase; }
.live-card h3 {
  color: #16376e;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.live-card .live-description { color: #37527a; margin: 7px 0 0; max-width: 54ch; white-space: pre-line; overflow-wrap: anywhere; }
.live-date-text { color: #405a83; font-size: .9rem; margin: 0; }
.live-card-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: #edeeff;
  color: #213f76;
  font-size: .78rem;
  font-weight: 680;
  line-height: 1.4;
}
.live-card[data-status="upcoming"] {
  grid-template-columns: clamp(64px, 8vw, 76px) minmax(0, 1fr) auto;
  border: 2px solid #234e9b;
  box-shadow: 0 8px 26px #234e9b20;
}
.live-card[data-status="upcoming"] .live-card-actions {
  grid-column: 3;
  align-self: center;
  justify-self: end;
}
.live-card[data-status="upcoming"] .live-card-status { background: #dcefe9; color: #175546; }
.live-card[data-status="in_progress"] .live-card-status { background: #fff1d7; color: #684517; }
.live-card-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.live-card-actions .button { min-height: 44px; justify-content: center; white-space: normal; }
.live-card-actions .button-live-secondary { border: 1px solid #aac1e0; background: #fff; color: #1b3b75; }
.live-replay-note { font-size: .82rem; color: #405a83; text-align: center; }
.live-contact-theme { color: #234e9b; font-weight: 700; margin: 8px 0 16px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .live-card { grid-template-columns: 64px minmax(0, 1fr); }
  .live-card time { min-height: 66px; }
  .live-card-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .live-replay-note { width: 100%; text-align: left; }
}
@media (max-width: 600px) {
  .live-card { grid-template-columns: 54px minmax(0, 1fr); gap: 13px; }
  .live-card time { min-height: 57px; }
  .live-card time strong { font-size: 1.35rem; }
  .live-card time span { font-size: .72rem; }
  .live-card-actions { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
}
@media (max-width: 650px) {
  .live-card[data-status="upcoming"] {
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 35%);
  }
  .live-card[data-status="upcoming"] > time {
    grid-column: 1;
    grid-row: 1;
    width: 54px;
  }
  .live-card[data-status="upcoming"] .live-card-copy {
    grid-column: 1;
    grid-row: 2;
  }
  .live-card[data-status="upcoming"] .live-card-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: stretch;
  }
  .live-card[data-status="upcoming"] .live-register {
    width: 100%;
    padding: .6rem .5rem;
    text-align: center;
    line-height: 1.3;
  }
}

.lives-catalog-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.lives-catalog-tools .text-button { color: #234e9b; }
.certificate-modal { width: min(570px, calc(100% - 24px)); }
.certificate-modal h2 { color: #173b77; }
.certificate-live-title {
  margin: 10px 0 20px;
  color: #234e9b;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.certificate-form { margin-top: 15px; }
.certificate-help { margin: -7px 0 0; color: #405a83; font-size: .9rem; }
.certificate-submit { min-height: 48px; justify-content: center; }
.certificate-submit:disabled { opacity: .6; cursor: wait; }
.certificate-result {
  margin-top: 20px;
  padding: clamp(14px, 3.2vw, 23px);
  border: 1px solid #bfd4ed;
  border-radius: 14px;
  background: #eff5fc;
  color: #173b77;
  overflow-wrap: anywhere;
}
.certificate-result h3 { margin: 0 0 14px; font-size: 1.18rem; }
.certificate-result dl { margin: 0 0 15px; }
.certificate-result dt { font-weight: 700; }
.certificate-result dd { margin: 0 0 7px; }
.certificate-modal [hidden] { display: none !important; }
