/* Additions on top of the template's style.css: accessibility, the Awards page and small layout fixes. */

:root {
  --team-red: #b81c1c;
  --banner-blue: #104bca;
  --rule: rgb(0 0 0 / 0.12);
}

::selection {
  background: var(--team-red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--team-red);
  outline-offset: 2px;
}

#header :focus-visible,
#footer :focus-visible,
.back-to-top:focus-visible {
  outline-color: #fff;
}

a {
  text-underline-offset: 0.15em;
}

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100000;
  padding: 8px 16px;
  background: #fff;
  color: var(--team-red);
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}

/* The mobile menu toggle is a real button now; strip the browser button chrome. */
.mobile-nav-toggle {
  background: none;
  border: 0;
  padding: 8px;
  margin: -8px;
}

/* Hero copy offsets that used to be inline styles. */
#hero .hero-text {
  position: relative;
  top: 25px;
}
#hero .hero-cta {
  position: relative;
  top: 10px;
}

/* The hero photo was drawn at its full 2048px size and cropped, which blew it up on most screens.
   Scale it to fill the curved panel and keep the "188" signs in frame. */
#hero::after {
  background-size: cover;
  background-position: center, 47% 30%;
}

/* Long-form copy reads at a comfortable measure. */
.about p,
.why-us .description,
.features p {
  max-width: 70ch;
}

/* Footer contact links default to the theme red, which vanishes on the red footer. */
#footer .footer-contact a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Awards: banner wall ---------- */
.award-banners {
  padding: 60px 0 40px;
}

.award-banner-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 32px 24px;
  justify-items: center;
}

.award-banner {
  width: 170px;
  min-height: 290px;
  padding: 28px 14px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  background: var(--banner-blue);
  /* Pennant: a notch cut into the bottom edge, like the real FIRST banners. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 40px), 0 100%);
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.18));
}

.award-banner-logo {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
}

.award-banner-title {
  margin: 0 0 12px;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.award-banner-event {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Awards: season events ---------- */
.season {
  padding: 40px 0;
}

.season-event {
  width: 100%;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  background: #fff;
}
.season-event.is-past {
  opacity: 0.75;
}
.season-event-date {
  margin: 0 0 4px;
  color: var(--team-red);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.season-event-place {
  margin: 0;
  color: #555;
}

/* ---------- Awards: history by year ---------- */
.award-history {
  padding: 60px 0;
}

.award-year {
  width: 100%;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  background: #fff;
}

.award-year-title {
  margin: 0 0 12px;
  color: var(--team-red);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.award-year ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-year li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.award-year li span {
  color: #555;
}

/* ---------- Sponsors ---------- */
/* Two logos per row on phones, so the list isn't a long scroll of full-width logos. */
@media (max-width: 767px) {
  .team .member-info h2 {
    font-size: 16px;
  }
  .team .member-info span {
    font-size: 12px;
  }
}

/* ---------- Sponsorship package ---------- */
.sponsorship-package {
  padding: 60px 0;
}
.package-cover img {
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  transition: transform 0.3s ease-out;
}
.package-cover:hover img {
  transform: translateY(-4px);
}

/* ---------- 404 ---------- */
.not-found {
  padding: 80px 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
