:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  --cloth-dark: #073b2d;
  --cloth: #0b6047;
  --cushion: #153f31;
  --wood-dark: #482719;
  --wood: #7a4024;
  --wood-light: #aa6a39;
  --paper: #fffaf0;
  --paper-muted: #f4ead7;
  --ink: #272218;
  --ink-soft: #5d5548;
  --line: #cdbd9e;
  --link: #075946;
  --link-hover: #003f31;
  --accent: #a55a1d;
  --warning: #7b4b00;
  --warning-bg: #fff0c8;
  --danger: #8f1f1f;
  --danger-bg: #fde2dd;
  --success: #135f3d;
  --success-bg: #dff2df;
  --focus: #d18320;
}

* { box-sizing: border-box; }

html { min-width: 0; }

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgb(255 255 255 / 8%), transparent 22rem),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 1.5%) 0 1px, transparent 1px 5px),
    var(--cloth-dark);
}

body:not(.photo-window) { min-height: 100vh; }

.instance-banner {
  position: relative;
  z-index: 2;
  padding: .45rem 1rem;
  color: #fff;
  background: #36506e;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}
.instance-sandbox .instance-banner { color: #2b1600; background: #ffbf47; }

button, input, select, textarea { font: inherit; }

a {
  color: var(--link);
  text-decoration-thickness: .11em;
  text-underline-offset: .15em;
}

a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3 {
  color: var(--cloth-dark);
  line-height: 1.18;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -.025em;
}

h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

h3 { font-size: 1.15rem; }

p, ul, ol { margin: .85rem 0; }

li + li { margin-top: .35rem; }

small { color: var(--ink-soft); }

.message {
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--paper-muted);
}
.message-error, .status-warning { color: var(--danger); background: var(--danger-bg); }
.message-success { color: var(--success); background: var(--success-bg); }
.schedule-history-item + .schedule-history-item { margin-top: 1rem; border-top: 1px solid var(--line); }
.schedule-slot-options { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding: 0; list-style: none; }
.schedule-slot-options li { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }

.site-header {
  position: relative;
  z-index: 1;
  color: #fff9e9;
  background:
    radial-gradient(ellipse 18rem 1.3rem at 18% 32%, rgb(255 224 174 / 9%), transparent 72%),
    radial-gradient(ellipse 23rem 1.1rem at 73% 72%, rgb(54 24 10 / 12%), transparent 74%),
    repeating-linear-gradient(2deg, transparent 0 .32rem, rgb(255 238 204 / 3%) .35rem .39rem, transparent .42rem .86rem),
    linear-gradient(90deg, rgb(49 25 14 / 35%), transparent 12%, rgb(255 222 166 / 13%) 50%, transparent 88%, rgb(49 25 14 / 35%)),
    repeating-linear-gradient(1deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 6px),
    linear-gradient(110deg, var(--wood-dark), var(--wood) 46%, var(--wood-light) 66%, var(--wood-dark));
  border-bottom: .45rem solid var(--cushion);
  box-shadow: 0 .25rem .7rem rgb(0 0 0 / 32%);
}

.club-logo { display: block; max-width: min(14rem, 60vw); max-height: 9rem; object-fit: contain; margin: 0 0 1rem; }
.content-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.content-card { min-width: 0; overflow: hidden; padding: 1rem 1.15rem; border: 1px solid var(--line); border-top: .35rem solid var(--wood-light); border-radius: .4rem; background: #fffdf7; }
.content-card > :first-child { margin-top: 0; }
.rich-content .content-card-grid { margin: 1.25rem 0; }
.rich-content .content-card { height: 100%; }
.member-action-link { font-weight: 750; }
.home-welcome { font-size: 1.08rem; }
.content-intro { max-width: 48rem; color: var(--ink-soft); font-size: 1.05rem; }
.sponsor-eyebrow { margin: 0 0 .25rem; color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.home-main-sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 25rem);
  align-items: center;
  gap: 1rem 2.5rem;
  border-left-color: var(--cloth) !important;
  background: linear-gradient(105deg, #fffdf7 0 55%, var(--paper-muted)) !important;
}
.home-main-sponsor h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.home-main-sponsor > a { display: block; }
.home-main-sponsor img { display: block; width: 100%; max-height: 10rem; object-fit: contain; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
main > section.sponsor-grid { padding: 0; border: 0; background: transparent; box-shadow: none; }
.sponsor-card { display: grid; align-content: start; min-height: 16rem; padding: 1.2rem; border: 1px solid var(--line); border-top: .35rem solid var(--wood-light); border-radius: .45rem; background: #fffdf7; text-align: center; }
.sponsor-card-main { border-top-color: var(--cloth); background: linear-gradient(150deg, #fffdf7, var(--paper-muted)); }
.sponsor-card > a { color: var(--cloth-dark); text-decoration: none; }
.sponsor-card img { display: block; width: 100%; height: 9rem; margin: 0 auto 1rem; object-fit: contain; }
.sponsor-card h2 { margin: auto 0 0; font-size: 1.05rem; }
.content-card-cover, .content-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .3rem; background: var(--paper-muted); }
.content-card-cover { max-height: 16rem; margin: 0 0 1rem; object-fit: cover; }
.content-cover { margin: 1.25rem 0; }
.rich-content { overflow-wrap: anywhere; }
.protected-contact {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: .28rem;
  padding: .16rem .52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-muted);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  vertical-align: .08em;
}
.protected-contact-icon { flex: 0 0 auto; font-size: .9em; }
.protected-contact-label { min-width: 0; }
.protected-contact-login { flex: 0 0 auto; font-weight: 800; }
.rich-content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.rich-content figure { max-width: 100%; margin: 1.25rem auto; }
.rich-content figure.image-style-align-left { float: left; max-width: min(50%, 22rem); margin: .4rem 1rem .75rem 0; }
.rich-content figure.image-style-align-right, .rich-content figure.image-style-side { float: right; max-width: min(50%, 22rem); margin: .4rem 0 .75rem 1rem; }
.rich-content figure.image_resized { max-width: 100%; }
.rich-content figcaption { margin-top: .35rem; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-content th, .rich-content td { padding: .45rem .6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-content::after { display: block; clear: both; content: ""; }
.club-schedule-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.club-schedule-heading h2 { margin: 0; }
.print-header, .print-only { display: none; }
.print-action { padding: .45rem .8rem; border: 1px solid var(--wood); border-radius: .3rem; color: #fffaf0; background: var(--cloth-dark); font-weight: 700; cursor: pointer; }
.print-action:hover { background: var(--link-hover); }
.icon-legend { color: var(--ink-soft); font-size: .9rem; }
.team-table-scroll { max-width: 100%; overflow-x: auto; }
.data-table abbr { font-size: 1.2rem; text-decoration: none; cursor: help; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin: 1rem 0 1.5rem; }
.match-round + .match-round { margin-top: 2rem; }
.match-round h2 small { font-size: .7em; font-weight: 400; }

.site-header-inner {
  display: flex;
  align-items: center;
  gap: .8rem 1.25rem;
  width: min(100% - 2rem, 78rem);
  min-height: 4.7rem;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 4.25rem;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 12rem;
  height: auto;
  max-height: 4.25rem;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: .15rem;
}

.site-nav > .nav-primary-link,
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border-radius: .3rem;
  color: #fff9e9;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { margin-left: .4rem; content: "▾"; font-size: .72em; }
.nav-menu[open] > summary::after { transform: rotate(180deg); }
.nav-account { margin-left: auto; }

.site-nav > .nav-primary-link:hover,
.site-nav > .nav-primary-link[aria-current="page"],
.nav-menu > summary:hover,
.nav-menu[open] > summary,
.nav-menu-active > summary { background: rgb(29 56 37 / 48%); color: #fff; }

.nav-submenu {
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  z-index: 3;
  display: grid;
  gap: .15rem;
  min-width: 14rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 .65rem 1.2rem rgb(0 0 0 / 28%);
}

.nav-submenu-end { right: 0; left: auto; }

.nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .4rem .65rem;
  border-radius: .25rem;
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-submenu a:hover { color: #fff; background: var(--link); }
.nav-submenu a[aria-current="page"] { color: #fff; background: var(--cloth-dark); }

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: .35rem .8rem;
  border: 1px solid rgb(255 249 233 / 75%);
  border-radius: .28rem;
  color: #fff9e9;
  background: rgb(20 45 30 / 45%);
  cursor: pointer;
}

main {
  width: min(100% - 2.75rem, 76rem);
  min-height: 68vh;
  margin: 1.6rem auto 2.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--paper);
  border: .45rem solid var(--cushion);
  border-radius: .75rem;
  box-shadow: 0 1rem 2.4rem rgb(0 0 0 / 34%), inset 0 0 0 1px rgb(255 255 255 / 75%);
}

main > h1:first-child { padding-bottom: .7rem; border-bottom: .18rem solid var(--wood-light); }

main > section,
main > form:not(.scorecard-layout),
.provisional-result,
.scorecard-photos {
  margin: 1.4rem 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-left: .35rem solid var(--wood-light);
  border-radius: .4rem;
  background: #fffdf7;
  box-shadow: 0 .18rem .55rem rgb(64 43 20 / 9%);
}

.site-footer { padding: 0 1.375rem 2.5rem; color: #fff9e9; }
.site-footer-inner { width: min(100%, 76rem); margin: 0 auto; }
.sponsor-carousel {
  display: grid;
  grid-template-columns: minmax(11rem, .55fr) minmax(14rem, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 8rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(255 249 233 / 28%);
  border-radius: .55rem;
  background: rgb(3 38 28 / 72%);
  box-shadow: 0 .5rem 1.4rem rgb(0 0 0 / 24%);
}
.sponsor-carousel-heading h2 { margin: 0 0 .25rem; color: #fff9e9; font-size: 1.15rem; }
.sponsor-carousel-heading a { color: #fff9e9; font-size: .85rem; }
.sponsor-carousel-slide { min-width: 0; }
.sponsor-carousel-link { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); align-items: center; gap: 1rem; color: #fff9e9; font-weight: 750; text-decoration: none; }
.sponsor-carousel-slide img { display: block; width: 100%; height: 5.5rem; padding: .35rem; border-radius: .3rem; background: #fff; object-fit: contain; }

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.1rem 0 1.35rem;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid #a88b63;
  border-radius: .35rem;
  background: var(--paper-muted);
  color: var(--cloth-dark);
  font-weight: 700;
  text-decoration: none;
}

.section-links a:hover,
.section-links a[aria-current="page"] { background: #ead8b6; color: var(--cloth-dark); }
.section-links a[aria-current="page"] { border-color: var(--wood); box-shadow: inset 0 -.18rem var(--wood-light); }

.competition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.1rem 0 1.35rem;
}

.competition-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid #a88b63;
  border-radius: .35rem;
  background: var(--paper-muted);
  color: var(--cloth-dark);
  font-weight: 700;
  text-decoration: none;
}

.competition-tabs a:hover,
.competition-tabs a[aria-current="true"] { background: #ead8b6; color: var(--cloth-dark); }
.competition-tabs a[aria-current="true"] { border-color: var(--wood); box-shadow: inset 0 -.18rem var(--wood-light); }

.cup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: end;
  margin: -.1rem 0 1.35rem;
  padding: 0 0 1.25rem;
  border-bottom: .18rem solid var(--wood-light);
}

.cup-hero h1 { margin: .1rem 0 .45rem; }
.cup-intro { max-width: 46rem; margin: 0; color: var(--ink-soft); }
.cup-eyebrow { margin: 0; color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cup-seasons { display: grid; justify-items: end; gap: .25rem; font-size: .86rem; }
.cup-seasons > span { color: var(--ink-soft); font-weight: 700; }
.cup-seasons a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: none; }

.competition-tabs.cup-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  max-width: 36rem;
  margin-bottom: 1.6rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--paper-muted);
}

.competition-tabs.cup-tabs a {
  display: grid;
  gap: .05rem;
  justify-items: start;
  min-height: 3.25rem;
  padding: .45rem .8rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.competition-tabs.cup-tabs a small { font-size: .72rem; font-weight: 650; }
.competition-tabs.cup-tabs a:hover { background: rgb(255 253 247 / 72%); }
.competition-tabs.cup-tabs a[aria-current="true"] { border-color: var(--line); background: #fffdf7; box-shadow: 0 .15rem .4rem rgb(64 43 20 / 12%); }

main > section.cup-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 1.2rem;
}

.cup-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}

.cup-section-heading h2 { margin: .15rem 0 0; }
.cup-section-heading > p { max-width: 34rem; margin: .2rem 0 0; color: var(--ink-soft); }
.cup-rules { max-width: 38rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper-muted); }
.cup-rules summary { padding: .55rem .75rem; color: var(--cloth-dark); font-weight: 800; cursor: pointer; }
.cup-rules p { margin: 0; padding: 0 .75rem .75rem; color: var(--ink-soft); font-size: .9rem; }

.cup-pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cup-pool { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: #fffdf7; box-shadow: 0 .18rem .55rem rgb(64 43 20 / 9%); }
.cup-pool-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-top: .35rem solid var(--wood-light); border-bottom: 1px solid var(--line); background: var(--paper-muted); }
.cup-pool-heading h3 { margin: 0; }
.cup-pool-heading span { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.cup-pool .data-table { margin: 0; border: 0; border-radius: 0; }
.cup-standings th { padding: .55rem .65rem; font-size: .8rem; }
.cup-standings td { padding: .6rem .65rem; }
.cup-standing-position, .cup-standing-played, .cup-standing-points, .cup-standing-moyenne { white-space: nowrap; }
.cup-standing-position span { display: inline-grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; color: var(--cloth-dark); background: var(--paper-muted); font-weight: 850; }
.cup-qualification { display: block; margin-top: .15rem; color: var(--success); font-size: .74rem; font-weight: 800; }
.cup-qualifier { background: #edf7e8 !important; }
.cup-qualifier .cup-standing-position span { color: #fff; background: var(--success); }

.cup-pool-results { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.cup-pool-results h4 { margin: 0 0 .55rem; font-size: .9rem; }
.cup-results, .schedule-labels { margin: 0; padding: 0; list-style: none; }
.cup-results li + li, .schedule-labels li + li { margin-top: .4rem; }
.cup-pool-results .cup-results a, .cup-tie-results a { display: flex; align-items: start; justify-content: space-between; gap: .65rem; padding: .45rem .55rem; border-radius: .3rem; background: var(--paper-muted); text-decoration: none; }
.cup-pool-results .cup-results a:hover, .cup-tie-results a:hover { background: #ead8b6; }
.cup-fixture-match { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cup-fixture-number { color: var(--accent); font-size: .78rem; letter-spacing: .02em; }
.cup-fixture-meta { display: grid; flex: 0 0 auto; justify-items: end; gap: .05rem; color: var(--ink-soft); font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cup-fixture-meta strong { color: var(--ink); font-size: .82rem; }
.cup-empty { margin: .65rem 0; padding: .75rem 1rem; border-radius: .35rem; color: var(--ink-soft); background: var(--paper-muted); }

.cup-byes { display: grid; grid-template-columns: auto 1fr; gap: .75rem 1rem; margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #a8cbae; border-left: .35rem solid var(--success); border-radius: .4rem; background: var(--success-bg); }
.cup-byes > div { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }

.cup-bracket { margin: 1rem 0 0; }
.cup-bracket-stage { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr); gap: 1rem 1.25rem; min-width: 0; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.cup-bracket-stage:last-child { border-bottom: 1px solid var(--line); }
.cup-stage-heading { align-self: start; }
.cup-stage-heading > span { color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.cup-stage-heading h3 { margin: .2rem 0 .15rem; font-size: 1.16rem; }
.cup-stage-heading small { font-size: .78rem; }
.cup-tie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: .75rem; min-width: 0; }
.cup-tie-card { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .45rem; background: #fffdf7; box-shadow: 0 .15rem .4rem rgb(64 43 20 / 9%); }
.cup-tie-card p { margin: .3rem 0; }
.cup-tie-date { min-height: 2.5em; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.cup-matchup { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; margin: .65rem 0; }
.cup-matchup p { min-width: 0; padding: .42rem .5rem; border-radius: .3rem; background: var(--paper-muted); font-weight: 750; overflow-wrap: anywhere; }
.cup-matchup > span { margin: -.05rem 0 -.05rem .5rem; color: var(--ink-soft); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.cup-tbd { color: var(--ink-soft); font-style: italic; font-weight: 500; }
.cup-aggregate { color: var(--cloth-dark); }
.cup-winner { padding: .35rem .5rem; border-left: .25rem solid var(--success); background: var(--success-bg); }
.cup-tie-results { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.cup-tie-results a { padding: .35rem .5rem; font-size: .84rem; }

.season-schedule .schedule-shared { color: var(--cloth-dark); font-weight: 750; text-align: center; background: var(--paper-muted); }

.statistics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.statistics-cards article {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-top: .35rem solid var(--wood-light);
  border-radius: .4rem;
  background: #fffdf7;
}

.statistics-cards h2 { margin-bottom: .45rem; }

.statistics-section { scroll-margin-top: 1.2rem; }

.statistics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.statistics-summary div {
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--paper-muted);
}

.statistics-summary dt { color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.statistics-summary dd { margin: .1rem 0 0; color: var(--cloth-dark); font-size: 1.22rem; font-weight: 800; }

.statistics-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.statistics-chart { min-width: 0; margin: 1.25rem 0; }
.statistics-chart figcaption { margin-bottom: .5rem; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.echarts-chart { width: 100%; height: 22rem; border: 1px solid var(--line); border-radius: .35rem; background: #fffefb; }
.echarts-chart[data-echarts-kind="player-moyenne"] { height: 24rem; }

label { font-weight: 700; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  margin-top: .25rem;
  padding: .45rem .6rem;
  border: 1px solid #97856a;
  border-radius: .28rem;
  color: var(--ink);
  background: #fffefb;
}

input[type="file"] { padding: .3rem; }

input[type="checkbox"],
input[type="radio"] { min-width: 1.2rem; min-height: 1.2rem; }

button,
input[type="submit"],
input[type="button"] {
  min-height: 2.75rem;
  padding: .4rem .8rem;
  border: 1px solid #64351f;
  border-radius: .3rem;
  color: #fffaf0;
  background: linear-gradient(#99572d, #75401f);
  box-shadow: inset 0 1px rgb(255 255 255 / 20%);
  font-weight: 700;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover { background: linear-gradient(#7f451f, #603116); }

button:disabled,
input:disabled,
select:disabled,
textarea:disabled { cursor: not-allowed; opacity: .62; }

form > p { display: grid; gap: .25rem; max-width: 46rem; }

form > p label { display: grid; gap: .25rem; }

form[method="get"] {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  max-width: none;
  margin: 1.25rem 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--paper-muted);
}

form[method="get"] label { display: grid; gap: .2rem; }

form[method="get"] select { width: auto; min-width: 12rem; margin: 0; }

table {
  width: 100%;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: .4rem;
  background: #fffdf7;
  overflow: hidden;
}

th, td {
  padding: .72rem .75rem;
  border-bottom: 1px solid #ddcfb7;
  text-align: left;
  vertical-align: top;
}

th {
  color: #fffaf0;
  background: linear-gradient(100deg, #1c4e3c, #27684e);
  font-weight: 750;
}

tbody tr:nth-child(even) { background: #fbf4e6; }

tbody tr:hover { background: #f3e4c9; }

tbody tr:last-child td { border-bottom: 0; }

td form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }

.reserve { background: #e7e1d6 !important; color: #494237; }

.reserve td:first-child { border-left: .28rem solid #817867; }

.provisional-score-hint,
.submission-status-note,
.turn-warning,
.game-validation,
.provisional-result {
  border-radius: .35rem;
}

.provisional-score-hint {
  padding: .85rem 1rem;
  border-left: .35rem solid var(--success);
  background: var(--success-bg);
  color: #16452d;
}

.submission-status-note,
.turn-warning {
  padding: .85rem 1rem;
  border-left: .35rem solid var(--warning);
  background: var(--warning-bg);
  color: #5e3b05;
}

.schedule-cutoff {
  margin: 1.25rem 0;
  padding: .85rem 1rem;
  border-left: .35rem solid var(--warning);
  border-radius: .35rem;
  background: var(--warning-bg);
  color: #5e3b05;
}

.schedule-cutoff p { margin: .25rem 0 0; }

.submission-pending { color: var(--danger); }

.action-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .4rem .8rem;
  border: 1px solid #64351f;
  border-radius: .3rem;
  color: #fffaf0;
  background: linear-gradient(#99572d, #75401f);
  box-shadow: inset 0 1px rgb(255 255 255 / 20%);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.action-link:hover { color: #fffaf0; background: linear-gradient(#7f451f, #603116); }

.submission-callout {
  border-left-color: var(--danger);
  background: #fff5e8;
}

.submission-callout h2 { margin-top: 0; }

.submission-candidate-list { display: grid; gap: .75rem; }

.submission-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fffefb;
}

.submission-candidate div { display: grid; gap: .2rem; }
.submission-candidate span { color: var(--ink-soft); }

.provisional-result { background: #f4f9ed; border-left-color: var(--success); }

.provisional-result h2 { margin-top: 0; }

.provisional-score-row {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  max-width: 46rem;
}

.provisional-score-row label { flex: 1 1 0; display: grid; gap: .3rem; }

.provisional-score-row > span { padding-bottom: .42rem; font-size: 1.5rem; font-weight: 700; }

.scorecard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  gap: 1.5rem;
  align-items: start;
}

.scorecard-games > button { margin-top: .5rem; }

.scorecard-photos {
  position: sticky;
  top: 1rem;
  margin-top: 0;
  border-left-color: var(--wood-light);
}

.scorecard-photos button,
.photo-preview { margin: .2rem 0; }

.score-game {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fffdf7;
  box-shadow: 0 .18rem .55rem rgb(64 43 20 / 9%);
}

.score-game legend {
  padding: 0 .3rem;
  color: var(--cloth-dark);
  font-weight: 800;
}

.score-game h2 { margin: 0; font-size: 1.15rem; }

.minimum-target { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }

.score-side { min-width: 0; }

.score-side > label { display: grid; gap: .25rem; }

.score-side p {
  display: grid;
  grid-template-columns: minmax(8.5rem, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: .65rem;
  margin: .7rem 0;
}

.score-side p label { font-weight: 650; }

.score-side select,
.score-side input { min-width: 0; margin: 0; }

.game-points { margin-left: .5rem; color: var(--link); }

.turn-warning,
.game-validation { grid-column: 1 / -1; margin: 0; }

.game-validation { padding: .75rem 1rem .75rem 2rem; border-left: .35rem solid var(--danger); background: var(--danger-bg); }

.game-validation:empty { display: none; }

.game-validation .error { color: var(--danger); font-weight: 700; }

.game-validation .warning { color: var(--warning); font-weight: 700; }

.photo-window { min-height: 100vh; background: #101815; color: #f7f0df; }

.photo-window-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: .75rem max(1rem, 5vw);
  color: #fff9e9;
  background: linear-gradient(100deg, var(--wood-dark), var(--wood), var(--wood-dark));
  border-bottom: .3rem solid var(--cushion);
  z-index: 1;
}

.photo-window-toolbar a { color: #fff9e9; }

.photo-window-stage {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 4rem);
  margin: 0;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: auto;
}

.photo-window-image { display: block; max-width: min(100%, 90rem); max-height: none; transform-origin: center; transition: transform .15s ease; }

.photo-rotation-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }

.photo-rotation-list article { padding: .8rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper-muted); }

.photo-rotation-list img { display: block; width: 100%; margin-bottom: .65rem; background: #fff; }

.upload-progress { margin: 1rem 0; }

.upload-progress progress { width: min(100%, 24rem); height: 1.2rem; vertical-align: middle; }

@media (max-width: 62rem) {
  .site-header-inner { align-items: flex-start; flex-wrap: wrap; padding: .65rem 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-nav { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .site-nav > .nav-primary-link, .nav-menu > summary { justify-content: center; width: 100%; border: 1px solid rgb(255 249 233 / 25%); background: rgb(21 51 33 / 28%); }
  .nav-menu { position: static; min-width: 0; }
  .nav-account { margin-left: 0; }
  .nav-submenu, .nav-submenu-end { position: static; min-width: 0; max-width: none; margin-top: .35rem; box-shadow: none; }
  .nav-submenu a { justify-content: center; white-space: normal; }
  body.js-enabled .site-nav { display: none; }
  body.js-enabled .site-nav.is-open { display: grid; }
  .scorecard-layout { grid-template-columns: 1fr; }
  .scorecard-photos { position: static; }
}

@media (max-width: 52rem) {
  main { width: min(100% - 1.25rem, 76rem); margin-top: .75rem; padding: 1rem; border-width: .3rem; border-radius: .45rem; }
  .statistics-chart-grid { grid-template-columns: minmax(0, 1fr); }
  .submission-candidate { align-items: stretch; flex-direction: column; }
  .home-main-sponsor { grid-template-columns: 1fr; }
  .home-main-sponsor img { max-width: 24rem; margin: 0 auto; }
  .sponsor-carousel { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1rem; }
  .sponsor-carousel-heading { grid-column: 1 / -1; }
  .cup-hero { grid-template-columns: 1fr; align-items: start; }
  .cup-seasons { justify-items: start; }
  .cup-section-heading { display: grid; }
  .cup-rules { max-width: none; }
  .cup-bracket-stage { grid-template-columns: 1fr; gap: .65rem; }
  .cup-stage-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .05rem .75rem; }
  .cup-stage-heading > span { grid-column: 1 / -1; }
  .cup-stage-heading h3 { margin-bottom: 0; }
  .cup-stage-heading small { align-self: center; }
  .data-table { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tbody { display: grid; gap: .85rem; }
  .data-table tbody tr { padding: .35rem .85rem; border: 1px solid var(--line); border-left: .35rem solid var(--wood-light); border-radius: .4rem; background: #fffdf7; box-shadow: 0 .18rem .55rem rgb(64 43 20 / 9%); }
  .data-table tbody tr:hover { background: #fffdf7; }
  .data-table td { display: grid; grid-template-columns: minmax(7.4rem, .86fr) minmax(0, 1.14fr); gap: .75rem; padding: .62rem 0; border-bottom: 1px solid #ddcfb7; }
  .data-table td::before { content: attr(data-label); color: var(--ink-soft); font-weight: 750; }
  .data-table td.table-empty { display: block; padding: .7rem 0; border-bottom: 0; }
  .data-table td.table-empty::before { content: none; }
  .data-table tbody tr:has(.table-empty) { border-left-color: var(--cushion); }
  .data-table tbody tr:last-child td:last-child { border-bottom: 0; }
  .data-table td form { display: block; }
  .scorecard-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .scorecard-table {
    display: table;
    width: max-content;
    min-width: 62rem;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .35rem;
    background: #fffdf7;
    overflow: hidden;
  }
  .scorecard-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
  }
  .scorecard-table tbody { display: table-row-group; }
  .scorecard-table tr { display: table-row; width: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .scorecard-table th,
  .scorecard-table td { display: table-cell; width: auto; min-width: 5rem; padding: .5rem .55rem; border-bottom: 1px solid #ddcfb7; vertical-align: top; white-space: nowrap; }
  .scorecard-table th { background: #f3e4c9; }
  .scorecard-table td::before { content: none; }
  .scorecard-table tbody tr:hover { background: #f3e4c9; }
  .team-table-scroll { overscroll-behavior-inline: contain; }
  .team-compact-table {
    display: table;
    width: 100%;
    margin: .75rem 0 0;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: .35rem;
    background: #fffdf7;
    font-size: .78rem;
    line-height: 1.35;
    overflow: hidden;
  }
  .team-roster-table { min-width: 43rem; }
  .team-matches-table { min-width: 38rem; }
  .team-compact-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
  }
  .team-compact-table tbody { display: table-row-group; }
  .team-compact-table tr { display: table-row; width: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .team-compact-table th,
  .team-compact-table td { display: table-cell; width: auto; padding: .42rem .45rem; border-bottom: 1px solid #ddcfb7; vertical-align: top; }
  .team-compact-table td::before { content: none; }
  .team-compact-table td.table-empty { display: table-cell; padding: .7rem .45rem; }
  .team-compact-table tbody tr:hover { background: #f3e4c9; }
  .team-compact-table abbr { font-size: 1rem; }
  .team-compact-table small { font-size: .72rem; }
  .team-roster-table th:nth-child(2),
  .team-roster-table td:nth-child(2) { min-width: 10rem; }
  .team-roster-table th:not(:nth-child(2)),
  .team-roster-table td:not(:nth-child(2)),
  .team-matches-table th:not(:nth-child(3)),
  .team-matches-table td:not(:nth-child(3)) { white-space: nowrap; }
  .team-matches-table th:nth-child(3),
  .team-matches-table td:nth-child(3) { min-width: 15rem; }
  .season-schedule .schedule-shared { display: block; padding: .7rem 0; text-align: left; }
  .cup-pool .cup-standings { margin: 0; padding: .75rem; }
  .cup-standings tbody { gap: .55rem; }
  .cup-standings tbody tr {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    grid-template-areas:
      "position team points"
      "position played moyenne";
    gap: .2rem .55rem;
    padding: .65rem .7rem;
    border-left-width: 1px;
    box-shadow: none;
  }
  .cup-standings td { display: block; width: auto; padding: 0; border: 0; }
  .cup-standings td::before { content: none; }
  .cup-standing-position { grid-area: position; align-self: center; }
  .cup-standing-team { grid-area: team; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
  .cup-standing-played { grid-area: played; color: var(--ink-soft); font-size: .75rem; }
  .cup-standing-played::before { content: "GW "; font-weight: 750; }
  .cup-standing-points { grid-area: points; color: var(--cloth-dark); font-size: 1.05rem; text-align: right; }
  .cup-standing-points::after { content: " pt"; color: var(--ink-soft); font-size: .68rem; font-weight: 650; }
  .cup-standing-moyenne { grid-area: moyenne; color: var(--ink-soft); font-size: .75rem; text-align: right; }
  .cup-standing-moyenne::before { content: "Moy. "; font-weight: 750; }
}

@media (max-width: 38rem) {
  .site-nav { grid-template-columns: 1fr; }
  .section-links, .competition-tabs { display: grid; grid-template-columns: 1fr; }
  .section-links a, .competition-tabs a { justify-content: center; }
  .competition-tabs.cup-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  .competition-tabs.cup-tabs a { justify-items: center; padding-inline: .4rem; text-align: center; }
  .competition-tabs.cup-tabs a small { font-size: .66rem; }
  .cup-pools { grid-template-columns: 1fr; }
  .cup-byes { grid-template-columns: 1fr; gap: .25rem; }
  .cup-byes > div { display: grid; }
  .cup-tie-grid { grid-template-columns: 1fr; }
  form[method="get"] { display: grid; align-items: stretch; }
  form[method="get"] select { width: 100%; }
  .score-game { grid-template-columns: 1fr; padding: .85rem; }
  .score-side p { grid-template-columns: 1fr; gap: .2rem; }
  .provisional-score-row { gap: .35rem; }
  .provisional-score-row > span { padding-bottom: .45rem; }
  .rich-content figure.image-style-align-left, .rich-content figure.image-style-align-right, .rich-content figure.image-style-side { float: none; max-width: 100%; margin: 1rem auto; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-carousel { grid-template-columns: 1fr; }
  .sponsor-carousel-link { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); }
}

@page { size: A4 portrait; margin: 10mm; }

@media print {
  body { color: #000; background: #fff; font-family: Arial, sans-serif; font-size: 8pt; line-height: 1.12; }
  .site-header, .site-footer, .message-list, .club-summary, .club-teams, .print-action { display: none !important; }
  main { width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  main > section.club-schedule { display: block; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .club-schedule-heading { display: none; }
  .print-header { display: flex; align-items: center; gap: 5mm; margin: 0 0 4mm; }
  .print-header img { display: block; width: 50mm; height: auto; }
  .print-header h1 { margin: 0; padding: 0; border: 0; color: #000; font-size: 14pt; }
  .print-header p { margin: 1mm 0 0; font-size: 10pt; }
  .club-schedule .data-table { display: table; width: 100%; margin: 0; border: 1px solid #555; border-collapse: collapse; border-spacing: 0; border-radius: 0; background: #fff; font-size: 7.5pt; overflow: visible; }
  .club-schedule .data-table thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; padding: 0; clip: auto; overflow: visible; white-space: normal; }
  .club-schedule .data-table tbody { display: table-row-group; }
  .club-schedule .data-table tr { display: table-row; width: auto; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .club-schedule .data-table th, .club-schedule .data-table td { display: table-cell; width: auto; padding: 1.2mm 1.5mm; border: 1px solid #777; color: #000; background: #fff; text-align: left; vertical-align: top; }
  .club-schedule .data-table th { font-weight: 700; background: #eee; }
  .club-schedule .data-table td::before { content: none; }
  .club-schedule .data-table tbody tr:nth-child(even), .club-schedule .data-table tbody tr:hover { background: #fff; }
  .club-schedule .print-only { display: table-cell; }
  .club-schedule .cup-marker { display: none; }
  .club-schedule a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
