/* Utah Assignor — public brand & shared chrome */

:root {
  --utah-accent: #fdc82d;
  --utah-accent-dark: #e3b428;
  --utah-charcoal: #2b2b2b;
  --utah-charcoal-light: #3d3d3d;
  --utah-black: #000000;
  --utah-canyon: #c2410c;
  --utah-canyon-dark: #9a3412;
  --utah-sandstone: var(--utah-accent);
  --utah-pine: var(--utah-charcoal);
  --utah-pine-light: var(--utah-charcoal-light);
  --utah-pitch: #1a1a1a;
  --utah-pitch-dark: #111111;
  --utah-pitch-light: #404040;
  --utah-ref-black: var(--utah-black);
  --utah-ref-stripe: #f5f5f5;
  --utah-sky: #3b82c6;
  --utah-sky-light: #7cb9e8;
  --utah-cream: #f3f3f3;
  --utah-snow: #ffffff;
  --utah-ink: #1a1a1a;
  --utah-muted: #5c5c5c;
  --utah-border: rgba(43, 43, 43, 0.14);
  --utah-radius: 0.75rem;
  --utah-radius-lg: 1.25rem;
  --utah-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --utah-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --bs-primary: var(--utah-charcoal);
  --bs-primary-rgb: 43, 43, 43;
  --utah-grass-stripe: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 24px,
    transparent 24px,
    transparent 48px
  );
}

body {
  font-family: var(--font-body);
  color: var(--utah-ink);
  background-color: var(--utah-cream);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* —— Navigation —— */
.utah-nav {
  position: relative;
  background: linear-gradient(180deg, var(--utah-black) 0%, var(--utah-charcoal) 100%);
  border-bottom: 3px solid var(--utah-accent);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.utah-nav__stripes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  background: var(--utah-accent);
  opacity: 1;
  pointer-events: none;
}

.utah-nav--public {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.utah-nav .navbar-brand,
.utah-navbar-brand {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.utah-site-logo {
  display: block;
  width: auto;
  height: clamp(2rem, 5vw, 2.65rem);
  max-width: min(220px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.utah-brand-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.utah-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.4rem 0.75rem !important;
}

.utah-nav .nav-link:hover,
.utah-nav .nav-link:focus-visible {
  color: var(--utah-snow) !important;
  background: rgba(255, 255, 255, 0.1);
}

.utah-nav .nav-link.active {
  color: var(--utah-black) !important;
  background: var(--utah-accent);
  font-weight: 600;
}

.utah-nav .btn-nav-cta {
  background: var(--utah-accent);
  color: var(--utah-black) !important;
  border-radius: 999px;
  padding: 0.35rem 1rem !important;
  margin-left: 0.25rem;
  font-weight: 600;
}

.utah-nav .btn-nav-cta:hover,
.utah-nav .btn-nav-cta:focus-visible {
  background: var(--utah-accent-dark);
  color: var(--utah-black) !important;
}

.utah-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.utah-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(253, 200, 45, 0.55);
}

.utah-nav .dropdown-menu {
  background: linear-gradient(180deg, var(--utah-charcoal) 0%, var(--utah-black) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--utah-radius);
  box-shadow: var(--utah-shadow-lg);
  padding: 0.35rem 0;
  margin-top: 0.35rem;
}

.utah-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.45rem 1rem;
}

.utah-nav .dropdown-item:hover,
.utah-nav .dropdown-item:focus {
  color: var(--utah-snow);
  background: rgba(255, 255, 255, 0.1);
}

.utah-nav .dropdown-item.active,
.utah-nav .dropdown-item:active {
  color: var(--utah-black);
  background: var(--utah-accent);
}

.utah-nav .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.14);
  margin: 0.35rem 0;
}

@media (max-width: 991.98px) {
  .utah-nav .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    margin-left: 0.5rem;
    padding-left: 0.25rem;
  }

  .utah-nav .dropdown-item {
    padding-left: 1.25rem;
  }
}

/* —— Main layout —— */
.utah-main-app {
  padding-bottom: 3rem;
}

.utah-main-public {
  padding: 0;
  max-width: 100%;
}

