/* Detail interactions use neutral highlights; red remains the primary action color. */
:root body :is(.card:hover, .card:focus-within) {
  border-color: #707070;
  background: #181818;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #00000026;
}
:root body a[href*='catalogue.pdf'] {
  color: #d7d7d7;
  text-decoration: underline;
  text-decoration-color: #686868;
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}
:root body a[href*='catalogue.pdf']:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
.interactive-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.interactive-card > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
:root body .card-open {
  min-height: 36px;
  padding: 8px 15px;
  margin-top: 20px;
  border: 1px solid #555555;
  border-radius: 9999px;
  background: #222222;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
:root body .card-open:hover {
  background: #303030;
  border-color: #929292;
}
.detail-dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #555555;
  border-radius: 24px;
  background: #151515;
  color: #f5f5f5;
  box-shadow: 0 30px 120px #000000a6;
}
.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #333333;
  color: #a3a3a3;
  font-size: 12px;
}
:root body .detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #555555;
  border-radius: 50%;
  background: #242424;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
}
:root body .detail-close:hover {
  background: #383838;
}
.detail-content {
  padding: 32px;
}
.detail-content h2 {
  margin: 16px 0 24px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}
.detail-content p {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.8;
}
.detail-content > a {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
}
.detail-actions {
  padding: 0 32px 32px;
}
:root body section.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.cta-copy > .button {
  margin-top: 18px;
}
.academy-contact {
  padding: 30px;
  border: 1px solid #3c3c3c;
  border-radius: 24px;
  background: linear-gradient(135deg, #1b1b1b, #111111);
}
.academy-contact h3 {
  font-size: 25px;
  margin: 0 0 24px;
}
.instructor-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.instructor-profile img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #555555;
  object-fit: cover;
  background: #262626;
}
.instructor-profile strong {
  display: block;
  font-size: 16px;
}
.instructor-profile span {
  display: block;
  color: #a3a3a3;
  font-size: 12px;
}
.contact-links {
  display: grid;
  gap: 12px;
}
.contact-links a,
.contact-social a {
  color: #eeeeee;
  font-size: 14px;
  text-decoration: none;
}
.contact-links a:hover,
.contact-social a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-links p,
.contact-pending {
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.contact-social:empty {
  display: none;
}
@media (max-width: 760px) {
  :root body section.cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .academy-contact {
    padding: 24px;
  }
  .detail-content {
    padding: 24px;
  }
  .detail-actions {
    padding: 0 24px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root body .card:hover {
    transform: none;
  }
}

:root body .contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #555555;
  border-radius: 50%;
  background: #222222;
  color: #eeeeee;
  line-height: 1;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}
:root body .contact-social-icon:hover {
  border-color: #999999;
  background: #343434;
  color: #ffffff;
}
:root body .contact-social-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #191919;
  border-color: #444444;
}
