:root {
  --ws-primary: #D4A017;
  --ws-primary-light: #F0C040;
  --ws-primary-dark: #B8860B;
  --ws-primary-rgb: 212, 160, 23;
  --ws-accent: #151414;
  --ws-accent-light: #2a2929;
  --ws-accent-dark: #000000;
  --ws-dark: #151414;
  --ws-dark-light: #1e1d1d;
  --ws-dark-surface: #2a2929;
  --ws-gray-50: #f8f9fa;
  --ws-gray-100: #e9ecef;
  --ws-gray-200: #dee2e6;
  --ws-gray-300: #ced4da;
  --ws-gray-500: #6c757d;
  --ws-gray-700: #495057;
  --ws-gray-900: #212529;
  --ws-cal-tournament: #0d6efd;
  --ws-cal-practice: #198754;
  --ws-cal-dual: #fd7e14;
  --ws-cal-event: #6f42c1;
  --ws-body-bg: #ffffff;
  --ws-card-bg: #ffffff;
  --ws-font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ws-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-bs-theme] {
  --bs-primary: var(--ws-primary);
  --bs-primary-rgb: var(--ws-primary-rgb);
  --bs-danger: #dc3545;
  --bs-body-font-family: var(--ws-font-primary);
}

html,
body {
  background: var(--ws-body-bg);
  color: var(--ws-gray-900);
  font-family: var(--ws-font-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ws-font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}

a {
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(var(--ws-primary-rgb), 0.35);
  outline-offset: 2px;
}

body > a.visually-hidden-focusable:focus {
  z-index: 2000;
  text-decoration: none;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hero-image {
  height: 250px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-image {
    height: 350px;
  }
}

@media (min-width: 1200px) {
  .hero-image {
    height: 400px;
  }
}

.carousel-img {
  height: 250px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .carousel-img {
    height: 350px;
  }
}

@media (min-width: 1200px) {
  .carousel-img {
    height: 450px;
  }
}

.team-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.25rem rgba(21, 20, 20, 0.2) !important;
}

.team-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .team-card .card-img-top {
    height: 240px;
  }
}

.coach-photo {
  height: 100%;
  object-fit: cover;
  min-height: 150px;
}

.calendar-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
}

.calendar-badge--tournament {
  background-color: var(--ws-cal-tournament);
  color: #fff;
}

.calendar-badge--practice {
  background-color: var(--ws-cal-practice);
  color: #fff;
}

.calendar-badge--dual {
  background-color: var(--ws-cal-dual);
  color: #fff;
}

.calendar-badge--event {
  background-color: var(--ws-cal-event);
  color: #fff;
}

.schedule-item-highlight {
  animation: schedule-highlight 1.4s ease;
}

@keyframes schedule-highlight {
  0% {
    background-color: rgba(var(--ws-primary-rgb), 0.16);
  }
  100% {
    background-color: transparent;
  }
}

.team-calendar-shell {
  border: 1px solid var(--ws-gray-200);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.75rem;
}

.team-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.team-calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ws-gray-700);
  padding: 0.25rem;
}

.team-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.team-calendar-day {
  min-height: 54px;
  border: 1px solid var(--ws-gray-300);
  border-radius: 0.375rem;
  background: #fff;
  color: inherit;
  text-align: left;
  padding: 0.35rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-calendar-day--outside {
  color: var(--ws-gray-500);
  background: var(--ws-gray-50);
}

.team-calendar-day.is-selected {
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 2px rgba(var(--ws-primary-rgb), 0.15);
}

.team-calendar-day-number {
  font-size: 0.8125rem;
  font-weight: 600;
}

.team-calendar-short-label {
  display: none;
  font-size: 0.68rem;
  line-height: 1.1;
  color: var(--ws-gray-700);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-calendar-dots {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 0.45rem;
}

.team-calendar-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  display: inline-block;
}

.team-calendar-dot--tournament {
  background: var(--ws-cal-tournament);
}

.team-calendar-dot--practice {
  background: var(--ws-cal-practice);
}

.team-calendar-dot--dual {
  background: var(--ws-cal-dual);
}

.team-calendar-dot--event {
  background: var(--ws-cal-event);
}

@media (min-width: 768px) {
  .team-calendar-day {
    min-height: 74px;
  }

  .team-calendar-short-label {
    display: block;
  }

  .team-calendar-dots {
    display: none;
  }
}

.alert-accent {
  background-color: var(--ws-accent);
  border-color: var(--ws-primary);
  color: #fff;
}

.btn-primary {
  --bs-btn-bg: var(--ws-primary);
  --bs-btn-border-color: var(--ws-primary);
  --bs-btn-color: #151414;
  --bs-btn-hover-bg: var(--ws-primary-light);
  --bs-btn-hover-border-color: var(--ws-primary-light);
  --bs-btn-hover-color: #151414;
}

.btn-accent {
  --bs-btn-bg: var(--ws-accent);
  --bs-btn-color: var(--ws-primary);
  --bs-btn-border-color: var(--ws-accent);
  --bs-btn-hover-bg: var(--ws-accent-dark);
  --bs-btn-hover-border-color: var(--ws-accent-dark);
  --bs-btn-hover-color: var(--ws-primary-light);
}

.touch-target,
.btn,
.nav-link,
.dropdown-item,
.navbar-toggler {
  min-height: 44px;
}

footer .footer-wordmark {
  width: 160px;
  max-width: 100%;
  height: auto;
}
