:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --ink: #12211b;
  --muted: #52656f;
  --line: #dfe6ea;
  --brand: #0f5132;
  --brand-strong: #0a3b29;
  --brand-soft: #dff4ea;
  --accent: #f5c451;
  --danger: #b42318;
  --shadow: 0 12px 30px rgba(13, 37, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f5f1 0%, var(--bg) 40%, #edf6f1 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%; display: block;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px 18px;
  position: sticky;
  top: 0;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.foundation-brand {
  color: inherit;
  text-decoration: none;
}

.foundation-brand > span {
  display: grid;
  gap: 4px;
}

.foundation-brand strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.1;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 81, 50, 0.18));
}

.league-mark-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 81, 50, 0.03), rgba(245, 196, 81, 0.08));
  margin-bottom: 18px;
}

.league-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.league-mark-wrap h3 {
  margin: 0;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  background: var(--brand-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}

.nav-dropdown-trigger:focus-visible,
.nav-dropdown-menu a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.nav-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 150ms ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu[hidden] {
  display: none;
}

.nav-dropdown-menu a {
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  white-space: nowrap;
}

.pill-button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.pill-button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

a.pill-button {
  display: inline-block;
  text-decoration: none;
}

.install-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff7d6;
  border: 1px solid #f2d57a;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 10px 0 18px;
}

.install-banner strong,
.install-banner span {
  display: block;
}

.install-banner span {
  color: var(--muted);
  margin-top: 4px;
}

.update-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #edf8f2;
  border: 1px solid #9bd5b7;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 10px 0 18px;
}

.update-banner strong,
.update-banner span { display: block; }
.update-banner span { color: var(--muted); margin-top: 4px; }
.update-banner button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 600px) {
  .update-banner { align-items: stretch; flex-direction: column; }
  .update-banner .install-actions { justify-content: flex-end; flex-wrap: wrap; }
}

.install-banner button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.install-actions {
  display: flex;
  gap: 12px;
}

