:root {
  --red: #d71920;
  --ink: #161a22;
  --muted: #606978;
  --line: #d9dde5;
  --paper: #ffffff;
  --wash: #f3f5f8;
  --blue: #145b9f;
  --green: #16865f;
  --yellow: #f0b429;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-head, .nav-inner, .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--red);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 0;
}
.topbar-links {
  display: flex;
  justify-content: flex-end;
  white-space: nowrap;
}
.topbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.topbar-links a + a::before {
  content: "";
  width: 1px;
  height: 13px;
  margin: 0 12px;
  background: var(--line);
}
.site-head {
  position: relative;
  padding: 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand img { width: 280px; }
.brand-title {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 260px;
}
.header-side {
  display: grid;
  gap: 13px;
  min-width: 0;
  flex: 1;
}
.header-provinces {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.header-province {
  min-width: 78px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 0;
  color: #384152;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}
.header-province span {
  order: 1;
}
.header-province img {
  order: 2;
  width: auto;
  height: 85px;
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #111;
  color: #f3f5f8;
  border-top: 0;
  border-bottom: 0;
}
.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 18px;
}
.nav-row {
  order: 2;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.hamburger-bars {
  display: grid;
  gap: 4px;
  width: 20px;
}
.hamburger-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
}
.nav-mobile-trigger {
  border-color: rgba(255,255,255,.36);
  color: #fff;
  background: transparent;
}
.nav-mobile-trigger .hamburger-bars span {
  background: #fff;
}
.nav-links {
  order: 1;
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.nav-links a,
.nav-drop-button {
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-drop-button:hover { color: var(--red); }
.nav-dropdown {
  position: relative;
}
.nav-drop-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-drop-button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-drop-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--red);
  color: #fff;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 12px 24px rgba(22,26,34,.14);
  display: none;
  padding: 6px;
}
.nav-drop-list a {
  display: block;
  padding: 10px 12px;
  text-transform: none;
  font-size: 14px;
}
.nav-drop-list a:hover,
.sport-sub-list a:hover,
.sport-sub-button:hover {
  color: #fff;
  background: rgba(0,0,0,.14);
}
.nav-dropdown:hover .nav-drop-list,
.nav-dropdown:focus-within .nav-drop-list {
  display: block;
}
.sport-submenu {
  position: relative;
}
.sport-sub-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}
.sport-sub-button::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 10px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
}
.sport-sub-list {
  position: absolute;
  top: -7px;
  right: 100%;
  min-width: 220px;
  display: none;
  background: var(--red);
  color: #fff;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 12px 24px rgba(22,26,34,.14);
  padding: 6px;
}
.sport-submenu:hover .sport-sub-list,
.sport-submenu:focus-within .sport-sub-list {
  display: block;
}
.sport-sub-list a {
  display: block;
  padding: 10px 12px;
  text-transform: none;
  font-size: 14px;
}
.admin-link {
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-panel-backdrop,
.nav-close {
  display: none;
}
.nav-mobile-bar {
  display: none;
}
.site-hero {
  position: relative;
  overflow: hidden;
  border-top: 5px solid #000;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.hero-track {
  position: relative;
  height: 350px;
}
.hero-panel {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.43) 100%),
    var(--hero-image) center / cover;
  transition: opacity .45s ease;
}
.hero-panel.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-panel .wrap {
  position: relative;
  z-index: 1;
  height: 350px;
  display: flex;
  align-items: end;
  padding: 42px 0 34px;
}
.hero-content {
  max-width: 760px;
}
.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(22,26,34,.18);
  background: rgba(255,255,255,.72);
  padding: 4px 8px;
  color: #424a58;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  margin: 8px 0 14px;
  max-width: 720px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}
.site-hero p {
  max-width: 620px;
  margin: 0 0 16px;
  color: #313846;
  font-size: 19px;
}
.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22,26,34,.28);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.hero-controls button:hover {
  color: var(--red);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  font-weight: 700;
}
.btn.primary {
  background: var(--ink);
  color: #fff;
}
.notice {
  background: rgba(255,255,255,.93);
  border: 1px solid var(--line);
  padding: 18px;
}
.notice time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.notice strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
h2 {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.18;
}
.all-link { color: var(--red); font-weight: 700; }
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.news-card, .event-row, .doc-row {
  border: 1px solid var(--line);
  background: #fff;
}
.news-card {
  min-height: 158px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-card.featured {
  background: var(--wash);
  border-top: 4px solid var(--red);
}
.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.news-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.22;
}
.news-card p {
  margin: 0;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.home-main,
.home-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 12px;
}
.feature-panel {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 12px;
}
.section-title.compact {
  margin-bottom: 12px;
}
.section-title.compact h2 {
  font-size: clamp(20px, 2vw, 24px);
}
.event-list, .doc-list {
  display: grid;
  gap: 8px;
}
.event-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}
.event-row.event-with-image {
  grid-template-columns: 96px 72px 1fr auto;
}
.event-thumb {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--wash);
}
.event-row.highlight {
  border-left: 4px solid var(--red);
}
.datebox {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 9px;
  font-weight: 800;
}
.datebox span {
  display: block;
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}
.datebox small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.side-panel {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 14px;
}
.side-panel h2 {
  font-size: clamp(19px, 2vw, 23px);
}
.side-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}
.result-list,
.side-link-list,
.sponsor-list {
  display: grid;
  gap: 8px;
}
.result-list a,
.side-link-list a,
.sponsor-list a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
  font-weight: 800;
}
.result-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sponsor-list a {
  grid-template-columns: 62px 1fr;
  align-items: center;
}
.sponsor-list span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.province-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.province-grid a {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-weight: 700;
}
.province-grid img { width: 34px; height: auto; }
.placeholder {
  max-width: 720px;
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 28px;
}
.links-page {
  display: grid;
  gap: 20px;
}
.link-group {
  display: grid;
  gap: 10px;
}
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.link-card {
  min-height: 130px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.link-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}
