/* Events page. Tokens from /styles.css (loaded first). Deep teal #00607a is 7:1+ with white. */
.events-page {
  --ev-deep: #00607a;
  --ev-soft: #f7f3ec;
  --ev-line: #c5dbe3;
}

.events-page .ev-wrap a,
.events-page .ev-more a {
  color: var(--ev-deep);
}

.events-page .ev-wrap a:hover {
  color: var(--color-black);
}

/* Buttons keep their own colours (white on accent, black on white); the link rules above must not override them */
.events-page .ev-wrap a.btn--accent,
.events-page .ev-wrap a.btn--accent:hover {
  color: var(--color-white);
}

.events-page .ev-wrap a.btn--light,
.events-page .ev-wrap a.btn--light:hover {
  color: var(--color-black);
}

.ev-wrap {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.ev-section {
  padding: var(--space-5) 0;
}

.ev-section--tint {
  background: var(--ev-soft);
}

.ev-section h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  text-wrap: balance;
}

.ev-lead {
  max-width: 44rem;
  margin: 0 0 var(--space-3);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* Cards and steps */
.ev-cards,
.ev-steps {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.ev-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  counter-reset: ev-step;
}

.ev-card,
.ev-step {
  padding: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--ev-line);
  border-radius: var(--radius-card);
}

.ev-card h3,
.ev-step h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.125rem;
  line-height: 1.3;
}

.ev-card p,
.ev-step p {
  margin: 0;
  line-height: 1.6;
}

.ev-step {
  counter-increment: ev-step;
}

.ev-step h3::before {
  content: counter(ev-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--ev-deep);
  color: var(--color-white);
  font-size: 1rem;
}

.ev-actions {
  margin: var(--space-4) 0 0;
}

/* Split image and copy */
.ev-split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.ev-split__figure {
  margin: 0;
}

.ev-split__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.ev-split__copy p {
  line-height: 1.65;
}

.ev-ticks,
.ev-list {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
  line-height: 1.6;
}

.ev-ticks {
  columns: 2;
  column-gap: var(--space-4);
}

.ev-ticks li,
.ev-list li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

@media (min-width: 769px) {
  .ev-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Key figures */
.ev-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}

.ev-figures div {
  padding: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--ev-line);
  border-radius: var(--radius-card);
}

.ev-figures dt {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.ev-figures dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ev-deep);
}

/* FAQ accordions (details/summary, no JS) */
.ev-faq {
  max-width: 48rem;
  border-top: 1px solid var(--ev-line);
}

.ev-faq details {
  border-bottom: 1px solid var(--ev-line);
}

.ev-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 2.5rem 0.75rem 0;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.ev-faq summary::-webkit-details-marker {
  display: none;
}

.ev-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ev-deep);
}

.ev-faq details[open] summary::after {
  content: "\2212";
}

.ev-faq__answer {
  padding: 0 0 var(--space-2);
}

.ev-faq__answer p {
  margin: 0;
  line-height: 1.65;
}

.ev-more {
  margin: var(--space-3) 0 0;
}

/* Closing call to action */
.ev-cta {
  padding: var(--space-6) 0;
  background: var(--color-white);
  color: var(--color-black);
  border-top: 1px solid rgba(15, 20, 25, 0.16);
}

.ev-cta h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  line-height: 1.2;
}

.ev-cta p {
  max-width: 40rem;
  margin: 0 0 var(--space-2);
  line-height: 1.6;
}

.ev-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.events-page .ev-cta .ev-cta__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ev-deep);
  font-weight: 700;
  text-decoration: underline;
}

.events-page .ev-cta .ev-cta__link:hover {
  color: var(--color-black);
}
