/* Additions to the original Webflow styles (talab.webflow.css is left untouched). */

/* ---- Hero slider: slides stack in place and crossfade (driven by js/site.js) ---- */
.w-slide { will-change: opacity; }
.w-slider-arrow-left:focus-visible,
.w-slider-arrow-right:focus-visible,
.w-slider-dot:focus-visible,
.w-nav-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Mobile menu overlay ---- */
.w-nav-overlay { z-index: 1000; }

/* ---- Alumni ---- */
.alumni-heading-wrap { margin-top: 40px; }
.alumni {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
  margin-bottom: 60px;
}
.alumni-group-heading {
  text-align: left;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}
.alumni-list { margin: 0; padding: 0; }
.alumni-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.alumni-name { font-weight: 500; }
.alumni-role, .alumni-years { opacity: .6; font-size: .92em; }
@media screen and (max-width: 767px) {
  .alumni { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---- Headings demoted for search engines keep their original look ---- */
.as-h1 { margin-top: 20px; margin-bottom: 15px; font-size: 44px; font-weight: 400; line-height: 62px; align-self: auto; }
h2.slide-title { margin-top: 20px; margin-bottom: 15px; align-self: auto; }
@media screen and (max-width: 479px) {
  .as-h1 { font-size: 36px; line-height: 52px; }
}

/* ---- Recruitment banner (home page; text lives in site.json "announcement") ---- */
.recruit-banner { background-color: #1c2260; color: #fff; }
.recruit-banner-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 20px; max-width: 1140px; margin: 0 auto; padding: 18px 20px; text-align: center;
}
.recruit-badge {
  background: #ffcd00; color: #1c2260; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 3px; white-space: nowrap;
}
.recruit-text { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.recruit-button {
  display: inline-block; padding: 9px 18px; border: 2px solid #fff; color: #fff; text-decoration: none;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.recruit-button:hover, .recruit-button:focus-visible { background: #fff; color: #1c2260; }
@media screen and (max-width: 479px) {
  .recruit-text { font-size: 16px; line-height: 23px; }
}

/* ---- Footer: UCalgary affiliation ---- */
.footer-based-at { margin-left: 30px; }
.ucalgary-wordmark { font-weight: 600; font-size: 20px; color: #1c2260; letter-spacing: .01em; }
.ucalgary-logo-link { text-decoration: none; }

/* ---- Contact page ---- */
.map-embed { display: block; width: 100%; border: 0; }
.contact-form-heading-wrap a, .details-wrap a { color: inherit; text-decoration: underline; }

/* ---- Participate page ---- */
.participate-cta { clear: both; text-align: center; padding: 40px 0 100px; }
.participate-cta-note { margin-top: 12px; opacity: .6; }

/* Footer address now spans two lines: keep the map-pin icon at single-line size */
.footer-link-office { background-size: 25px 25px; background-position: 0 0; }

/* ---- University of Calgary logos ---- */
.ucalgary-logo { display: block; height: 80px; width: auto; }
.contact-ucalgary-logo { display: block; width: 160px; height: auto; margin: 0 0 10px -12px; }
@media screen and (max-width: 479px) {
  .ucalgary-logo { height: 120px; }
  .footer-based-at { margin-left: 0; }
}

/* ---- Hero slider on tablets and phones ----
   The original design sizes the slider and its text in vw units only, which makes the text
   unreadably small on phones (about 7px). Below 992px we give it a fixed height and real font sizes. */
@media screen and (max-width: 991px) {
  .slider { height: 46vw; min-height: 340px; }
  .container-slide1, .container-slide2, .container-slide3 {
    max-width: 60%; max-height: none; top: auto; bottom: 48px; left: 6vw; padding: 4px 20px 20px;
  }
  .heading-6 { font-size: 26px; line-height: 32px; }
  .slider .paragraph { font-size: 16px; line-height: 23px; }
}
@media screen and (max-width: 767px) {
  .slider { height: 400px; }
  .container-slide1, .container-slide2, .container-slide3 {
    max-width: none; left: 16px; right: 16px; bottom: 44px; padding: 2px 16px 16px;
  }
  .heading-6 { font-size: 22px; line-height: 28px; }
  .slider .paragraph { font-size: 15px; line-height: 21px; margin-bottom: 12px; }
  .slider .w-slider-arrow-left, .slider .w-slider-arrow-right { width: 44px; }
}
@media screen and (max-width: 991px) {
  /* the header's "Contact Us" button is hidden on small screens; the slide buttons share its class */
  .slider .button.cc-contact-us { display: inline-block; }
}
@media screen and (max-width: 767px) {
  /* arrows would sit on top of the text box; phones use swipe and the dots instead */
  .slider .w-slider-arrow-left, .slider .w-slider-arrow-right { display: none; }
}