.link-card span,
.link-card small {
  color: var(--muted);
}
.link-card small {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  padding: 42px 0 34px;
}
.page-hero h1 {
  margin-bottom: 12px;
}
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.narrow {
  max-width: 820px;
}
.archive-list {
  display: grid;
  gap: 12px;
}
.archive-list.compact {
  gap: 8px;
}
.archive-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.archive-row h2 {
  margin-top: 6px;
  font-size: 20px;
}
.archive-row p {
  max-height: 3.1em;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
}
.empty-state {
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 18px;
  color: var(--muted);
}
.content-page {
  padding: 38px 0 50px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  font-size: 20px;
}
.rich-text {
  margin-top: 22px;
}
.rich-text a {
  color: var(--red);
  font-weight: 700;
}
.rich-text img,
.rich-text table {
  max-width: 100%;
}
.attachments {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.people-list {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.attachments .doc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}
.event-row.large {
  grid-template-columns: 92px 1fr auto;
}
.event-row p {
  margin: 8px 0 0;
  color: var(--muted);
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.club-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.club-card h2 {
  margin: 6px 0 8px;
  font-size: 20px;
}
.club-card p {
  color: var(--muted);
}
.club-links {
  display: grid;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.section-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.quick-links,
.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.quick-links a,
.mini-list a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font-weight: 700;
}
.province-hero {
  display: flex;
  align-items: center;
  gap: 22px;
}
.province-hero img {
  width: 86px;
  height: auto;
}
footer {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .brand-title { display: none; }
}

@media (max-width: 900px) {
  .site-head {
    align-items: center;
    flex-direction: row;
    padding: 14px 0;
  }
  .brand { width: auto; }
  .brand img { width: min(240px, 70vw); }
  .header-side {
    display: none;
  }
  .header-provinces {
    display: none;
  }
  .main-nav {
    position: sticky;
    top: 0;
    border: 0;
    background: #111;
    color: #f3f5f8;
  }
  .nav-mobile-bar {
    width: min(1180px, calc(100% - 32px));
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .nav-mobile-trigger {
    display: inline-flex;
    min-height: 36px;
    padding: 6px 10px;
  }
  .nav-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(22,26,34,.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .nav-inner {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 31;
    width: min(360px, calc(100vw - 44px));
    margin: 0;
    padding: 14px 16px 22px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #fff;
    color: var(--ink);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 30px rgba(22,26,34,.18);
    transform: translateX(100%);
    transition: transform .2s ease;
    overflow: auto;
  }
  .site-head:has(.nav-toggle:checked) ~ .main-nav .nav-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .site-head:has(.nav-toggle:checked) ~ .main-nav .nav-inner {
    transform: translateX(0);
  }
  .nav-row {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--line);
    padding: 6px 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-links {
    order: 2;
    display: flex;
    flex-direction: column;
  }
  .nav-links a,
  .nav-drop-button {
    width: 100%;
    min-height: 42px;
    padding: 10px 0;
  }
  .nav-dropdown {
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .nav-drop-button {
    justify-content: space-between;
  }
  .nav-drop-list {
    position: static;
    display: grid;
    width: auto;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    padding: 0 0 4px 14px;
    background: transparent;
    color: var(--ink);
  }
  .sport-submenu {
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .sport-sub-button {
    min-height: 42px;
    padding: 10px 0;
  }
  .sport-sub-button::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    border-bottom: 0;
  }
  .sport-sub-list {
    position: static;
    display: grid;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: var(--ink);
    padding: 0 0 4px 14px;
  }
  .admin-link { text-align: center; }
  .two-col,
  .home-layout,
  .home-feature-grid { grid-template-columns: 1fr; }
  .event-row.event-with-image {
    grid-template-columns: 96px 72px 1fr auto;
  }
  .link-card-grid { grid-template-columns: repeat(2, 1fr); }
  .notice { max-width: 520px; }
  .news-grid { grid-template-columns: 1fr; }
  .club-grid { grid-template-columns: 1fr 1fr; }
  .section-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar-links { flex-wrap: wrap; }
  .hero-track, .hero-panel .wrap { height: 350px; }
  .hero-panel .wrap { padding: 34px 0 70px; }
  .site-hero p { font-size: 17px; }
  .hero-controls {
    right: 16px;
    bottom: 18px;
  }
  .event-row { grid-template-columns: 70px 1fr; }
  .event-row.event-with-image {
    grid-template-columns: 88px 1fr;
  }
  .event-thumb {
    width: 88px;
    height: 62px;
  }
  .event-row.event-with-image .datebox {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }
  .event-row .tag { grid-column: 2; justify-self: start; }
  .archive-row { flex-direction: column; }
  .club-grid { grid-template-columns: 1fr; }
  .province-hero { align-items: flex-start; flex-direction: column; }
  .province-grid { grid-template-columns: 1fr; }
  .link-card-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