/* —— Cards & buttons (app pages) —— */
.card {
  border: 1px solid var(--utah-border);
  border-radius: var(--utah-radius);
  box-shadow: var(--utah-shadow);
}

.card-header {
  background: rgba(43, 43, 43, 0.05);
  border-bottom: 1px solid var(--utah-border);
  font-family: var(--font-display);
}

.btn-primary {
  background-color: var(--utah-charcoal);
  border-color: var(--utah-charcoal);
  color: var(--utah-snow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--utah-charcoal-light);
  border-color: var(--utah-charcoal-light);
  color: var(--utah-snow);
}

.btn-outline-primary {
  color: var(--utah-charcoal);
  border-color: var(--utah-charcoal);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-color: var(--utah-charcoal);
  border-color: var(--utah-charcoal);
  color: var(--utah-snow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--utah-accent) 0%, var(--utah-accent-dark) 100%);
  border: none;
  color: var(--utah-black);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  color: var(--utah-black);
  filter: brightness(1.04);
  box-shadow: var(--utah-shadow);
}

a:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--utah-sky);
  outline-offset: 2px;
}

/* —— Public page shell —— */
.utah-public-page {
  background-color: var(--utah-cream);
}

.utah-referee-badge {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.35rem;
  vertical-align: -0.2em;
  border-radius: 0.2rem;
  background: repeating-linear-gradient(
    180deg,
    var(--utah-ref-black) 0,
    var(--utah-ref-black) 3px,
    var(--utah-ref-stripe) 3px,
    var(--utah-ref-stripe) 6px
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* —— Landing hero —— */
.utah-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.utah-hero--pitch {
  background: linear-gradient(
    180deg,
    #5a9fd4 0%,
    var(--utah-sky-light) 22%,
    var(--utah-cream) 48%,
    var(--utah-pitch-light) 48%,
    var(--utah-pitch) 100%
  );
}

.utah-hero--photo {
  min-height: clamp(22rem, 62vh, 36rem);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background-color: var(--utah-black);
}

.utah-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero-match-day.webp");
  background-size: cover;
  background-position: center 35%;
  pointer-events: none;
}

.utah-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.78) 42%,
    rgba(43, 43, 43, 0.45) 68%,
    rgba(43, 43, 43, 0.2) 100%
  );
  pointer-events: none;
}

@media (min-width: 992px) {
  .utah-hero__scrim {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.62) 38%,
      rgba(43, 43, 43, 0.25) 62%,
      rgba(43, 43, 43, 0.08) 100%
    );
  }
}

.utah-hero__pitch-lines {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(92%, 900px);
  height: 42%;
  border: 3px solid rgba(250, 247, 242, 0.55);
  border-bottom: none;
  pointer-events: none;
  opacity: 0.65;
}

.utah-hero__pitch-lines::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: rgba(250, 247, 242, 0.55);
}

.utah-hero__pitch-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(80px, 18vw, 140px);
  height: clamp(80px, 18vw, 140px);
  margin: calc(clamp(80px, 18vw, 140px) / -2) 0 0 calc(clamp(80px, 18vw, 140px) / -2);
  border: 3px solid rgba(250, 247, 242, 0.55);
  border-radius: 50%;
}

.utah-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .utah-hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.utah-hero__copy {
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 992px) {
  .utah-hero__copy {
    text-align: left;
    padding: 0;
  }

  .utah-hero__actions {
    justify-content: flex-start;
  }
}

.utah-hero__visual {
  padding: 0 1rem;
}

.utah-hero__illustration {
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  display: block;
  border-radius: var(--utah-radius-lg);
  box-shadow: var(--utah-shadow-lg);
}

.utah-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.utah-hero__ball {
  position: absolute;
  opacity: 0.35;
  animation: utah-float 8s ease-in-out infinite;
}

.utah-hero__ball--1 {
  top: 12%;
  left: 6%;
}

.utah-hero__ball--2 {
  bottom: 28%;
  right: 8%;
  animation-delay: -3s;
}

.utah-hero__whistle {
  position: absolute;
  top: 18%;
  right: 14%;
  opacity: 0.4;
  animation: utah-float 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes utah-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.utah-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--utah-charcoal);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(253, 200, 45, 0.45);
}

