:root {
    --red: #cc0000;
    --ink: #101010;
    --charcoal: #333;
    --muted: #666;
    --line: #e0dcd7;
    --paper: #f7f6f5;
    --white: #fff;
    --field-border: #8d827a;
    --focus: #15414b;
    --sage-dark: #313f31;
    --sage-medium: #556a55;
    --sage-soft: #e9ece9;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --gutter: clamp(1.125rem, 5vw, 4.5rem);
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.45;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.frame { width: min(100% - 2 * var(--gutter), 82rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.15rem, 3.1vw, 3.3rem); min-height: 5.4rem; }
.site-logo { display: block; width: clamp(10rem, 15vw, 13rem); max-width: 100%; }
.site-logo img, .swiss-mark img, .footer-logo img { display: block; width: 100%; height: auto; }
.main-nav { display: flex; justify-content: center; gap: clamp(.85rem, 1.7vw, 1.75rem); align-items: stretch; align-self: stretch; }
.main-nav a { display: flex; align-items: center; position: relative; font-size: .875rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--red); }
.swiss-mark { width: clamp(6.8rem, 9.8vw, 9rem); justify-self: end; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); align-items: center; gap: .35rem; padding: .55rem; }
.menu-toggle svg { width: 1.35rem; height: 1.35rem; }

.hero { background: var(--white); }
.hero-content {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
    padding-block: clamp(2.5rem, 4.8vw, 4.35rem);
}
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 46%; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; font-size: .875rem; letter-spacing: .08em; font-weight: 700; }
.hero h1, .page-heading h1 {
    font-size: clamp(2.125rem, 4vw, 2.625rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.025em;
}
.hero h1 { margin: .9rem 0 .8rem; }
.hero p { color: var(--muted); max-width: 27rem; font-size: 1.125rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }

.button {
    min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: .22rem;
    font-size: .9rem; line-height: 1.35; font-weight: 700; text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.button-primary { color: white; background: var(--ink); border-color: var(--ink); }
.button-primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--field-border); }
.button-secondary:hover { border-color: var(--ink); background: var(--paper); }
.button:disabled { opacity: .68; cursor: default; }

.event-strip { background: var(--white); border-block: 1px solid var(--line); }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.event-cell { min-width: 0; display: flex; align-items: center; gap: 1rem; min-height: 6.65rem; padding: 1rem 1.25rem; text-decoration: none; }
.event-cell:first-child { padding-left: 0; }
.event-cell + .event-cell { border-left: 1px solid var(--line); }
.event-cell svg { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; color: var(--charcoal); }
.event-cell span { display: block; color: var(--muted); font-size: .825rem; margin-bottom: .13rem; }
.event-cell strong { font-size: .96rem; display: block; line-height: 1.4; overflow-wrap: anywhere; }
.event-link:hover strong { text-decoration: underline; }

.section { padding-block: clamp(3rem, 5.4vw, 5.1rem); }
.section-title { margin-bottom: 1.8rem; }
.section-title h2 {
    font-size: clamp(1.875rem, 3.6vw, 2.375rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.022em;
}
.section-title p, .page-heading p { color: var(--muted); max-width: 44rem; margin-top: .6rem; }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.join-card {
    display: flex; align-items: start; gap: 1.15rem; padding: clamp(1.25rem, 3vw, 2.15rem);
    background: var(--white); border: 1px solid var(--line);
}
.join-card h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); margin-bottom: .45rem; }
.join-card p { color: var(--muted); max-width: 28rem; }
.join-card .button { margin-top: 1.05rem; }
.section-icon { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; color: var(--ink); background: var(--paper); border-radius: .2rem; flex-shrink: 0; }
.section-icon svg { width: 1.45rem; height: 1.45rem; }

.brand-band { background: var(--white); padding-block: clamp(2.7rem, 4.6vw, 4.75rem); border-block: 1px solid var(--line); }
.brand-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: solid var(--line); border-width: 1px 0 0 1px; }
.brand-grid li { border: solid var(--line); border-width: 0 1px 1px 0; min-height: 5.1rem; padding: .8rem 1rem; display: grid; place-items: center; }
.brand-logo { width: 100%; height: 2.2rem; max-width: 7.1rem; object-fit: contain; display: block; }
.brand-name { color: var(--ink); text-align: center; font-weight: 700; font-size: .875rem; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quick-links a { display: grid; justify-items: start; gap: .4rem; padding: 1.2rem 1.3rem; text-decoration: none; background: var(--white); border: 1px solid var(--line); transition: border-color .15s; }
.quick-links a:hover { border-color: var(--field-border); }
.quick-links svg { width: 1.4rem; height: 1.4rem; color: var(--charcoal); margin-bottom: .2rem; }
.quick-links strong { font-size: 1.05rem; }
.quick-links span { font-size: .875rem; color: var(--muted); }
.sponsor-band { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(2.7rem, 5vw, 4.6rem); }
.sponsor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 1.5rem clamp(2rem, 5vw, 4.9rem); }
.sponsor-intro.section-title { margin: 0; }
.sponsor-intro .button { margin-top: 1.15rem; }
.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .85rem; }
.sponsor-grid li { min-width: 0; display: flex; }
.sponsor-grid li:only-child { width: 100%; max-width: 32rem; justify-self: center; }
.sponsor-card {
    display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
    min-height: 9.25rem; min-width: 0; padding: 1.15rem; background: white; border: 1px solid var(--line);
    text-align: center; text-decoration: none; overflow-wrap: anywhere;
}
a.sponsor-card:hover { border-color: var(--field-border); background: var(--paper); }
a.sponsor-card:hover strong { text-decoration: underline; }
.sponsor-card img { display: block; width: 100%; max-width: 10rem; height: 3.1rem; object-fit: contain; }
.sponsor-card strong { font-size: 1.04rem; }
.sponsor-card span { color: var(--muted); font-size: .875rem; }
.photo-band { padding-block: clamp(2.7rem, 4.6vw, 4.75rem); border-top: 1px solid var(--line); background: white; }
.photo-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1rem; }
.photo-layout figure { margin: 0; }
.photo-layout img { display: block; width: 100%; height: clamp(13rem,34vw,26rem); object-fit: cover; object-position: center 49%; }
.photo-layout figcaption { margin-top: .45rem; color: var(--muted); font-size: .825rem; }

