:root {
  color-scheme: light;
  --club-blue: #090fc4;
  --blue: #0088cc;
  --ink: #242424;
  --muted: #68717b;
  --line: #e6e9ed;
  --surface: #f5f7fa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 28px 20px;
  background: var(--club-blue);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: #0076b4; text-underline-offset: 3px; }
a:hover { color: #004e7b; }
img { display: block; max-width: 100%; }

.site-shell {
  width: min(1120px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 26px 34px 0;
  overflow: hidden;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 14%);
}

.site-header { border-bottom: 1px solid var(--line); }
.brand { display: block; margin: 0 auto 22px; }
.brand img { width: 100%; height: auto; }

.primary-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.primary-navigation a {
  padding: 8px 11px;
  border-radius: 4px;
  color: #3c4651;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.primary-navigation a:hover,
.primary-navigation a.active { background: var(--blue); color: #fff; }
.menu-toggle { display: none; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(210px, .82fr);
  gap: 38px;
  padding: 34px 0 50px;
}

.content { min-width: 0; }
.content article > :first-child { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 600; }
h2 { margin: 34px 0 14px; font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 15px; }
.eyebrow { margin-bottom: 8px !important; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 32px; align-items: start; }
.photo-pair img { width: 100%; max-height: 660px; object-fit: cover; border-radius: 4px; }
.match-widget { margin-top: 36px; }
.match-widget h2 { margin-top: 0; }
.widget-fallback { padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); }
.sidebar { display: grid; align-content: start; gap: 18px; }
.sidebar-card { padding: 20px; background: var(--surface); border-radius: 5px; }
.sidebar-card h2 { margin: 0 0 13px; padding-bottom: 10px; border-bottom: 1px solid #dfe4ea; font-size: 1.08rem; }
.sidebar-card p { margin-bottom: 0; }
.upcoming-event-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.upcoming-event-list li { padding-left: 11px; border-left: 2px solid var(--blue); }
.upcoming-event-list time, .event-meta { display: block; color: var(--muted); font-size: .82rem; }
.upcoming-event-list strong { display: block; line-height: 1.35; }
.upcoming-event-list p { margin-top: 4px; font-size: .88rem; }
.sidebar-card .text-link { display: inline-block; margin-top: 14px; }
.text-link { font-weight: 600; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a { text-decoration: none; }

.team-list, .download-list { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.team-list li, .download-list li { position: relative; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 4px; }
.team-list li::before { position: absolute; left: 15px; content: "⚽"; }
.download-list li::before { position: absolute; left: 16px; content: "↓"; color: var(--blue); font-weight: 700; }
.team-list a, .download-list a { font-weight: 600; }

.feature-list { display: grid; gap: 12px; margin: 24px 0 38px; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border-radius: 5px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list small { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.feature-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #e1f3fc; font-size: 1.25rem; }
.event-card, .notice { margin: 18px 0 28px; padding: 20px; border-left: 4px solid var(--blue); background: var(--surface); }
.event-card h3, .notice h2 { margin: 6px 0 8px; }
.event-card p:last-child, .notice p:last-child { margin-bottom: 0; }
.event-date { color: var(--muted); font-size: .88rem; font-weight: 700; }

.gallery { display: grid; gap: 18px; margin-top: 25px; }
.gallery img { width: 100%; border-radius: 4px; }
.donation-card { display: flex; align-items: center; gap: 22px; margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; }
.donation-card img { width: min(190px, 38%); border: 1px solid var(--line); }
.donation-card h2 { margin: 0 0 8px; }
.map-frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 5px; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.button-link { display: inline-block; padding: 9px 14px; border-radius: 4px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.button-link:hover { background: #006da5; color: #fff; }
.legal-content h2 { margin-top: 28px; }
.legal-content h1:not(:first-child) { margin-top: 45px; }
.legal-note { margin-top: 28px; padding: 14px; border-left: 3px solid #dc9a2c; background: #fff8e9; color: #5e4d30; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  body { padding: 14px 10px; }
  .site-shell { min-height: calc(100vh - 28px); padding: 18px 18px 0; }
  .brand { margin-bottom: 15px; }
  .menu-toggle {
    display: flex;
    width: 48px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 0 0 12px 4px;
    padding: 9px 11px;
    border: 1px solid #d8dce0;
    border-radius: 4px;
    background: #f4f4f4;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 100%; height: 2px; background: #777; }
  .primary-navigation { display: none; flex-direction: column; gap: 2px; padding: 8px 0 14px; }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { padding: 10px 12px; }
  .page-layout { grid-template-columns: 1fr; gap: 28px; padding: 26px 0 38px; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-card { padding: 16px; }
}

@media (max-width: 480px) {
  .photo-pair { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .donation-card { align-items: flex-start; flex-direction: column; }
  .donation-card img { width: min(190px, 100%); }
  .site-footer { flex-direction: column; }
}
