:root { color-scheme: light; --ink: #20292d; --muted: #5c666b; --line: #dfe5e6; --blue: #0762c4; --orange: #e65b12; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; background: #fff; padding: 12px; color: var(--blue); }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 98px; }
.brand { display: block; width: 200px; flex: 0 0 200px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { border-color: var(--orange); color: var(--blue); }
.sports-banner { position: relative; isolation: isolate; overflow: hidden; background: #171b1b; color: #fff; }
.banner-image { position: absolute; z-index: -1; inset: 0; }
.banner-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.banner-content { padding-block: 34px 30px; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.banner-content .eyebrow { color: #daeb7f; }
.banner-content h1 { margin: 0; font-size: 38px; font-weight: 750; line-height: 1.2; }
.banner-content > p:not(.eyebrow) { margin: 8px 0 18px; color: #eceded; font-size: 16px; }
.banner-link { display: inline-flex; gap: 16px; align-items: center; min-height: 36px; font-weight: 600; font-size: 13px; }
.banner-link .icon { color: #c6dd43; }
.banner-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.events-section { padding-block: 36px 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 3px; }
.section-heading :is(h1, h2) { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; }
.result-count { margin: 0 0 3px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.event-tools { margin-bottom: 24px; }
.search-row { display: flex; align-items: stretch; gap: 16px; }
.search-field { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; border: 1px solid #ccd5d7; border-radius: 6px; padding-left: 14px; background: #fff; }
.search-field > .icon { color: #6a7479; }
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-field input { min-width: 0; width: 100%; height: 46px; padding: 8px 12px 8px 0; border: 0; outline: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #6a7479; opacity: 1; }
.status-field { display: flex; align-items: center; gap: 12px; border: 1px solid #ccd5d7; border-radius: 6px; padding-left: 14px; }
.status-field label { font-size: 12px; color: var(--muted); }
.status-field select { min-width: 148px; max-width: 100%; height: 46px; padding: 0 10px 0 0; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.category-filters button { display: inline-flex; gap: 7px; justify-content: center; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 5px; background: #f1f4f4; color: #4d595e; font-size: 13px; font-weight: 600; }
.category-filters button .icon { width: 16px; height: 16px; }
.category-filters button:hover { border-color: #aebdc1; }
.category-filters button[aria-pressed="true"] { background: #20383b; color: #fff; border-color: #20383b; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.event-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color 150ms ease, box-shadow 150ms ease; }
.event-card:hover, .event-card:focus-within { border-color: #a0b2b7; box-shadow: 0 6px 18px #2533360d; }
.event-art { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; min-height: 156px; border-bottom: 1px solid #00000008; }
.cycling .event-art { background: #e5f1f8; color: #145883; }
.running .event-art { background: #fff0e5; color: #973e1a; }
.community .event-art { background: #e9f2ec; color: #35644a; }
.art-type { position: relative; min-width: 0; z-index: 1; }
.art-type > span { display: block; font-size: 11px; margin-bottom: 12px; }
.art-type strong { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; }
.art-type strong span { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; }
.sport-icon { width: 64px; height: 64px; stroke-width: 1.2; opacity: 0.8; }
.event-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.sport-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; background: #edf8f1; color: #236b44; padding: 4px 7px; font-size: 10px; font-weight: 650; }
.status-badge > span { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-badge.is-closed { background: #f1f3f4; color: #566167; }
.event-card :is(h2, h3) { font-size: 19px; line-height: 1.4; margin: 0 0 14px; min-height: 54px; overflow-wrap: anywhere; }
.event-card :is(h2, h3) a:hover { color: var(--blue); }
.event-date { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #53626a; margin: 0; }
.event-date .icon { width: 16px; height: 16px; }
.event-description { margin: 14px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.event-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 8px; border-top: 1px solid #e9edee; padding-top: 16px; margin-top: auto; }
.event-price { display: grid; gap: 3px; margin: 0; }
.event-price strong { font-size: 20px; font-weight: 700; }
.event-price strong.text-price { font-size: 13px; }
.event-price span { color: var(--muted); font-size: 10px; }
.event-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--blue); font-size: 12px; font-weight: 650; }
.event-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-link .icon { width: 17px; height: 17px; }
.empty-state { text-align: center; padding: 48px 16px; border-block: 1px solid var(--line); }
.empty-state > .icon { width: 28px; height: 28px; color: var(--muted); }
.empty-state h3 { margin: 12px 0 6px; font-size: 20px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.reset-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: #fff; color: var(--blue); border: 1px solid #b7c8d5; border-radius: 5px; padding: 8px 14px; font-size: 13px; }
.certificate-strip { border-block: 1px solid var(--line); background: #f6f8f8; }
.certificate-inner { display: flex; align-items: center; gap: 18px; padding-block: 26px; }
.certificate-icon { width: 36px; height: 36px; color: #bc4d13; }
.certificate-inner h2 { font-size: 17px; font-weight: 650; margin: 0 0 3px; }
.certificate-inner p { margin: 0; font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; font-weight: 650; color: var(--blue); }
.certificate-inner .text-link { margin-left: auto; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding-block: 26px; font-size: 11px; color: var(--muted); }
.site-footer > span { color: #343d42; font-weight: 750; }
.site-footer p { margin: 0; }
.site-footer > a { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.certificate-page { min-height: 100svh; display: flex; flex-direction: column; }
.certificate-page main { flex: 1; }
.certificate-heading { padding-block: 52px 28px; border-bottom: 1px solid var(--line); }
.certificate-heading .eyebrow { color: var(--blue); }
.certificate-heading h1 { font-size: 36px; margin: 0; line-height: 1.3; }
.certificate-heading p:last-child { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.certificate-status { padding-block: 44px 64px; max-width: 650px; }
.certificate-status > .icon { width: 56px; height: 56px; color: var(--orange); margin-bottom: 22px; }
.availability { color: #4e595f; background: #f0f3f3; display: table; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; margin: 0 0 16px; }
.certificate-status h2 { font-size: 24px; line-height: 1.3; margin: 0 0 14px; }
.certificate-status > p:not(.availability) { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }
.certificate-actions { display: flex; gap: 20px 32px; flex-wrap: wrap; }
.certificate-support { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.certificate-support a { color: var(--blue); overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .events-grid { gap: 16px; }
  .event-art { padding: 20px 16px; }
  .sport-icon { width: 48px; height: 48px; }
  .art-type strong { font-size: 21px; }
  .event-body { padding: 16px; }
}
@media (max-width: 800px) {
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 22px; }
  .brand { width: 170px; flex-basis: 170px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-direction: column; gap: 4px; padding-top: 9px; min-height: 0; }
  .brand { width: 168px; flex-basis: auto; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: 13px; min-height: 44px; }
  .banner-content { padding-block: 28px; }
  .banner-content h1 { font-size: 30px; }
  .banner-content > p:not(.eyebrow) { font-size: 14px; }
  .banner-image img { object-position: 45% top; }
  .events-section { padding-block: 28px 36px; }
  .section-heading { gap: 12px; margin-bottom: 20px; }
  .section-heading :is(h1, h2) { font-size: 24px; }
  .section-heading .eyebrow { font-size: 10px; }
  .search-row { flex-direction: column; gap: 10px; }
  .status-field { align-self: flex-start; }
  .status-field select { height: 42px; }
  .category-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-filters button { min-height: 44px; }
  .events-grid { grid-template-columns: 1fr; gap: 20px; }
  .event-art { min-height: 144px; padding: 24px; }
  .art-type strong { font-size: 25px; }
  .sport-icon { width: 68px; height: 68px; }
  .event-body { padding: 20px; }
  .event-card :is(h2, h3) { min-height: 0; font-size: 20px; }
  .event-price span { font-size: 11px; }
  .certificate-inner { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px 16px; }
  .certificate-icon { width: 30px; height: 30px; }
  .certificate-inner h2 { font-size: 16px; }
  .certificate-inner .text-link { grid-column: 2; margin-left: 0; }
  .site-footer { gap: 4px 16px; }
  .site-footer p { width: 100%; order: 3; }
  .certificate-heading { padding-top: 32px; }
  .certificate-heading h1 { font-size: 30px; }
  .certificate-status { padding-block: 32px 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