.page-heading { border-bottom: 1px solid var(--line); background: var(--white); padding-block: clamp(2.3rem, 5vw, 4.75rem) clamp(1.9rem, 4vw, 3.55rem); }
.page-heading h1 { overflow-wrap: anywhere; }
.page-heading h1::before { content: ""; width: 2.2rem; height: .3rem; display: block; margin-bottom: .9rem; background: var(--red); }
.page-heading p { font-size: 1.075rem; margin-top: .8rem; }
.page-content { padding-top: clamp(1.5rem, 3.8vw, 3rem); }
.form-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, .9fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.form-panel, .info-panel { border: 1px solid var(--line); background: var(--white); padding: clamp(1rem, 2.7vw, 2rem); min-width: 0; }
.info-panel { background: var(--paper); }
.info-panel h2 { font-size: 1.28rem; }
.info-panel p { color: var(--muted); margin-block: .55rem .9rem; }
.text-link { font-weight: 650; }
.form-stack { display: grid; justify-items: start; gap: 1.15rem; }
.form-stack > :where(label, .form-field, .form-row, .company-fields) { width: 100%; }
.form-stack label { display: block; font-weight: 650; font-size: .9rem; }
.form-stack :is(input, select, textarea) {
    display: block; width: 100%; min-height: 2.85rem; margin-top: .3rem; padding: .57rem .7rem;
    background-color: #fff; color: var(--ink); border: 1px solid var(--field-border); border-radius: .2rem; font-size: 1rem; font-weight: 400;
}
.form-stack :is(input, select, textarea):focus { border-color: var(--focus); outline-offset: 1px; }
.form-stack textarea { resize: vertical; }
.form-stack select {
    appearance: none; padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23000000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.05rem;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.form-privacy, .field-hint { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.field-hint { margin-top: .28rem; }
.optional { font-size: .8rem; margin-left: .25rem; font-weight: 400; color: var(--muted); }
.narrow-field input { max-width: 7rem; }
.company-fields { display: grid; gap: 1.15rem; }
.company-select-row { display: flex; align-items: start; gap: .75rem; }
.company-select-field { flex: 1; min-width: 0; }
.selected-company { flex: 0 0 6.3rem; margin-top: 1.58rem; height: 2.85rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: .2rem; }
.selected-company img { width: 100%; height: 100%; object-fit: contain; }
.trap { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

.empty { padding: 2rem; background: var(--white); border: 1px solid var(--line); max-width: 100%; }
.empty .section-icon { margin-bottom: .8rem; }
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--muted); margin-top: .5rem; }
.empty + .button { margin-top: 1.05rem; }
.form-panel .empty { border: 0; padding: 0; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.team-directory { display: grid; gap: .75rem; }
.team-entry { display: grid; grid-template-columns: 6.2rem 1fr auto; align-items: center; padding: .9rem 1.1rem; gap: 1.15rem; background: #fff; border: 1px solid var(--line); }
.team-entry h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.team-entry p { font-size: .875rem; color: var(--muted); margin-top: .2rem; }
.team-mark { display: grid; place-items: center; height: 3.25rem; padding: .3rem; border-right: 1px solid var(--line); }
.team-mark svg { color: var(--charcoal); width: 1.5rem; height: 1.5rem; }
.team-logo { display: block; max-width: 4.7rem; width: 100%; max-height: 2.35rem; object-fit: contain; }
.team-players { white-space: nowrap; font-size: .9rem; font-weight: 650; }

.sub-nav { display: flex; flex-wrap: wrap; gap: 1rem clamp(1rem, 3vw, 2.3rem); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.sub-nav a { font-size: .94rem; text-decoration: none; padding: 0 0 .65rem; border-bottom: 3px solid transparent; font-weight: 660; }
.sub-nav a[aria-current], .sub-nav a:hover { border-color: var(--ink); }
.date-heading { font-size: 1.22rem; margin-bottom: .75rem; }
.schedule-list + .date-heading { margin-top: 1.6rem; }
.schedule-list, .table-wrap { background: white; border: 1px solid var(--line); }
.schedule-item { display: grid; grid-template-columns: 5rem 1fr auto; align-items: start; gap: 1rem; padding: 1rem; }
.schedule-item + .schedule-item { border-top: 1px solid var(--line); }
.schedule-item h3 { font-size: 1.075rem; }
.schedule-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-item p { color: var(--muted); margin-top: .35rem; }
.schedule-place, .data-note { color: var(--muted); font-size: .9rem; }
.data-note { margin-top: .75rem; }
.table-wrap { overflow-x: auto; }
.games-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 38rem; }
.games-table :is(th, td) { padding: .8rem 1rem; }
.games-table th { font-size: .875rem; background: var(--paper); }
.games-table td { border-top: 1px solid var(--line); }
.versus { color: var(--muted); margin-inline: .15rem; }
.live-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.score-card { padding: .95rem 1.2rem; min-width: 0; background: white; border: 1px solid var(--line); }
.score-meta, .score-team { display: flex; gap: .5rem; justify-content: space-between; align-items: center; }
.score-meta { margin-bottom: .55rem; color: var(--muted); font-size: .825rem; }
.score-meta span + span { text-align: right; }
.score-team { border-top: 1px solid var(--line); padding: .5rem 0; }
.score-team strong { overflow-wrap: anywhere; }
.score-team span { font-size: 1.25rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.set-scores { font-size: .875rem; color: var(--muted); margin-top: .25rem; }
.match-state { display: inline-block; border-radius: .2rem; background: var(--paper); color: var(--ink); font-weight: 700; padding: .2rem .5rem; line-height: 1.4; font-size: .8125rem; white-space: nowrap; }
.state-live::before { content: ""; background: var(--red); width: .42rem; height: .42rem; margin: 0 .35rem .08rem 0; border-radius: 50%; display: inline-block; }
.state-final { background: var(--sage-soft); color: var(--sage-dark); }

.faq-list { border: 1px solid var(--line); background: white; }
.faq-list .empty { border: 0; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; font-weight: 700; padding: 1rem 3rem 1rem 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--charcoal); font-size: 1.25rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1rem 1.15rem; color: var(--muted); }
.privacy-copy p { margin: .65rem 0 1.5rem; max-width: 46rem; }
.privacy-copy h2 { font-size: 1.32rem; }
.flash-wrap { margin-block: 1rem; }
.flash { padding: .8rem 1rem; background: var(--sage-soft); color: var(--sage-dark); border-left: 4px solid var(--sage-medium); overflow-wrap: anywhere; }
.flash-error { background: var(--paper); color: var(--ink); border-color: var(--red); }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2rem; }
.footer-logo { display: block; width: 9.65rem; flex: 0 0 auto; }
.footer-inner p { font-size: .875rem; font-weight: 650; }
.footer-inner p span { color: var(--muted); font-weight: 400; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-left: auto; font-size: .875rem; }
.footer-inner nav a:hover { color: var(--charcoal); }

@media (max-width: 73rem) {
    .topbar { grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; min-height: 4.5rem; }
    .swiss-mark { grid-column: 3; grid-row: 1; width: clamp(5.6rem, 25vw, 7rem); }
    .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; flex-wrap: wrap; padding-bottom: .45rem; }
    .main-nav a { min-height: 2.4rem; }
    .js .menu-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
    .js .main-nav { display: none; }
    .js .main-nav.is-open { display: flex; }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-cell { min-height: 5.4rem; padding-inline: 1rem; }
    .event-cell:nth-child(odd) { padding-left: 0; border-left: 0; }
    .event-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
    .brand-grid { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
    .footer-inner nav { margin-left: 0; }
}
@media (max-width: 43rem) {
    .hero-content { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2rem 1.5rem; }
    .hero-photo img { aspect-ratio: 16 / 9; }
    .join-grid, .quick-links, .sponsor-layout, .photo-layout, .form-layout, .faq-layout { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
    .brand-grid li { min-height: 4rem; }
    .brand-logo { height: 1.85rem; }
    .form-row { grid-template-columns: 1fr; }
    .schedule-item { grid-template-columns: 3.3rem 1fr; gap: .35rem .7rem; }
    .schedule-place { grid-column: 2; }
    .team-entry { grid-template-columns: 3.9rem minmax(0, 1fr); column-gap: .7rem; }
    .team-players { grid-column: 2; }
    .team-mark { grid-row: span 2; }
}
@media (max-width: 23rem) {
    .topbar { gap: .35rem; }
    .menu-toggle { font-size: .875rem; padding-inline: .35rem; }
    .event-cell { gap: .45rem; padding-right: .3rem; }
    .event-cell svg { width: 1.25rem; height: 1.25rem; }
    .join-card { display: grid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
