/* Comets Teams — front-end styles. */
:root {
  --comets-teal: #008c99;
  --comets-teal-dark: #00707b;
  --comets-ink: #2b2b2b;
  --comets-muted: #6b7280;
  --comets-line: #e5e7eb;
}

.comets-wrap {
  color: var(--comets-ink);
  background: #fff;
  border: 1px solid #d7dce3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
}
.comets-wrap [hidden] { display: none !important; }

/* Filter bar */
.comets-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0 0 24px; padding: 14px 18px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
}
.comets-filter-label {
  font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--comets-ink);
}
.comets-select {
  appearance: none; -webkit-appearance: none;
  border: 2px solid var(--comets-teal); border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23008c99' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding: 10px 38px 10px 16px; font-size: 15px; font-weight: 600;
  color: var(--comets-ink); cursor: pointer; min-width: 140px;
}
.comets-select:focus { outline: 2px solid var(--comets-teal); outline-offset: 2px; }
.comets-jump {
  margin-left: auto; font-size: 15px; font-weight: 700;
  color: var(--comets-teal); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.comets-jump:hover { color: var(--comets-teal-dark); border-bottom-color: var(--comets-teal-dark); }

/* Section headings */
.comets-wrap .comets-section-heading {
  font-size: 28px !important; font-weight: 800 !important;
  line-height: 1.25; margin: 32px 0 16px; padding-bottom: 8px;
  border-bottom: 3px solid var(--comets-teal); display: inline-block;
}
.comets-year-section:first-of-type .comets-section-heading,
.comets-schedule-year .comets-section-heading:first-of-type { margin-top: 0; }

/* Roster grid */
.comets-roster-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.comets-card {
  background: #fff; border: 1px solid #d7dce3; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: box-shadow .15s ease;
}
.comets-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.comets-card-photo {
  appearance: none; border: 0; padding: 0; margin: 0;
  aspect-ratio: 1 / 1; background: #f3f4f6; overflow: hidden;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.comets-card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  transition: transform .2s ease;
}
.comets-card-photo:hover img { transform: scale(1.04); }
.comets-card-photo:focus-visible { outline: 3px solid var(--comets-teal); outline-offset: -3px; }
.comets-card-initials {
  font-size: 48px; font-weight: 800; color: var(--comets-teal);
}
.comets-card-body { padding: 16px; text-align: center; }
.comets-card-name { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.comets-card-meta { margin: 0; font-size: 14px; color: var(--comets-muted); }
.comets-staff-heading { scroll-margin-top: 90px; }
/* Extra breathing room between the athlete grid and the Coaching Staff title */
.comets-wrap .comets-section-heading.comets-staff-heading { margin-top: 64px; }

/* Schedule list — high-contrast event cards */
.comets-schedule-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.comets-meet {
  display: flex; gap: 20px; align-items: center;
  background: #fff; border: 1px solid #d7dce3; border-radius: 14px;
  padding: 20px 22px; margin: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.09);
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;
}
.comets-meet:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-1px); }
.comets-meet:focus-visible { outline: 3px solid var(--comets-teal); outline-offset: 2px; }
.comets-meet.is-upcoming { border-left: 6px solid var(--comets-teal); }
.comets-meet.is-past { background: #f8fafc; border-left: 6px solid #cbd5e1; }
.comets-meet.is-past .comets-meet-name { color: #4b5563; }
.comets-meet-date {
  flex: 0 0 68px; text-align: center; background: #fff;
  border: 1px solid var(--comets-line); border-radius: 10px; padding: 10px 4px;
}
.is-upcoming .comets-meet-date { border-color: var(--comets-teal); }
.comets-meet-month { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--comets-teal); letter-spacing: .06em; }
.comets-meet-day { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.comets-meet-dow { display: block; font-size: 12px; color: var(--comets-muted); }
.comets-meet-main { flex: 1 1 auto; min-width: 0; }
.comets-meet-name { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.comets-meet-details { margin: 0; font-size: 14px; color: var(--comets-muted); line-height: 1.55; }
.comets-meet-host { font-style: italic; }
.comets-meet-image {
  flex: 0 0 96px; width: 96px; height: 96px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #d7dce3; background: #f3f4f6;
}
.comets-meet-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comets-meet-side {
  flex: 0 0 auto; margin-left: auto; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.comets-meet-status {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; border-radius: 999px; padding: 4px 12px;
}
.is-upcoming .comets-meet-status { background: var(--comets-teal); color: #fff; }
.is-past .comets-meet-status { background: #e2e8f0; color: #475569; }
.comets-meet-actions { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Buttons — filled teal primary (Recap), outlined teal (Full Results) */
.comets-btn {
  display: inline-block; border-radius: 999px; padding: 10px 26px;
  font-size: 15px; font-weight: 700; text-decoration: none !important;
  transition: all .15s ease; line-height: 1.2; white-space: nowrap;
}
.comets-btn-primary { background: var(--comets-teal); color: #fff !important; border: 2px solid var(--comets-teal); }
.comets-btn-primary:hover { background: var(--comets-teal-dark); border-color: var(--comets-teal-dark); color: #fff !important; }
.comets-btn-outline { background: transparent; color: var(--comets-teal) !important; border: 2px solid var(--comets-teal); }
.comets-btn-outline:hover { background: var(--comets-teal); color: #fff !important; }

/* Modal */
body.comets-modal-open { overflow: hidden; }
.comets-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.comets-modal {
  position: relative; background: #fff; border-radius: 16px;
  max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.comets-modal-close {
  position: absolute; top: 12px; right: 16px;
  appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 32px; line-height: 1; color: var(--comets-muted); padding: 4px 8px;
}
.comets-modal-close:hover { color: var(--comets-ink); }
.comets-modal-photo { margin: 0 0 16px; text-align: center; }
.comets-modal-photo img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--comets-teal);
}
.comets-modal-photo.is-placeholder img {
  object-fit: contain; border-radius: 12px; padding: 10px; background: #fff;
}
.comets-card-photo.is-placeholder img {
  object-fit: contain; object-position: center; padding: 16px;
}
.comets-modal-title { margin: 0 0 6px; font-size: 24px; }
.comets-modal-meta { margin: 0 0 12px; font-size: 15px; color: var(--comets-muted); font-weight: 600; }
.comets-modal-bio { font-size: 15px; line-height: 1.6; }
.comets-modal-bio p, .comets-modal-bio div { margin: 0 0 10px; }
.comets-modal-loc { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.comets-modal-map { margin: 0 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--comets-line); }
.comets-modal-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.comets-modal-actions { margin: 4px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .comets-wrap { padding: 18px; }
  .comets-meet { gap: 14px; padding: 16px; flex-wrap: wrap; }
  .comets-meet-image { display: none; }
  .comets-meet-side { margin-left: 0; align-items: flex-start; text-align: left; width: 100%; }
  .comets-meet-actions { justify-content: flex-start; }
  .comets-roster-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .comets-jump { margin-left: 0; }
  .comets-modal { padding: 24px 20px; }
}