.section {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-header h2,
.section-header h3 {
  margin: 0;
}

.eyebrow-block {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.hero-copy {
  padding: 14px 0;
}

.hero h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: 8px 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  background: linear-gradient(160deg, var(--brand-soft), #eef8ff);
  min-height: 280px;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.pitch-card {
  width: min(100%, 330px);
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pitch-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.score-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  background: #111827;
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

.grids {
  display: grid;
  gap: 18px;
}

.card-grid,
.news-grid,
.media-grid,
.product-grid,
.past-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card,
.news-item,
.media-item,
.product-item,
.player-card,
.sponsor-card,
.faq-item,
.donation-item,
.event-item,
.order-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.card {
  padding: 18px;
}

.badge {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.news-item .image,
.media-item .image,
.product-item .image,
.player-card .image,
.donation-item .image {
  height: 180px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #d8f0de, #edf7f4);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.news-item,
.media-item,
.product-item,
.player-card,
.donation-item {
  padding: 0 0 14px 0;
}

.news-item .content,
.product-item .content,
.donation-item .content,
.media-item .content,
.player-card .content {
  padding: 0 16px;
}

.product-item .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  padding: 16px;
  text-align: center;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 10px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: white;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #edf7f1;
  color: var(--brand-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.team-emblem {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.leaderboard-table-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 14px;
}

.leaderboard-table {
  width: 100%;
}

.leaderboard-scroll-hint {
  display: none;
}

.leaderboard-table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.team-row {
  font-weight: 700;
}

.form-results {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.form-result {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.form-result-win { background: #187a45; }
.form-result-draw { background: #68717d; }
.form-result-loss { background: #b42318; }

.component-list {
  display: grid;
  gap: 12px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.list-card strong {
  display: block;
}

.fixture-highlight-preview {
  display: block;
  position: relative;
  width: min(100%, 320px);
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  color: white;
  background: #13251d;
}
.fixture-highlight-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 160ms ease;
}
.fixture-highlight-preview span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 10px;
  color: white;
  font-weight: 800;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.fixture-highlight-preview .play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  vertical-align: -1px;
}
.fixture-highlight-preview:hover img,
.fixture-highlight-preview:focus-visible img {
  filter: brightness(0.76);
}
.fixture-highlight-preview:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.filter-chip.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-color: rgba(15,81,50,0.2);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 18px;
}

.player-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.player-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.player-card-link:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}

.player-card .avatar {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9efe2, #edf7f3);
  font-size: 2rem;
  font-weight: 800;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.small-button {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 12px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.queue-item {
  border: 1px solid var(--line);
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.queue-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
}

.status-tag.pending {
  background: #fff7d6;
  color: #a16207;
}

.status-tag.published {
  background: #dcfce7;
  color: #166534;
}

.status-tag.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.foundation-campaign-image {
  display: block;
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-soft);
}

.foundation-sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  text-align: center;
}

.foundation-sponsor-logo {
  width: min(100%, 220px);
  height: 96px;
  object-fit: contain;
}

.team-directory-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.team-profile-layout {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

@media (max-width: 600px) {
  .team-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}


.fixture-preview-list,
.fixture-directory-list {
  display: grid;
  gap: 12px;
}

.fixture-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(223, 230, 234, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.fixture-preview-row strong {
  font-weight: 600;
}

.fixture-preview-vs {
  color: var(--muted);
  font-weight: 500;
}

.fixture-directory-shell {
  margin-top: 26px;
}

.fixture-directory-controls {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

.fixture-filter {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef3ef;
}

.fixture-filter-option {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.fixture-filter-option:hover {
  color: var(--ink);
}

.fixture-filter-option.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 48, 33, .2);
}

.fixture-filter-option:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.fixture-directory-groups {
  display: grid;
  gap: 32px;
  margin-top: 20px;
}

.fixture-directory-list {
  gap: 16px;
}

.fixture-directory-card {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fixture-directory-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fixture-directory-date {
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 800;
}

.fixture-directory-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.fixture-directory-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
}

.fixture-directory-team strong {
  overflow-wrap: anywhere;
}

.fixture-directory-team-away {
  justify-content: flex-end;
  text-align: right;
}

.fixture-directory-badge {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.fixture-directory-badge-fallback {
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 0.95rem;
  font-weight: 800;
}

.fixture-directory-score {
  min-width: 78px;
  text-align: center;
  color: var(--brand-strong);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 900;
  white-space: nowrap;
}

.fixture-directory-vs {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.fixture-directory-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.fixture-directory-highlight {
  justify-self: start;
}

.fixture-directory-highlights {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 720px);
  margin: 0 auto 16px;
}

.fixture-directory-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--brand-soft);
}

.fixture-platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fixture-platform-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 35, 28, .2);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fixture-platform-link:hover,
.fixture-platform-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 35, 28, .3);
}

.fixture-platform-link:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}

.fixture-platform-link-youtube { background: #e62117; }
.fixture-platform-link-tiktok { background: #111; }
.fixture-platform-link-instagram { background: #c13584; }
.fixture-platform-link-facebook { background: #1877f2; }
.fixture-platform-link-x { background: #000; }
.fixture-platform-link-other { background: var(--brand-strong); }

@media (max-width: 600px) {
  .fixture-preview-row {
    align-items: flex-start;
  }

  .fixture-directory-matchup {
    gap: 8px;
  }

  .fixture-directory-team {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .fixture-directory-team-away {
    flex-direction: column-reverse;
  }

  .fixture-directory-badge {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .fixture-directory-score {
    min-width: 58px;
  }
}
#news .news-carousel__controls { display: none; }
/* Work Order 16: responsive public layouts */
@media (max-width: 600px) {
  html { scroll-padding-top: 12rem; overflow-x: clip; }
  body { overflow-x: hidden; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-visual { min-width: 0; width: 100%; }
  .card-grid, .news-grid, .media-grid, .product-grid, .past-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card, .news-item, .media-item, .product-item, .past-card-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  #news .news-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: visible;
    padding: 0 2px;
    touch-action: pan-y;
    transition: transform 320ms cubic-bezier(.2, .75, .2, 1);
    will-change: transform;
    user-select: none;
  }

  #news .news-carousel { overflow: hidden; }
  #news .news-carousel__controls { display: none; }
  #news .news-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
  }
  #news .news-carousel__button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15,81,50,.16);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-strong);
    font-size: 1.2rem;
    font-weight: 800;
  }
  #news .news-carousel__button:disabled { opacity: .38; }
  #news .news-carousel__count { min-width: 54px; color: var(--muted); font-size: .82rem; font-weight: 800; text-align: center; }

  #news .news-item {
    width: 100%;
  }
}
  .hero h2 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  .hero-visual { min-height: 240px; }
  .pitch-card { max-width: 100%; }

  .app-shell {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 10px;
    padding: 12px 4px;
  }

  .brand-wrap { min-width: 0; gap: 8px; }
  .brand-logo { flex: 0 0 44px; width: 44px; height: 44px; }
  .main-nav {
    justify-content: flex-start;
    gap: 4px;
    padding: 2px 0;
  }

  .main-nav a,
  .nav-dropdown-trigger {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
    min-width: min(190px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .section {
    padding: clamp(14px, 4vw, 20px);
    border-radius: 16px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-header > div {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .install-actions,
  .hero-actions,
  .inline-actions,
  .queue-item-actions {
    flex-wrap: wrap;
  }

  .install-actions > *,
  .hero-actions > *,
  .inline-actions > *,
  .queue-item-actions > * {
    min-height: 44px;
  }

  .pitch-row { gap: 8px; }
  .score-badge { min-width: 56px; min-height: 56px; font-size: 1.5rem; }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  #standings-page .leaderboard-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #standings-page .leaderboard-table {
    display: table;
    width: 760px;
    min-width: 760px;
    max-width: none;
    table-layout: fixed;
    overflow: visible;
  }

  #standings-page .leaderboard-table th,
  #standings-page .leaderboard-table td {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  #standings-page .leaderboard-table th:first-child,
  #standings-page .leaderboard-table td:first-child {
    width: 54px;
    text-align: center;
  }

  #standings-page .leaderboard-table th:nth-child(2),
  #standings-page .leaderboard-table td:nth-child(2) {
    width: 210px;
    white-space: normal;
  }

  #standings-page .leaderboard-table th:nth-child(n+3):nth-child(-n+10),
  #standings-page .leaderboard-table td:nth-child(n+3):nth-child(-n+10) {
    width: 48px;
    text-align: center;
  }

  #standings-page .leaderboard-table th:nth-child(11),
  #standings-page .leaderboard-table td:nth-child(11) {
    width: 112px;
    text-align: center;
  }

  #standings-page .team-identity {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  #standings-page .team-identity > span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #standings-page .team-emblem {
    flex: 0 0 30px;
  }

  #standings-page .leaderboard-scroll-hint {
    display: block;
    margin: 0 0 8px;
    font-size: 0.85rem;
  }
  th, td { overflow-wrap: anywhere; }
  input[type="checkbox"], input[type="radio"] { width: auto; }
  input, select, textarea, button { max-width: 100%; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  body { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .brand-logo { flex-basis: 38px; width: 38px; height: 38px; }
  .topbar > .pill-button { padding: 8px 10px; }
  .fixture-directory-matchup { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .fixture-directory-score { min-width: 48px; }
}
/* Work Order 18: polished, club-branded public navigation */
.topbar {
  min-width: 0;
  padding: 13px clamp(14px, 2vw, 24px);
  border-bottom: 3px solid var(--accent);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(112deg, #081d18 0%, #0a3b29 58%, #10563b 100%);
  color: #f7fbf8;
  box-shadow: 0 12px 26px rgba(7, 34, 24, 0.2);
}

.topbar .brand-wrap {
  min-width: 0;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.topbar .brand-crest-link:focus-visible {
  border-radius: 10px;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.topbar .brand-logo {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  padding: 3px;
  border: 1px solid rgba(245, 196, 81, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.topbar .brand-wrap .eyebrow {
  color: #f5c451;
  font-weight: 700;
}

.topbar .brand-wrap > span {
  display: grid;
  gap: 4px;
}

.topbar .brand-wrap strong,
.topbar .brand-wrap h1 {
  color: #fff;
  letter-spacing: 0.015em;
}

.topbar .brand-wrap h1 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
}

.topbar .main-nav {
  min-width: 0;
  gap: 4px;
  align-items: center;
}

.topbar .main-nav > a,
.topbar .nav-dropdown-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.topbar .main-nav > a:hover,
.topbar .main-nav > a:focus-visible,
.topbar .nav-dropdown-trigger:hover,
.topbar .nav-dropdown-trigger:focus-visible,
.topbar .nav-dropdown-trigger[aria-expanded="true"] {
  border-color: rgba(245, 196, 81, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar .main-nav > a[aria-current="page"] {
  border-color: rgba(245, 196, 81, 0.52);
  background: rgba(245, 196, 81, 0.15);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.topbar .main-nav > a:focus-visible,
.topbar .nav-dropdown-trigger:focus-visible,
.topbar .nav-dropdown-menu a:focus-visible,
.topbar > .pill-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.topbar .nav-dropdown-trigger {
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.topbar .nav-dropdown-menu {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 81, 50, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 34, 24, 0.24);
}

.topbar .nav-dropdown-menu a {
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.topbar .nav-dropdown-menu a:hover,
.topbar .nav-dropdown-menu a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.topbar > .pill-button.secondary {
  flex: 0 0 auto;
  border: 1px solid #f5c451;
  background: #f5c451;
  color: #10291f;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.topbar > .pill-button.secondary:hover {
  background: #ffda78;
}

@media (max-width: 880px) {
  .topbar {
    justify-content: space-between;
  }

  .topbar .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .topbar {
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 9px;
    border-radius: 0 0 14px 14px;
  }

  .topbar .brand-logo {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .topbar .main-nav {
    margin-inline: -4px;
    padding: 2px 4px 5px;
  }

  .topbar .main-nav > a,
  .topbar .nav-dropdown-trigger {
    padding-inline: 11px;
    font-size: 0.88rem;
  }

  .topbar > .pill-button.secondary {
    padding: 9px 12px;
    font-size: 0.84rem;
  }


}

@media (prefers-reduced-motion: reduce) {
  .topbar .main-nav > a,
  .topbar .nav-dropdown-trigger {
    transition: none;
  }
}
/* Work Order 5: horizontally browsable public player-card rows */
.player-grid--horizontal {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 81, 50, 0.55) transparent;
}

.player-grid--horizontal:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.player-grid--horizontal > .player-card {
  flex: 0 0 clamp(230px, 25vw, 280px);
  min-width: 0;
  scroll-snap-align: start;
}

.player-grid--horizontal > .player-card > img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.player-grid--horizontal > .player-card .avatar {
  height: 200px;
}

.player-scroll-hint {
  display: none;
}

@media (max-width: 600px) {
  .player-grid--horizontal > .player-card {
    flex-basis: min(78vw, 280px);
  }

  .player-scroll-hint {
    display: block;
    margin: -8px 0 10px;
    font-size: 0.85rem;
  }
}

/* Work Order 19 follow-up: contain narrow layouts and finish the public news pages. */
.app-shell,
.app-shell main,
.app-shell .section,
.app-shell .card-grid,
.app-shell .hero,
.app-shell .fixture-directory-card,
.app-shell .fixture-directory-matchup {
  min-width: 0;
  max-width: 100%;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell p,
.app-shell .card,
.app-shell .section {
  overflow-wrap: anywhere;
}

.news-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 20px 0 24px;
}

.news-filter label { font-weight: 700; }
.news-filter select {
  min-width: min(220px, 100%);
  max-width: 100%;
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.news-filter button { min-height: 44px; }
@media (min-width: 901px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.news-list { align-items: stretch; }
.news-item {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-item .content h4,
.news-item .content h2 { min-height: 2.4em; }
.news-item .content > a:last-child { margin-top: auto; }
.news-item .content > p {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.news-item > img,
.news-item .news-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}
.news-item .news-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-item h2 { margin: 12px 0 8px; font-size: 1.2rem; }
.news-item h2 a { color: var(--brand-strong); text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-item time { color: var(--muted); font-size: .88rem; }
.news-item p { color: var(--muted); line-height: 1.55; }
.news-read-link { color: var(--brand-strong); font-weight: 700; text-decoration: none; }
.news-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px dashed #a9c8b7;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3faf6, #fff);
}
.news-empty-state h2,
.news-empty-state p { margin: 0; }
.news-empty-state p { color: var(--muted); }
.news-pagination { margin-top: 24px; overflow-x: auto; }
.news-article-page { max-width: 900px; margin-inline: auto; }
.news-back-link { margin: 0 0 20px; }
.news-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.news-article h1 { margin: 18px 0 12px; font-size: clamp(1.8rem, 5vw, 3rem); }
.news-article-excerpt { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.news-article-cover { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 14px; margin-top: 22px; }
.news-article-body { margin-top: 24px; white-space: pre-wrap; line-height: 1.75; overflow-wrap: anywhere; }
.player-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.player-stats > div { min-width: 0; padding: 12px 10px; border-radius: 12px; background: #f3f8f5; }
.player-stats dt { color: var(--muted); font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.player-stats dd { margin: 5px 0 0; color: var(--brand-strong); font-size: 1.2rem; font-weight: 800; }

@media (max-width: 600px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .topbar { width: 100%; max-width: 100%; }
  .topbar .brand-wrap { flex: 1 1 auto; }
  .topbar > .pill-button.secondary { max-width: 100%; }
  .topbar .main-nav { flex: 0 0 100%; width: 100%; }
  .topbar .main-nav > a,
  .topbar .main-nav .nav-dropdown-trigger { white-space: normal; }
  .login-shell { width: 100%; min-width: 0; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .login-box { width: 100%; min-width: 0; }
  .login-box form,
  .login-box .form-row,
  .login-box .form-row > div { min-width: 0; max-width: 100%; }
  .login-box input:not([type="checkbox"]),
  .login-box button { width: 100%; max-width: 100%; }
  .login-box input { min-width: 0; }
  .player-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-filter { align-items: stretch; flex-direction: column; }
  .news-filter select,
  .news-filter button { width: 100%; }
}


/* Keep the public shell and its flex/grid contents inside the phone viewport. */
@media (max-width: 600px) {
  .app-shell { width: 100%; }
  .app-shell main { width: 100%; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .topbar .brand-wrap { min-width: 0; }
  .topbar .brand-wrap > span { min-width: 0; }
  .topbar > .pill-button.secondary { justify-self: end; }
  .topbar .main-nav {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
    padding: 2px 0 5px;
  }
  .topbar .main-nav > a,
  .topbar .main-nav .nav-dropdown-trigger {
    max-width: 100%;
    white-space: normal;
  }
  .login-shell { display: flex; width: 100%; min-width: 0; }
  .login-box { flex: 0 1 480px; max-width: 100%; }
  .login-box form { width: 100%; }
  .login-box .form-row { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .login-box .form-row > div { width: 100%; }
  .login-box input:not([type="checkbox"]),
  .login-box button { box-sizing: border-box; display: block; }
  .news-empty-state { min-width: 0; }
  .news-empty-state p { max-width: 100%; }
}


/* Compact homepage standings preview; the complete statistics live on /standings. */
.standings-preview-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .88rem;
}
.standings-preview-table th,
.standings-preview-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.standings-preview-table th:nth-child(2),
.standings-preview-table td:nth-child(2) {
  width: auto;
  text-align: left;
}
.standings-preview-table th:first-child,
.standings-preview-table td:first-child { width: 38px; }
.standings-preview-table th:nth-child(n+3),
.standings-preview-table td:nth-child(n+3) { width: 42px; }
.standings-preview-table .team-identity { display: flex; min-width: 0; align-items: center; gap: 7px; }
.standings-preview-table .team-emblem { flex: 0 0 22px; width: 22px; height: 22px; }
.standings-preview-table .team-identity > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.standings-preview-table .is-our-team,
#standings-page .leaderboard-table .is-our-team { background: #ecfdf5; color: var(--brand-strong); }
.standings-full-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #081d86;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.standings-full-link:hover,
.standings-full-link:focus-visible { background: #1239d5; }
.standings-full-link span { font-size: 1.4em; line-height: 1; }
.standings-back-link { margin: 18px 0 0; }
.standings-back-link a { color: var(--brand-strong); font-weight: 700; }
#standings-page .leaderboard-table-scroll { max-width: 100%; }

@media (max-width: 600px) {
  .standings-preview-table { font-size: .78rem; }
  .standings-preview-table th,
  .standings-preview-table td { padding: 8px 3px; }
  .standings-preview-table th:first-child,
  .standings-preview-table td:first-child { width: 28px; }
  .standings-preview-table th:nth-child(n+3),
  .standings-preview-table td:nth-child(n+3) { width: 34px; }
  .standings-preview-table .team-identity { gap: 5px; }
  .standings-preview-table .team-emblem { flex-basis: 18px; width: 18px; height: 18px; }
  .standings-preview-table .team-identity > span { white-space: nowrap; }
  .standings-full-link { min-height: 48px; }
}

/* Match centre cards based on the supplied fixture references */
.fixture-preview-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fixture-preview-card { display: flex; min-width: 0; flex-direction: column; gap: 20px; padding: 22px 18px 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fixture-preview-card-date { display: grid; gap: 6px; text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.fixture-preview-card-date strong { color: var(--brand-strong); font-size: .95rem; }
.fixture-preview-card-date span, .fixture-directory-competition { color: var(--muted); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.fixture-preview-matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.fixture-preview-matchup .fixture-directory-team { flex-direction: column; justify-content: center; gap: 8px; text-align: center; font-size: .95rem; }
.fixture-preview-matchup .fixture-directory-team-away { flex-direction: column; }
.fixture-preview-matchup .fixture-directory-team strong { overflow-wrap: anywhere; }
.fixture-preview-score { min-width: 88px; padding: 14px 8px; border: 1px solid var(--line); color: var(--brand-strong); font-size: 1.25rem; font-weight: 900; text-align: center; white-space: nowrap; }
.fixture-preview-venue { min-height: 2.5em; color: var(--muted); font-size: .8rem; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.fixture-preview-link { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; padding: 15px; background: var(--brand-strong); color: #fff; font-weight: 800; text-decoration: none; }
.fixture-preview-link:hover, .fixture-preview-link:focus-visible { background: var(--brand); }
.fixture-directory-card { gap: 14px; padding: 24px clamp(16px, 4vw, 48px) 0; border: 0; border-radius: 0; box-shadow: none; }
.fixture-directory-card-heading { justify-content: center; flex-wrap: wrap; }
.fixture-directory-date { color: var(--ink); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.fixture-directory-matchup { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); }
.fixture-directory-team { font-size: clamp(1rem, 2vw, 1.35rem); }
.fixture-directory-badge { flex-basis: 76px; width: 76px; height: 76px; border: 0; }
.fixture-directory-score { min-width: 78px; padding: 10px 8px; border: 1px solid var(--line); font-size: 1.2rem; }
.fixture-directory-details { justify-content: center; padding-top: 0; border: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.fixture-directory-card-result { border-bottom: 1px solid var(--line); }
.fixture-directory-highlight { justify-self: center; margin: 0 0 8px; }
@media (max-width: 760px) {
  .fixture-preview-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fixture-preview-list { grid-template-columns: minmax(0, 1fr); }
  .fixture-preview-card { max-width: 440px; width: 100%; margin-inline: auto; }
  .fixture-directory-matchup { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 8px; }
  .fixture-directory-badge { flex-basis: 52px; width: 52px; height: 52px; }
  .fixture-directory-team { font-size: .95rem; }
}
.fixture-directory-list { gap: 24px; }
.fixture-directory-card { background: var(--panel); border-bottom: 0; }
.fixture-directory-card + .fixture-directory-card { border-top: 1px solid var(--line); }

/* Keep match cards legible at tablet and narrow phone widths. */
.fixture-preview-section, .fixture-preview-list, .fixture-preview-card,
.fixture-directory-groups, .fixture-directory-list, .fixture-directory-card { min-width: 0; }
.fixture-preview-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fixture-directory-card { width: 100%; }
.fixture-preview-matchup .fixture-directory-team,
.fixture-directory-matchup .fixture-directory-team { min-width: 0; }
.fixture-preview-matchup .fixture-directory-team strong,
.fixture-directory-matchup .fixture-directory-team strong { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .fixture-preview-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fixture-preview-list { grid-template-columns: minmax(0, 1fr); }
  .fixture-preview-card { max-width: 460px; padding: 20px 16px 16px; }
  .fixture-directory-card { padding: 20px 16px 16px; }
  .fixture-directory-details { gap: 8px 12px; text-align: center; }
  .fixture-preview-link { min-height: 48px; }
}
@media (max-width: 360px) {
  .fixture-preview-card { padding: 18px 12px 12px; }
  .fixture-preview-matchup { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 4px; }
  .fixture-preview-matchup .fixture-directory-badge { flex-basis: 44px; width: 44px; height: 44px; }
  .fixture-preview-score { min-width: 72px; padding: 12px 4px; font-size: 1.05rem; }
  .fixture-directory-card { padding-inline: 10px; }
  .fixture-directory-matchup { grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); gap: 4px; }
  .fixture-directory-badge { flex-basis: 44px; width: 44px; height: 44px; }
  .fixture-directory-score { min-width: 68px; padding-inline: 4px; font-size: 1.05rem; }
}
/* Work Order 20: sponsorship packages and enquiry form */
.sponsorship-package-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.sponsorship-package { min-width: 0; }
.sponsorship-package ul { padding-left: 1.25rem; }
.sponsorship-enquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 850px; }
.sponsorship-enquiry-form label { display: grid; gap: 7px; min-width: 0; font-weight: 700; }
.sponsorship-enquiry-form label:has(textarea), .sponsorship-enquiry-form .privacy-consent, .sponsorship-enquiry-form > button { grid-column: 1 / -1; }
.sponsorship-enquiry-form input:not([type="checkbox"]), .sponsorship-enquiry-form select, .sponsorship-enquiry-form textarea { width: 100%; min-width: 0; }
.sponsorship-enquiry-form .privacy-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.sponsorship-enquiry-form .privacy-consent input { flex: 0 0 auto; margin-top: 4px; }
.sponsor-enquiry-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.sponsorship-inquiry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sponsorship-inquiry-details { display: grid; grid-template-columns: minmax(100px, .3fr) minmax(0, 1fr); gap: 6px 12px; overflow-wrap: anywhere; }
.sponsorship-inquiry-details dt { color: var(--muted); font-weight: 700; }
.sponsorship-inquiry-details dd { min-width: 0; margin: 0; white-space: pre-wrap; }
.sponsorship-inquiry-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.sponsorship-inquiry-actions label { display: grid; gap: 6px; }
@media (max-width: 600px) {
  .sponsorship-enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .sponsorship-enquiry-form label:has(textarea), .sponsorship-enquiry-form .privacy-consent, .sponsorship-enquiry-form > button { grid-column: auto; }
  .sponsorship-inquiry-details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sponsorship-inquiry-details dd { margin-bottom: 8px; }
}
/* Mobile navigation uses a floating crest and full-screen navigation page. */
.topbar-menu-toggle { display: none; }
.mobile-nav-page { display: none; }
.mobile-nav-lock { overflow: hidden; }
@media (max-width: 600px) {
  .topbar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    z-index: 120;
    width: 52px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .topbar .brand-wrap { display: block; }
  .topbar .brand-wrap > span,
  .topbar .brand-wrap > div:not(.brand-crest-link),
  .topbar .main-nav,
  .topbar > .pill-button.secondary { display: none; }
  .topbar .brand-crest-link {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(245, 196, 81, 0.72);
    border-radius: 15px;
    background: rgba(8, 29, 24, 0.96);
    box-shadow: 0 10px 28px rgba(7, 34, 24, 0.34);
    backdrop-filter: blur(12px);
  }
  .topbar .brand-logo { width: 44px; height: 44px; flex-basis: 44px; padding: 2px; border-width: 0; border-radius: 11px; }
  .mobile-nav-page { position: fixed; inset: 0; z-index: 1100; display: block; }
  .mobile-nav-page[hidden] { display: none; }
  .mobile-nav-page__backdrop { position: absolute; inset: 0; background: rgba(4, 18, 14, 0.58); backdrop-filter: blur(8px); opacity: 0; transition: opacity 220ms ease; }
  .mobile-nav-page__panel {
    position: absolute; inset: 0 16px 0 0; max-width: 390px; overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background: radial-gradient(circle at 100% 0, rgba(245,196,81,.16), transparent 34%), linear-gradient(145deg,#071b16 0%,#0a3b29 72%,#10563b 100%);
    color: #fff; box-shadow: 18px 0 50px rgba(4,18,14,.42); transform: translateX(-102%); transition: transform 240ms cubic-bezier(.2,.75,.2,1);
  }
  .mobile-nav-page--open .mobile-nav-page__backdrop { opacity: 1; }
  .mobile-nav-page--open .mobile-nav-page__panel { transform: translateX(0); }
  .mobile-nav-page__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mobile-nav-page__brand { display: flex; align-items: center; gap: 12px; }
  .mobile-nav-page__brand img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
  .mobile-nav-page__brand div { display: grid; gap: 2px; }
  .mobile-nav-page__brand span { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-nav-page__brand strong { font-size: 1.18rem; }
  .mobile-nav-page__close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.8rem; line-height: 1; }
  .mobile-nav-page__links { display: grid; gap: 8px; }
  .mobile-nav-page__links > a, .mobile-nav-group summary, .mobile-nav-page__links > .pill-button.secondary {
    display:flex; min-height:54px; align-items:center; width:100%; padding:12px 14px; border:1px solid rgba(255,255,255,.1); border-radius:13px; background:rgba(255,255,255,.055); color:#fff; font-size:1rem; font-weight:750; text-decoration:none;
  }
  .mobile-nav-group summary { cursor:pointer; list-style:none; }
  .mobile-nav-group summary::-webkit-details-marker { display:none; }
  .mobile-nav-group summary::after { content:'+'; margin-left:auto; color:var(--accent); font-size:1.35rem; }
  .mobile-nav-group[open] summary::after { content:'−'; }
  .mobile-nav-group[open] { border-radius:13px; background:rgba(255,255,255,.035); }
  .mobile-nav-group > a { display:flex; min-height:48px; align-items:center; margin:4px 10px; padding:10px 14px; border-radius:10px; color:rgba(255,255,255,.88); font-weight:700; text-decoration:none; }
  .mobile-nav-group > a:first-of-type { margin-top:8px; }
  .mobile-nav-page__links > .pill-button.secondary { margin-top:14px; justify-content:center; background:var(--accent); color:#082118; }
  .mobile-nav-page a:focus-visible, .mobile-nav-page summary:focus-visible, .mobile-nav-page button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}
@media (max-width: 600px) {
  .topbar.topbar--compact .main-nav > * {
    flex: 0 0 auto;
  }

  .topbar.topbar--compact .main-nav .nav-dropdown-trigger {
    max-width: none;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .topbar--menu-open .main-nav {
    overflow: visible;
    flex-wrap: wrap;
  }
}
.nav-dropdown-menu--overlay {
  position: fixed;
  z-index: 1100;
  display: grid;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  border: 1px solid rgba(15, 81, 50, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 34, 24, 0.3);
}

.nav-dropdown-menu--overlay a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
}

.nav-dropdown-menu--overlay a:hover,
.nav-dropdown-menu--overlay a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* Public footer */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 40px;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 48px) 24px;
  border-top: 4px solid var(--accent);
  background:
    radial-gradient(circle at 8% 18%, rgba(245, 196, 81, .12), transparent 26%),
    linear-gradient(145deg, #071711 0%, #0a3022 58%, #0d3d2c 100%);
  color: #edf7f3;
}

.site-footer-orb {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, .16), rgba(245, 196, 81, 0) 68%);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr)) 1.25fr;
  gap: 16px;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.site-footer-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(237, 247, 243, .09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 38px rgba(2, 18, 13, .22);
  backdrop-filter: blur(12px);
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer nav { color: inherit; }

.site-footer h2 { margin: 4px 0 0; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.site-footer h3 { margin: 6px 0 14px; font-size: 1rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a,
.site-footer-contact a,
.site-footer-bottom a { color: #edf7f3; text-decoration: none; }
.site-footer nav a { transition: color 150ms ease, transform 150ms ease; }
.site-footer nav a:hover { color: var(--accent); transform: translateX(3px); }
.site-footer-brand p { max-width: 32ch; margin-top: 18px; color: rgba(237, 247, 243, .78); }
.site-footer-identity { display: flex; align-items: center; gap: 12px; }
.site-footer-crest { width: 54px; height: 54px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .96); }
.site-footer-eyebrow { color: var(--accent); }
.site-footer-card-label, .eyebrow-block { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer-newsletter { grid-column: span 1; }
.site-footer-newsletter p { color: rgba(237, 247, 243, .78); }
.site-footer-action { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--brand-strong); font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(245, 196, 81, .18); }
.site-footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-footer-contact section { gap: 8px; }
.site-footer-contact[hidden] { display: none; }
.site-footer-contact a, .site-footer-contact p { margin: 0; overflow-wrap: anywhere; }
.site-footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer-social-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); box-shadow: 0 10px 24px rgba(238, 42, 123, .22); transition: transform 150ms ease; }
.site-footer-social-icon--tiktok { background: #111; box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.site-footer-social-icon:hover { transform: translateY(-2px); }
.site-footer-social-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.site-footer-social-icon .site-footer-instagram-dot { fill: #fff; stroke: none; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 16px; width: min(1120px, 100%); margin: 18px auto 0; padding: 18px 4px 0; border-top: 1px solid rgba(237, 247, 243, .14); color: rgba(237, 247, 243, .72); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-footer-grid, .site-footer-contact { grid-template-columns: 1fr; }
  .site-footer-card { padding: 20px; }
  .site-footer-bottom { flex-direction: column; }
}