.utah-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  color: var(--utah-snow);
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(15, 41, 34, 0.35);
}

.utah-hero--photo h1 {
  color: var(--utah-snow);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .utah-hero:not(.utah-hero--photo) h1 {
    color: var(--utah-ink);
    text-shadow: none;
  }
}

.utah-hero h1 span {
  color: var(--utah-accent);
}

.utah-hero--photo h1 span {
  color: var(--utah-accent);
}

@media (min-width: 992px) {
  .utah-hero:not(.utah-hero--photo) h1 span {
    color: var(--utah-accent-dark);
  }
}

.utah-hero__lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.utah-hero--photo .utah-hero__lead {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 992px) {
  .utah-hero:not(.utah-hero--photo) .utah-hero__lead {
    color: var(--utah-muted);
    margin-left: 0;
    margin-right: 0;
  }

  .utah-hero--photo .utah-hero__lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.utah-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.utah-hero__link {
  color: rgba(255, 255, 255, 0.95) !important;
}

@media (min-width: 992px) {
  .utah-hero:not(.utah-hero--photo) .utah-hero__link {
    color: var(--utah-charcoal) !important;
  }

  .utah-hero--photo .utah-hero__link {
    color: rgba(255, 255, 255, 0.95) !important;
  }
}

.utah-hero--photo .utah-hero__eyebrow {
  background: rgba(255, 255, 255, 0.94);
}

.utah-hero__visual--photo .utah-hero__illustration {
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.utah-btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

/* —— Feature grid —— */
.utah-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}

.utah-section--alt {
  background: var(--utah-snow);
}

.utah-section--pitch {
  background: var(--utah-snow)
    linear-gradient(180deg, rgba(253, 200, 45, 0.08) 0%, transparent 40%);
  border-top: 4px solid var(--utah-accent);
}

.utah-section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.utah-section__subtitle {
  text-align: center;
  color: var(--utah-muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.utah-section__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .utah-section__intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .utah-section__intro-copy .utah-section__title,
  .utah-section__intro-copy .utah-section__subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .utah-section__intro-copy .utah-section__subtitle {
    margin-bottom: 0;
  }
}

.utah-section__intro-art {
  margin: 0;
  border-radius: var(--utah-radius-lg);
  overflow: hidden;
  box-shadow: var(--utah-shadow-lg);
  border: 1px solid var(--utah-border);
}

.utah-section__intro-art img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.utah-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.utah-feature-card {
  background: var(--utah-snow);
  border: 1px solid var(--utah-border);
  border-radius: var(--utah-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--utah-shadow);
  height: 100%;
}

.utah-section--alt .utah-feature-card {
  background: var(--utah-cream);
}

.utah-feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--utah-black) 0%, var(--utah-charcoal) 100%);
  color: var(--utah-accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.utah-feature-card__img {
  margin-bottom: 1rem;
  border-radius: 0.65rem;
  box-shadow: var(--utah-shadow);
}

.utah-feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.utah-feature-card p {
  margin: 0;
  color: var(--utah-muted);
  font-size: 0.95rem;
}

/* —— Motif strip —— */
.utah-motif-strip {
  position: relative;
  overflow: hidden;
  color: var(--utah-snow);
  border-top: 3px solid var(--utah-accent);
  border-bottom: 3px solid var(--utah-accent);
  background: var(--utah-ref-black) url("images/motif-coin-toss.webp") center / cover no-repeat;
}

.utah-motif-strip__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(43, 43, 43, 0.82) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.utah-motif-strip__thumb {
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.utah-motif-strip__thumb--whistle {
  object-position: center 40%;
}

.utah-motif-strip__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* —— CTA band —— */
.utah-cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--utah-black) 0%, var(--utah-charcoal) 100%);
  color: var(--utah-snow);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
}

.utah-cta-band--net {
  background-image: url("images/banner-goal-net.webp");
  background-size: cover;
  background-position: center;
}

