﻿:root {
  color-scheme: light;
  --ink: #192a23;
  --muted: #506258;
  --paper: #f4f5ef;
  --surface: #fffefa;
  --edge: #d9e1d8;
  --edge-deep: #b9c8bc;
  --night: #172420;
  --deep: #21362e;
  --moss: #315a45;
  --gold: #e7bc74;
  --accent: #8b303a;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
a { color: var(--moss); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(2.05rem, 4.35vw, 4.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
address { font-style: normal; }
:focus-visible { outline: 2px solid #a3482f; outline-offset: 4px; }
.home-skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 5; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.home-skip:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right));
  background: var(--night);
  color: #f2f4ed;
}
.site-header { min-height: 69px; padding-block: max(8px, env(safe-area-inset-top)) 8px; border-bottom: 1px solid #34473c; }
.club-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; line-height: 1.1; }
.club-brand:hover { color: white; }
.club-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.club-brand strong { display: block; font-size: 1.03rem; }
.club-brand small { display: block; margin-top: 4px; color: #c2d1c5; font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; }
.header-actions, .actions, .home-awards-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.header-admin { padding: .4rem .5rem; color: #dce8de; font-weight: 650; text-decoration: none; }
.header-admin:hover { color: var(--gold); }
.menu-toggle, .sidebar-admin { display: none !important; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 43px;
  padding: .5em .95em;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 720;
  text-decoration: none;
}
.button.primary { background: #8b303a; color: white; border-color: #742834; }
.button.primary:hover { background: #752833; color: white; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--edge-deep); }
.button.secondary:hover { background: #eaf0e7; }
.button:disabled { cursor: default; opacity: .55; }

.club-layout { min-height: 0; display: grid; grid-template-columns: clamp(172px, 17vw, 240px) minmax(0, 1fr); }
.club-sidebar { padding: 24px 14px 18px max(14px, env(safe-area-inset-left)); background: #e7ede5; border-inline-end: 1px solid #cfdbd0; }
.club-sidebar nav { display: grid; gap: 4px; }
.club-sidebar a {
  display: block;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .54em .72em;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.club-sidebar a:hover { background: #f4f7f0; }
.club-sidebar a[aria-current="location"] { background: var(--deep); border-color: var(--night); color: white; box-shadow: inset 0 1px #ffffff21; }
.club-main { min-width: 0; min-height: 0; }
.club-main:focus { outline: none; }
.club-view {
  --view-space: clamp(20px, 4vw, 64px);
  padding: clamp(22px, 5vh, 62px) max(var(--view-space), env(safe-area-inset-right)) clamp(22px, 5vh, 62px) max(var(--view-space), env(safe-area-inset-left));
}
.club-view:focus { outline: none; }
.view-inner { width: min(100%, 1350px); margin: auto; }
.view-inner > h2, .view-inner > .intro { margin-bottom: .55em; }
.intro { max-width: 58ch; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.16rem); }
.view-inner h2 + .card-grid, .view-inner .intro + .card-grid { margin-top: clamp(14px, 2.3vw, 30px); }
.view-inner > .actions, .card > .actions { margin-top: 18px; }
.has-club-views { overflow: hidden; }
.has-club-views body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
.has-club-views .club-sidebar, .has-club-views .club-view { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.has-club-views .club-view { height: 100%; }
.has-club-views .home-view { display: flex; }

.hero { display: grid; grid-template-columns: minmax(248px, .85fr) minmax(0, 1.45fr); align-items: center; gap: clamp(18px, 3vw, 46px); }
.hero > div { container-type: inline-size; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .6em; margin-bottom: .75em; color: var(--moss); font-size: .75rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 19px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(1.9rem, min(17.6cqi, 10.5dvh), 7.15rem); font-weight: 780; letter-spacing: -.073em; line-height: .98; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .intro { margin-top: clamp(10px, 2vh, 20px); max-width: 37ch; }
.hero .actions { margin-top: clamp(13px, 2.5vh, 23px); }
.team-photo {
  overflow: hidden;
  padding: 6px 6px 0;
  border: 1px solid #233a2d;
  border-bottom: 4px solid #13241b;
  border-radius: var(--radius);
  background: #294336;
  box-shadow: inset 0 1px #ffffff25, 0 5px 10px #17242012;
}
.team-photo img { display: block; width: 100%; height: auto; border-radius: 8px 8px 3px 3px; }
.team-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: .7em .65em .65em;
  color: #f9deb0;
  font-size: clamp(.7rem, 1.35vw, .92rem);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.team-photo figcaption::after { content: ''; width: 44px; height: 2px; background: #c8a46b; }
@keyframes caption-reveal {
  from { opacity: .8; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes caption-shine {
  0%, 22% { background-position: 100% 0; }
  55%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .team-photo figcaption { animation: caption-reveal .65s ease-out both; }
  @supports (background-clip: text) {
    .team-photo figcaption span {
      background: linear-gradient(100deg, #f9deb0 28%, #fffaf1 49%, #f9deb0 72%) 100% 0 / 260% 100%;
      background-clip: text;
      color: transparent;
      animation: caption-shine 6s ease-in-out infinite;
    }
  }
}

.surface {
  border: 1px solid var(--edge);
  border-bottom: 3px solid var(--edge-deep);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 7px #263c2e0c;
}
.home-fixtures, .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 21px); }
.home-fixtures, .three-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-fixtures { margin-top: clamp(15px, 4vh, 42px); }
.fixture { display: grid; gap: 2px; padding: clamp(10px, 1.45vw, 21px); color: var(--ink); text-decoration: none; min-width: 0; }
.fixture:hover { border-color: #93ab98; color: var(--moss); }
.fixture > span { color: var(--muted); font-size: .83rem; }
.fixture > span:first-child { font-weight: 700; }
.fixture strong { line-height: 1.25; font-size: clamp(.94rem, 1.62vw, 1.28rem); }

.card { min-width: 0; padding: clamp(15px, 2.1vw, 28px); overflow-wrap: anywhere; }
.card p, .card address, .card time { margin-top: .5em; color: var(--muted); }
.card h3 + .time-label { color: var(--moss); font-weight: 750; }
.event-card time { display: block; margin: 0 0 .45em; color: #385d46; font-weight: 720; }
.event-card details, .faq-card details + details { margin-top: .65em; padding-top: .65em; border-top: 1px solid var(--edge); }
summary { cursor: pointer; font-weight: 680; }
.status { color: var(--muted); }
.pitch-map { width: 100%; height: clamp(185px, 44vh, 350px); border: 1px solid var(--edge-deep); border-radius: var(--radius); }
.location-grid, .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.leader-card { text-align: center; }
.leader-photo { display: grid; place-items: center; margin: 0 auto .65rem; width: clamp(68px, 9vw, 126px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #e5ede3; color: var(--moss); font-size: 1.5rem; font-weight: 750; }
.media-view { max-width: 950px; }
.gallery-frame { overflow: hidden; }
.media-stage { display: grid; place-items: center; min-width: 0; background: #1e3028; }
.media-stage img, .media-stage video { display: block; width: 100%; height: clamp(140px, 53dvh, 525px); object-fit: contain; }
.media-error { padding: 20px; color: white; }
.gallery-frame figcaption { padding: 9px 14px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.business-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.business-card > :only-child { grid-column: 1 / -1; }
.business-photos { min-width: 0; }
.business-photos .media-stage { overflow: hidden; border-radius: 8px; }
.business-photos img { height: clamp(120px, 34dvh, 330px); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pager span { min-width: 3ch; color: var(--muted); font-size: .85rem; font-weight: 650; text-align: center; }
.join-layout { max-width: 950px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(14px, 3vw, 42px); }
.join-layout .intro { margin-top: .55em; }
.join-form { display: grid; gap: 6px; }
.join-form label { font-weight: 680; font-size: .88rem; }
.join-form input { width: 100%; min-height: 42px; border: 1px solid var(--edge-deep); border-radius: 7px; background: #fbfcf9; color: var(--ink); padding: .45em .65em; }
.join-form label:not(:first-of-type) { margin-top: 3px; }
.join-form button { justify-self: start; margin-top: 6px; }
#join-status[data-state="error"] { color: #8b303a; }

.site-footer { min-height: 43px; border-top: 1px solid #34473c; padding-block: 6px max(6px, env(safe-area-inset-bottom)); }
.site-footer small { color: #cad8cf; font-size: .75rem; }
.home-awards-actions { gap: 6px; }
.home-awards-actions a { color: #ffe9ba; border: 1px solid #866e4a; background: #3e3426; border-radius: 6px; padding: 6px 9px; font-weight: 680; font-size: .81rem; text-decoration: none; }
.home-awards-actions a:hover { background: #57452d; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(185px, .85fr) minmax(0, 1.3fr); }
}
@media (max-width: 760px), (max-height: 510px) {
  .club-layout { grid-template-columns: minmax(0, 1fr); }
  .has-club-views .club-layout { position: relative; }
  .has-club-views .club-sidebar {
    display: none;
    position: absolute;
    inset: 0 0 auto;
    max-height: 100%;
    z-index: 3;
    border: 0;
    border-bottom: 2px solid var(--edge-deep);
    padding: 10px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  }
  .has-club-views .club-sidebar.menu-open { display: block; }
  .club-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-club-views .menu-toggle, .has-club-views .sidebar-admin { display: inline-flex !important; }
  .has-club-views .header-admin { display: none; }
  .sidebar-admin { margin-top: 6px; }
  .site-header, .site-footer { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .site-header { min-height: 58px; }
  .club-brand img { width: 35px; height: 35px; }
  .site-header .button { min-height: 39px; padding-inline: .65em; }
  .club-view { --view-space: clamp(14px, 3.6vw, 32px); padding-block: clamp(15px, 3.1vh, 32px); }
}
@media (max-width: 540px) {
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .hero h1 br { display: none; }
  .hero .intro { margin-top: 8px; }
  .hero .actions { margin-top: 11px; }
  .hero .eyebrow { margin-bottom: .45em; }
  .fixture-location { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .fixture-location > :nth-child(2) { grid-row: 2; }
  .fixture-location > :last-child { grid-row: 1 / span 2; grid-column: 2; }
  .home-fixtures { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .three-cards, .location-grid, .contact-grid, .join-layout, .business-card { grid-template-columns: 1fr; }
  .leader-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; text-align: start; align-items: center; }
  .leader-photo { grid-row: span 2; margin: 0; }
  .leader-card p { margin-top: 0; }
  .media-stage img, .media-stage video { height: clamp(140px, 47dvh, 390px); }
  .business-photos img { height: clamp(105px, 24dvh, 240px); }
  .site-footer:has(.home-awards-actions) small { display: none; }
  .site-footer:has(.home-awards-actions) { justify-content: flex-end; }
}
@media (max-width: 365px) {
  .club-brand { gap: 6px; }
  .club-brand img { width: 29px; height: 29px; }
  .club-brand strong { font-size: .84rem; white-space: nowrap; }
  .header-actions { gap: 5px; flex-wrap: nowrap; }
  .site-header { gap: 6px; }
  .site-header .button { font-size: .79rem; padding-inline: .55em; white-space: nowrap; }
  .site-footer small { font-size: .69rem; }
}
@media (max-height: 650px) {
  .club-view { padding-block: 14px; }
  .home-fixtures { margin-top: 12px; }
  .fixture { padding-block: 8px; }
  .club-sidebar { padding-top: 10px; }
  .club-sidebar a { padding-block: .4em; }
}
@media (max-height: 700px) and (max-width: 540px) {
  .hero h1 { font-size: clamp(2.15rem, 8.5vw, 2.75rem); }
  .hero .intro { font-size: .91rem; }
  .hero, .home-fixtures { gap: 8px; }
  .team-photo figcaption { padding-block: .48em; }
  .home-fixtures .fixture:not(.fixture-location) > :last-child,
  .fixture-location > :first-child { display: none; }
  .fixture-location > :nth-child(2), .fixture-location > :last-child { grid-row: 1; }
}
@media (max-height: 600px) and (max-width: 540px) {
  .home-view { padding-block: 5px; }
  .hero h1 { font-size: clamp(1.9rem, 8.1vw, 2.55rem); }
  .hero .eyebrow { font-size: .68rem; }
  .hero .intro { margin-top: 5px; line-height: 1.35; }
  .hero .button { min-height: 37px; }
  .home-fixtures { margin-top: 6px; }
  .fixture { padding: 5px 7px; }
}
@media (max-height: 510px) and (min-width: 500px) {
  .site-header { min-height: 50px; padding-block: max(4px, env(safe-area-inset-top)) 4px; }
  .site-footer { min-height: 35px; padding-block: 3px max(3px, env(safe-area-inset-bottom)); }
  .home-awards-actions a { padding-block: 3px; }
  .club-view { padding-block: 10px; }
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 12px; }
  .hero h1 { font-size: clamp(1.8rem, min(15cqi, 7dvh), 2.4rem); }
  .hero h1 br { display: none; }
  .hero .eyebrow { margin-bottom: 4px; }
  .hero .intro { margin-top: 5px; font-size: .87rem; }
  .hero .actions { margin-top: 7px; }
  .hero .button { min-height: 35px; }
  .hero .button.secondary { display: none; }
  .team-photo img { max-height: 35dvh; object-fit: contain; }
  .team-photo figcaption { padding-block: .4em; }
  .home-fixtures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
  .home-fixtures .fixture { grid-column: auto; display: grid; grid-template-columns: 1fr; padding-block: 5px; }
  .home-fixtures .fixture > span:last-child { display: none; }
  .home-fixtures .fixture > span:first-child { display: block; }
  .fixture-location > :nth-child(2) { grid-row: auto; }
}
@media (max-height: 370px) and (min-width: 500px) {
  .home-view { padding-block: 6px; }
  .hero .eyebrow { display: none; }
}
