/* Platform identity on the public website. Club-specific branding is supplied
   separately by the portal and by the individual club's entry form. */
html:root:has(.marketing-site, .legal-page, .faq-standalone, .trial-page, .password-link-page, .login-layout, .notfound-page):not(:has(.app-shell)) {
  --web-forest: #011f15;
  --web-leaf: #6bba5b;
  --web-action: #216043;
  --web-action-hover: #174932;
  --web-action-text: #fff;
  --web-accent: #236747;
  --web-skyline: #b4e6a9;
  --web-paper: #f4f7f3;
  --web-panel: #fff;
  --web-wash: #e7f2e7;
  --web-ink: #122d22;
  --web-muted: #4b6155;
  --web-line: #d1ded4;
  --web-focus: #246c48;
  --brand-orange: var(--web-action);
  --brand-orange-ink: var(--web-accent);
  --brand-night: var(--web-forest);
  --brand-paper: var(--web-paper);
  --brand-white: var(--web-panel);
  --brand-ink: var(--web-ink);
  --brand-muted: var(--web-muted);
  --brand-rule: var(--web-line);
  --brand-green: var(--web-accent);
  --bg: var(--web-paper);
  --surface: var(--web-panel);
  --ink: var(--web-ink);
  --muted: var(--web-muted);
  --line: var(--web-line);
  --subtle: var(--web-wash);
  --orange: var(--web-action);
  --orange-soft: var(--web-wash);
  --brand-contrast: var(--web-action-text);
}
html:root[data-website-theme=dark]:has(.marketing-site, .legal-page, .faq-standalone, .trial-page, .password-link-page, .login-layout, .notfound-page):not(:has(.app-shell)) {
  --web-action: #a3db98;
  --web-action-hover: #b7e7ad;
  --web-action-text: #011f15;
  --web-accent: #a3db98;
  --web-paper: #0c1913;
  --web-panel: #15271d;
  --web-wash: #213d2c;
  --web-ink: #eff6ee;
  --web-muted: #b6c9b9;
  --web-line: #40584a;
  --web-focus: #b7e7ad;
}
html:root:has(.marketing-site) .marketing-site {
  --brand: var(--web-action);
  --dark: var(--web-ink);
  --soft: var(--web-paper);
  --pilot-orange: var(--web-action);
  --pilot-ink: var(--web-ink);
  --site-bg: var(--web-paper);
  --site-panel: var(--web-panel);
  --site-raised: var(--web-wash);
  --site-ink: var(--web-ink);
  --site-muted: var(--web-muted);
  --site-line: var(--web-line);
  --site-accent: var(--web-accent);
  background-color: var(--web-paper);
  color: var(--web-ink);
}
html:root .marketing-site :is(.marketing-header, .marketing-pricing, .marketing-price-grid > article, .marketing-news-grid article, .pilot-form-card, .contact-form) {
  background-color: var(--web-panel);
  border-color: var(--web-line);
}
html:root .marketing-site :is(.brand-app-band, .brand-home-footer, .brand-dark-band, .brand-routes-band, .brand-founder, .founder-positioning, .marketing-final, .pilot-visual, .referee-fee) {
  --public-wordmark: url('/brand/website-v2/logo-light.webp');
  background-color: var(--web-forest);
  color: #fff;
}
html:root .marketing-site .brand-home-footer .marketing-footer { background: transparent; }
html:root .marketing-site :is(.brand-dark-band, .brand-routes-band, .brand-founder, .brand-app-band, .brand-home-footer, .founder-positioning, .marketing-final, .pilot-visual, .referee-fee) :is(.marketing-eyebrow, .marketing-textlink, h2 em, .founder-purpose, .marketing-brand > span > span) {
  color: var(--web-skyline);
}
html:root .marketing-site :is(.brand-dark-band, .brand-routes-band, .brand-home-footer) a:hover,
html:root .marketing-site .brand-dark-band :is(h2, h3, strong, li) { color: #fff; }
html:root .marketing-site .brand-dark-band svg { color: var(--web-skyline); }
html:root .marketing-site .marketing-context-link { color: var(--web-skyline) !important; }
html:root .marketing-site :is(.marketing-brand > span > span, .marketing-hero h1 em, .referee-hero h1 em, .pilot-hero h1 em, .referee-benefits svg, .referee-process li > span, .pilot-benefits svg, .pilot-steps article > span, .pilot-apply aside li svg, .pilot-consent a, .pilot-apply aside a, .marketing-saving, .marketing-price-grid li svg, .marketing-news-grid summary, .pe-feature-grid article > svg, .pe-explanation > svg, .pe-heading > span) {
  color: var(--web-accent);
}
html:root .marketing-site .marketing-header nav > a:hover { color: var(--web-accent); }
html:root .marketing-site .marketing-price-grid > article.pro { border-color: var(--web-action); }
html:root .marketing-site :is(.marketing-button.primary, .marketing-header .marketing-nav-demo),
html:root .trial-page .trial-demo-highlight,
html:root .marketing-site .balanced-pricing .pricing-corner-ribbon > span {
  background: var(--web-action);
  border-color: var(--web-action);
  color: var(--web-action-text);
}
html:root .marketing-site :is(.marketing-button.primary:hover, .marketing-header .marketing-nav-demo:hover),
html:root .trial-page .trial-demo-highlight:hover {
  background: var(--web-action-hover);
  border-color: var(--web-action-hover);
  color: var(--web-action-text);
}
html:root .marketing-site :is(.marketing-button.secondary, .marketing-login, .marketing-period, .pe-view-switch button) {
  background-color: var(--web-panel);
  border-color: var(--web-line);
  color: var(--web-ink);
}
html:root .marketing-site :is(.marketing-button.secondary:hover, .marketing-login:hover) {
  background-color: var(--web-wash);
  border-color: var(--web-accent);
}
html:root .marketing-site :is(.marketing-period .selected, .pe-view-switch button[aria-pressed=true], .marketing-button.demo) {
  background-color: var(--web-forest);
  border-color: var(--web-leaf);
  color: #fff;
}
html:root .marketing-site .marketing-button.demo:hover { background-color: #174932; color: #fff; }
html:root .marketing-site :is(.marketing-plan-top > span:not(.pricing-corner-ribbon), .marketing-choice-label, .marketing-news-meta span, .pe-window > small, .pe-sidebar > span.active, .pe-badge.orange, .founder-monogram) {
  background-color: var(--web-wash);
  color: var(--web-accent);
}
html:root .marketing-site :is(.marketing-pricing-content .marketing-saving, .marketing-price-grid .plan-saving) { color: var(--web-accent); }
html:root .marketing-site :is(.pe-window i:first-child, .pilot-availability > span) { background: var(--web-leaf); }
html:root .marketing-site .portal-example { color: var(--web-ink); background-color: var(--web-paper); border-color: var(--web-line); }
html:root .marketing-site .portal-example :is(.pe-window, .pe-sidebar, .pe-stats > span, .pe-match, .pe-request, .pe-public-match, .pe-personal, figcaption) {
  background-color: var(--web-panel);
  border-color: var(--web-line);
}
html:root .marketing-site .portal-example :is(.pe-stats b, .pe-filter) { color: var(--web-ink); }
html:root .marketing-site .portal-example :is(.pe-stats > span, .pe-match small, .pe-request small, .pe-public-match small, .pe-footnote, .pe-toolbar, .pe-sidebar > small, figcaption) { color: var(--web-muted); }
html:root .marketing-site .pilot-consent input { accent-color: var(--web-action); }
html:root :is(.marketing-site, .trial-page, .faq-standalone, .legal-page) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--web-focus);
  outline-offset: 3px;
}
html:root .marketing-site :is(.brand-dark-band, .brand-routes-band, .brand-founder, .brand-app-band, .brand-home-footer) :focus-visible { outline-color: var(--web-skyline); }
html:root:has(.marketing-site, .legal-page, .faq-standalone, .trial-page):not(:has(.app-shell)) .back-to-top {
  color: var(--web-action-text);
  background: var(--web-action);
  border-color: var(--web-line);
}
html:root:has(.marketing-site, .legal-page, .faq-standalone, .trial-page):not(:has(.app-shell)) .back-to-top:hover { background: var(--web-action-hover); }
html:root .marketing-site .pe-action { background-color: var(--web-action); color: var(--web-action-text); }
html:root[data-website-theme=dark] .marketing-site .marketing-header .marketing-nav-demo:hover { color: var(--web-action-text); }
html:root[data-website-theme=dark] .marketing-site .pe-view-switch button[aria-pressed=true] { background-color: var(--web-forest); color: #fff; }
html:root .trial-page :is(.pay-demo-eyebrow, .pay-demo-brand span, .pay-demo-text, .pay-demo-notice strong) { color: var(--web-accent); }
html:root .trial-page .pay-demo-notice { background: var(--web-wash); border-color: var(--web-line); }
html:root .trial-page .pay-demo-primary { background: var(--web-action) !important; color: var(--web-action-text) !important; }
html:root .trial-page .pay-demo-primary:hover { background: var(--web-action-hover) !important; }
html:root .notfound-page .notfound-actions .notfound-primary { background-color: var(--web-action); color: var(--web-action-text); border-color: var(--web-action); }
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) :is(.cookie-settings-trigger, .cookie-panel) {
  background-color: var(--web-forest);
  border-color: var(--web-leaf);
}
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) .cookie-settings-trigger.on-dark {
  background-color: #fff;
  color: var(--web-forest);
  border-color: #fff;
}
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) .cookie-panel {
  --brand-orange: var(--web-leaf);
  --brand-orange-ink: var(--web-skyline);
}
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) .cookie-panel .cookie-heading svg { color: var(--web-skyline); }
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) .cookie-actions button:not(:last-child) {
  background: var(--web-skyline);
  border-color: var(--web-skyline);
  color: var(--web-forest);
}
html:root:has(.marketing-site, .trial-page, .legal-page, .faq-standalone, .login-layout, .password-link-page, .notfound-page):not(:has(.app-shell)) .cookie-actions button:not(:last-child):hover { background: #dbf1d7; }

/* Navigation keeps the same contrast when the page or mobile menu changes theme. */
html:root:has(.marketing-site .marketing-header) .marketing-site .marketing-header,
html:root:has(.marketing-site .marketing-header) .marketing-site .marketing-header nav,
html:root:has(.trial-page .pay-demo-header) .trial-page .pay-demo-header {
  --public-wordmark: url('/brand/website-v2/logo-light.webp');
  background: var(--web-forest);
  border-color: #355846;
  color: #fff;
}
html:root .marketing-site .marketing-header :is(a, .marketing-menu, .website-theme-toggle),
html:root .trial-page .pay-demo-header a,
html:root .trial-page .pay-demo-header .pay-demo-brand span {
  color: #fff;
}
html:root .marketing-site .marketing-header :is(.marketing-menu, .website-theme-toggle, .marketing-login) {
  background: transparent;
  border-color: #68947c;
}
html:root:has(.marketing-site) .marketing-site .marketing-header :is(nav > a:hover, .marketing-menu:hover, .website-theme-toggle:hover),
html:root .trial-page .pay-demo-header a:hover {
  color: var(--web-skyline);
}
html:root .marketing-site .marketing-header :is(.marketing-menu:hover, .website-theme-toggle:hover, .marketing-login:hover) { background: #163d2b; }
html:root:has(.marketing-site) .marketing-site .marketing-header .marketing-nav-demo {
  color: var(--web-forest);
  background: var(--web-skyline);
  border-color: var(--web-skyline);
}
html:root:has(.marketing-site) .marketing-site .marketing-header nav > .marketing-nav-demo:hover {
  color: var(--web-forest);
  background: #d5efce;
  border-color: #d5efce;
}
html:root .marketing-site .marketing-header :focus-visible, html:root .trial-page .pay-demo-header :focus-visible { outline-color: var(--web-skyline); }
/* The public match directory uses the website identity around each club's crest. */
html:root .public-matches-page .mp-shell {
  --mp-border: var(--web-line);
  --panel: var(--web-panel);
}
html:root .public-matches-page .mp-hero {
  background: var(--web-forest);
  color: white;
}
html:root .public-matches-page .mp-hero :is(.eyebrow, .mp-hero-price h2) { color: var(--web-skyline); }
html:root .public-matches-page .mp-hero-price { border-top-color: var(--web-leaf); }
html:root .public-matches-page .mp-hero-price::after { border-color: #6bba5b25; }
html:root .public-matches-page :is(.mp-tabs button[aria-current], .mp-filter-count, .mp-view-button) {
  background: var(--web-action);
  border-color: var(--web-action);
  color: var(--web-action-text);
}
html:root .public-matches-page .mp-view-button:hover {
  background: var(--web-action-hover);
  border-color: var(--web-action-hover);
}
html:root .public-matches-page :is(.mp-detail, .mp-live-tabs button[aria-pressed=true]) { border-color: var(--web-accent); }
html:root .public-matches-page :is(input[type=range], input[type=checkbox]) { accent-color: var(--web-accent); }
html:root .public-matches-page .mp-distance input:focus-visible { outline-color: var(--web-focus); }
/* Defer to the explicit club palette wherever login has tenant settings. */
html:root:not([style*="--club-secondary"]):not(:has([style*="--club-secondary"])) .login-layout .login-story {
  background: var(--web-forest);
  color: #fff;
}
html:root:not([style*="--club-secondary"]):not(:has([style*="--club-secondary"])) .login-layout .login-story :is(.eyebrow, h1 > span, li svg) {
  color: var(--web-skyline);
}
/* The exported wordmark has its original proportions in every public header. */
.marketing-header, .pay-demo-header, .brand-home-footer {
  --public-wordmark: url("/brand/website-v2/logo-light.webp");
}
html[data-website-theme="dark"] {
  --public-wordmark: url("/brand/website-v2/logo-light.webp");
}
.marketing-header .marketing-brand > img.website-wordmark,
.marketing-footer .marketing-brand > img.website-wordmark,
.pay-demo-header .pay-demo-brand > img.website-wordmark,
.notfound-brand > img.website-wordmark {
  display: block;
  width: clamp(9.5rem, 17vw, 12.25rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1381 / 313;
  object-fit: contain;
  flex: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
img.website-wordmark:is([src="/brand/website-v2/logo.webp"], [src="/brand/website-v2/logo-light.webp"]) {
  content: var(--public-wordmark, normal);
}
.marketing-header img.website-wordmark[src="/favicon.svg"] {
  content: url("/brand/website-v2/logo-light.webp");
}
.marketing-footer > a:first-child[href="/"]:not(:has(img)) {
  display: inline-block;
  width: 10.75rem;
  max-width: 100%;
  aspect-ratio: 1381 / 313;
  background: var(--public-wordmark, url("/brand/website-v2/logo.webp")) left center / contain no-repeat;
  font-size: 0;
}
:is(.login-brand, .password-club-brand) > .club-logo-fallback[aria-label="Club"] {
  background: transparent url("/brand/website-v2/icon.png") center / contain no-repeat;
  border: 0;
}
:is(.login-brand, .password-club-brand) > .club-logo-fallback[aria-label="Club"] > svg { visibility: hidden; }

/* The legal links form one navigable group beneath the marketing footer. */
html:root footer.legal-footer[aria-label="Juridische informatie"] {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:4px 24px; margin:0; padding:12px max(20px,env(safe-area-inset-left));
  background:#0c2920; color:#f6faf6; border:0; border-top:1px solid #385247;
}
html:root footer.legal-footer[aria-label] > a {
  display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0!important;
  color:inherit; font:inherit; font-size:.9rem; line-height:1.35; text-decoration:none;
}
html:root footer.legal-footer[aria-label] > a:hover {text-decoration:underline}
html:root footer.legal-footer[aria-label] > a:focus-visible {outline:2px solid #bfe5ad;outline-offset:2px}
html:root footer.legal-footer[aria-label] img {flex:none;object-fit:contain}
@media(max-width:600px) {
  html:root footer.legal-footer[aria-label="Juridische informatie"] {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9em),1fr));
    justify-items:start; gap:0 16px; padding-block:12px max(12px,env(safe-area-inset-bottom));
  }
}
