html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  padding-top: 70px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   WCAG 2.2 ACCESSIBILITY STYLES
   ======================================== */

/* Skip Link - Hidden until focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #FED687;
  color: #121212;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #F3F3F3;
  outline-offset: 2px;
}

/* Focus Visible - WCAG 2.4.7 & 2.4.13 */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid #FED687;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Ensure focus is visible on dark backgrounds */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #FED687;
  outline-offset: 3px;
}

/* Focus indicator for interactive cards */
.focus-card:focus-visible {
  outline: 3px solid #FED687;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(254, 214, 135, 0.3);
}

/* Screen Reader Only - Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Minimum touch target size - WCAG 2.5.8 */
.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touch-target-min {
  min-width: 24px;
  min-height: 24px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #FFFFFF;
    --color-secondary: #E0E0E0;
  }

  a, button, [role="button"] {
    text-decoration: underline;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 118px;
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for roster list */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero navigation text transitions */
.hero-text-selected {
  color: #F3F3F3 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #F3F3F3 !important;
  background-clip: border-box !important;
  transition: all 0.6s ease-out;
}

.hero-text-gold {
  color: transparent !important;
  background: linear-gradient(1deg, #9A7340 -117.85%, #FED687 109.76%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transition: all 1.5s ease-in;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}

.animate-scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* News Article Content Styles */
.news-content-styles h1 {
  /* container/title-h1 */
  display: flex;
  padding: 1.5rem 1rem;
  justify-content: center;
  align-items: center;
  font-family: Lora;
  font-size: 1.5rem; /* 24px */
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(1deg, #9A7340 -117.85%, #FFECC7 109.76%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: 'liga' off, 'clig' off;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .news-content-styles h1 {
    padding: 1.5rem 12rem; /* 192px on desktop */
  }
}

.news-content-styles h2 {
  /* container/subtitle-h2 */
  display: flex;
  padding: 1.5rem 1rem;
  justify-content: center;
  align-items: center;
  font-family: Lora;
  font-size: 1.25rem; /* 20px */
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, #FFECC7 0%, #FED687 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: 'liga' off, 'clig' off;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .news-content-styles h2 {
    padding: 1.5rem 12rem; /* 192px on desktop */
  }
}

.news-content-styles p {
  /* desktop/body-article */
  align-self: stretch;
  color: #F3F3F3;
  font-family: Lora;
  font-size: 1rem; /* 16px mobile */
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-feature-settings: 'liga' off, 'clig' off;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .news-content-styles p {
    font-size: 1.125rem; /* 18px desktop */
  }
}

.news-content-styles p:last-child {
  margin-bottom: 0;
}

.news-content-styles img {
  height: auto;
  align-self: stretch;
  aspect-ratio: 922 / 519.09;
  background: lightgray 50% / cover no-repeat;
  margin: 1rem 0;
  width: 100%;
  object-fit: cover;
}