.utah-cta-band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(43, 43, 43, 0.78) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.utah-cta-band--net > h2,
.utah-cta-band--net > p,
.utah-cta-band--net > a {
  position: relative;
  z-index: 1;
}

.utah-cta-band h2 {
  color: var(--utah-snow);
  margin-bottom: 0.75rem;
}

.utah-cta-band p {
  opacity: 0.9;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* —— Footer —— */
.utah-footer {
  text-align: center;
  padding: 1.75rem 1rem 2.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--utah-black);
  border-top: 3px solid var(--utah-accent);
}

.utah-footer a {
  color: var(--utah-accent);
}

.utah-footer a:hover,
.utah-footer a:focus-visible {
  color: var(--utah-snow);
}

.utah-footer__logo {
  display: block;
  width: auto;
  height: 2.25rem;
  margin: 0 auto 1rem;
  opacity: 0.95;
}

.utah-footer__motifs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  opacity: 0.55;
}

.utah-footer__icon {
  filter: grayscale(0.2);
}

/* —— Info / reference page —— */
.utah-main-info {
  padding-bottom: 0;
  max-width: 100%;
}

.utah-page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--utah-charcoal) 0%, var(--utah-black) 55%, #000 100%);
  color: var(--utah-snow);
  padding: clamp(2rem, 5vw, 3rem) 0;
  margin-bottom: 2rem;
}

.utah-page-banner--info {
  background-image: url("images/banner-goal-net.webp");
  background-size: cover;
  background-position: center 40%;
}

.utah-page-banner--info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(43, 43, 43, 0.82) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.utah-page-banner:not(.utah-page-banner--info)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--utah-grass-stripe);
  opacity: 0.5;
  pointer-events: none;
}

.utah-page-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.utah-page-banner h1 {
  color: var(--utah-snow);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.utah-page-banner__lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.utah-page-banner__photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
  max-width: min(100%, 360px);
  border-radius: var(--utah-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.utah-page-banner__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.utah-page-banner .utah-hero__eyebrow {
  color: var(--utah-charcoal);
}

.utah-page-header {
  margin-bottom: 2rem;
}

.utah-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.utah-card-header--striped {
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.07) 0%, rgba(43, 43, 43, 0.03) 100%);
  border-bottom: 3px solid var(--utah-accent);
  position: relative;
}

.utah-card-header--striped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--utah-ref-black),
    var(--utah-ref-black) 6px,
    var(--utah-ref-stripe) 6px,
    var(--utah-ref-stripe) 12px
  );
  opacity: 0.35;
}

.utah-ref-card {
  margin-bottom: 1.5rem;
}

.utah-ref-card .table {
  margin-bottom: 0;
}

.utah-ref-card caption {
  caption-side: top;
  padding: 0 0 0.75rem;
  color: var(--utah-muted);
  font-size: 0.9rem;
  text-align: left;
}

.table thead th {
  background: rgba(43, 43, 43, 0.07);
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom-width: 2px;
}

/* —— Google SSO (django-allauth) —— */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--utah-snow);
  border: 1px solid #dadce0;
  color: #3c4043;
  font-weight: 500;
}

.btn-google:hover,
.btn-google:focus-visible {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #202124;
}

.google-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #4285f4 50%, #34a853 50%);
  color: var(--utah-snow);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.auth-divider span {
  display: inline-block;
  padding: 0 0.75rem;
  background: var(--utah-snow);
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--utah-border);
  margin-top: -0.65rem;
}

/* —— Auth (login / signup) —— */
.utah-main-auth {
  padding: 0;
  max-width: 100%;
}

.utah-auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 72px);
}

@media (min-width: 992px) {
  .utah-auth-shell {
    grid-template-columns: minmax(280px, 42%) 1fr;
  }

  .utah-auth-shell--wide .utah-auth-panel--form {
    padding: 2rem 2.5rem 3rem;
  }
}

.utah-auth-panel--visual {
  position: relative;
  display: none;
  overflow: hidden;
  background: linear-gradient(165deg, var(--utah-sky-light), var(--utah-pitch-light) 45%, var(--utah-pitch));
  color: var(--utah-snow);
  padding: 2rem;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  text-align: center;
}

.utah-auth-panel--photo {
  background-image: url("images/auth-ref-kit.webp");
  background-size: cover;
  background-position: center 35%;
}

.utah-auth-panel--photo-signup {
  background-image: url("images/motif-coin-toss.webp");
  background-position: center top;
}

.utah-auth-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.62) 55%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

@media (min-width: 992px) {
  .utah-auth-panel--visual {
    display: flex;
  }
}

.utah-auth-card__motif,
.utah-auth-card__logo {
  border-radius: 0.35rem;
  object-fit: contain;
  box-shadow: var(--utah-shadow);
}

.utah-auth-card__logo {
  width: auto;
  height: 2.75rem;
  max-width: 100%;
  background: var(--utah-black);
  padding: 0.35rem 0.65rem;
}

.utah-auth-panel__tagline {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  max-width: 16rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.utah-auth-panel--form {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  background: var(--utah-cream);
}

.utah-auth-card {
  width: 100%;
  max-width: 520px;
  border: none;
  box-shadow: var(--utah-shadow-lg);
}

.utah-auth-shell--wide .utah-auth-card {
  max-width: 880px;
}

.utah-auth-page .auth-divider span {
  background: var(--utah-cream);
}

@media (prefers-reduced-motion: reduce) {
  .utah-hero__ball,
  .utah-hero__whistle {
    animation: none;
  }
}

/* —— Referee availability calendar —— */
.utah-avail-calendar__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.utah-avail-calendar__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utah-avail-calendar__nav-btn {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.utah-avail-calendar__title {
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 9rem;
  text-align: center;
}

.utah-avail-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--utah-muted);
}

.utah-avail-calendar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.utah-avail-calendar__legend-item::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  border: 1px solid var(--utah-border);
}

.utah-avail-calendar__legend-item.utah-avail-calendar__cell--open::before {
  background: rgba(61, 122, 82, 0.18);
  border-color: var(--utah-pitch-light);
}

.utah-avail-calendar__legend-item.utah-avail-calendar__cell--blocked::before {
  background: rgba(194, 65, 12, 0.15);
  border-color: var(--utah-canyon);
}

.utah-avail-calendar__legend-item.utah-avail-calendar__cell--muted::before {
  background: rgba(28, 25, 23, 0.06);
}

.utah-avail-calendar__grid {
  display: grid;
  gap: 2px;
}

.utah-avail-calendar__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.utah-avail-calendar__head {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--utah-muted);
  text-align: center;
  padding: 0.15rem 0;
}

.utah-avail-calendar__cell-form {
  margin: 0;
  min-width: 0;
}

.utah-avail-calendar__cell {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--utah-border);
  border-radius: 0.35rem;
  background: var(--utah-snow);
  padding: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1.1;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

button.utah-avail-calendar__cell {
  cursor: pointer;
}

button.utah-avail-calendar__cell:hover,
button.utah-avail-calendar__cell:focus-visible {
  box-shadow: 0 0 0 2px rgba(26, 60, 52, 0.25);
  outline: none;
}

.utah-avail-calendar__cell--open {
  background: rgba(61, 122, 82, 0.14);
  border-color: rgba(61, 122, 82, 0.45);
  color: var(--utah-pine);
}

.utah-avail-calendar__cell--blocked {
  background: rgba(194, 65, 12, 0.12);
  border-color: rgba(194, 65, 12, 0.45);
  color: var(--utah-canyon-dark);
}

.utah-avail-calendar__cell--muted,
.utah-avail-calendar__cell--static.utah-avail-calendar__cell--muted {
  background: rgba(28, 25, 23, 0.04);
  color: var(--utah-muted);
  border-color: transparent;
}

.utah-avail-calendar__cell--outside {
  opacity: 0.55;
}

.utah-avail-calendar__cell--today {
  box-shadow: inset 0 0 0 2px var(--utah-sky);
}

.utah-avail-calendar__cell--past:not(.utah-avail-calendar__cell--open):not(.utah-avail-calendar__cell--blocked) {
  opacity: 0.75;
}

.utah-avail-calendar__day-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 576px) {
  .utah-avail-calendar__cell {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }
}
