/* The landing page's own CSS: what sits inside its drawn screens, and the few
   rules the kit's recipes name as page CSS. Everything else is system.css. */

/* ---- hero: the head row of the product hero, for a stage holding the app */
@media (min-width: 1024px) {
  .hero--product:has(.hero__stage--app) .hero__head { grid-template-rows: auto auto auto; row-gap: var(--s-5); }
  .hero--product:has(.hero__stage--app) .hero__head > :first-child { display: contents; }
  .hero--product:has(.hero__stage--app) .hero__head .hero__kicker { grid-column: 1 / span 7; grid-row: 1; margin: 0; }
  .hero--product:has(.hero__stage--app) .hero__head h1 { grid-column: 1 / span 7; grid-row: 2 / span 2; align-self: end; margin: 0; }
  .hero--product:has(.hero__stage--app) .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 2; align-self: end; margin: 0; max-width: none; }
  .hero--product:has(.hero__stage--app) .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 3; justify-content: flex-start; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--product:has(.hero__stage--app) .hero__head h1 { grid-column: 1 / span 6; }
  .hero--product:has(.hero__stage--app) .hero__head .hero__lead,
  .hero--product:has(.hero__stage--app) .hero__head > .btn-row { grid-column: 7 / -1; }
}
.hero__stage--app {
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, #a3e635 16%, transparent), transparent 55%),
    linear-gradient(135deg, #1e293b, #0f172a 70%);
  border: 1px solid rgb(255 255 255 / .08);
}
.hero__stage--app::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 72px; z-index: 2; pointer-events: none;
  background: linear-gradient(transparent, #0f172a);
}
.hero-app {
  --u-bg: #ffffff; --u-ink: #0f172a; --u-muted: #64748b;
  position: absolute; z-index: 1; left: 50%; top: 40px; translate: -50% 0;
  width: min(1080px, calc(100% - 48px));
  background: #f1f5f9; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .1);
  font: 400 13px/1.4 var(--font-text); color: #0f172a;
}
@media (max-width: 639px) {
  .hero--product .hero__stage--app { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; }
  .hero-app { top: 16px; width: calc(100% - 32px); }
}

/* ---- the drawn staff panel (hero): x-staff-layout, x-card, .data-table, x-place */
.pc-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #e2e8f0; border-bottom: 1px solid #cbd5e1; }
.pc-url { margin-inline: auto; padding: 2px 14px; border-radius: 6px; background: #fff; color: #64748b; font-size: 12px; }
.pc-body { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.pc-side { display: grid; align-content: start; gap: 4px; padding: 18px 10px; background: #0f172a; color: #fff; }
.pc-side__brand { padding: 0 10px 16px; display: grid; gap: 4px; }
.pc-side__brand b { font: 800 19px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.pc-side__brand span { font-size: 9px; text-transform: uppercase; letter-spacing: .25em; color: rgb(255 255 255 / .5); }
.pc-side__link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: rgb(255 255 255 / .75); font-weight: 500; }
.pc-side__link.is-on { background: #a3e635; color: #0f172a; }
.pc-ico { width: 16px; height: 16px; flex: none; }
.pc-page { min-width: 0; }
.pc-head { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 22px 14px; }
.pc-title { font: 700 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.pc-main { padding: 16px 22px 28px; display: grid; gap: 14px; }
.pc-main--dash { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
.pc-left { display: grid; gap: 14px; min-width: 0; }
.pc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-tile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); }
.pc-tile__label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.pc-tile b { font: 800 28px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #0f172a; }
.pc-tile__note { font-size: 11px; color: #64748b; }
.pc-tile--dark { background: linear-gradient(135deg, #0f172a, #1e293b); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.pc-tile--dark .pc-tile__label { color: rgb(255 255 255 / .6); }
.pc-tile--dark b { color: #a3e635; }
.pc-tile--dark .pc-tile__note { color: rgb(255 255 255 / .7); }
.pc-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); }
.pc-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; font: 700 15px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.pc-card__link { font: 600 11px/1 var(--font-text); text-transform: none; letter-spacing: 0; text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 2px; }
.pc-bars { display: grid; gap: 12px; padding: 14px 16px; }
.pc-bars li { display: grid; gap: 5px; }
.pc-bars__line { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.pc-bars__line b { font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }
.pc-bars__track { height: 8px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.pc-bars__track i { display: block; height: 100%; border-radius: inherit; background: #0f172a; }
.pc-rank li { display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-top: 1px solid #f1f5f9; }
.pc-rank li:first-child { border-top: 0; }
.pc-rank__pos { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: #f1f5f9; font: 800 15px/1 var(--font-display); }
.pc-rank__pos.is-top { background: #a3e635; }
.pc-rank__who { flex: 1; min-width: 0; display: grid; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-rank__who small { font-size: 11px; font-weight: 400; color: #64748b; }
.pc-rank__pts { font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.pc-pts { color: #0f172a; font-weight: 700; }
@media (max-width: 1023px) {
  .pc-body { grid-template-columns: minmax(0, 1fr); }
  .pc-side { display: none; }
}
@media (max-width: 639px) {
  .pc-main--dash { grid-template-columns: minmax(0, 1fr); }
  .pc-left > .pc-card, .pc-tiles > :nth-child(n+3) { display: none; }
  .pc-head, .pc-main { padding-inline: 12px; }
  .pc-title { font-size: 22px; }
}

/* ---- app-frame (sections-library.md, app-frame: the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
#matches .ui-win__age { display: none; }

/* ---- the open tie: the result entered set by set */
.pc-tie { padding: 20px 24px; display: grid; gap: 14px; align-content: start; font: 400 13px/1.4 var(--font-text); color: var(--u-ink); background: var(--u-bg); }
.pc-tie .ui-title { font-size: 15px; font-weight: 500; }
.pc-tie__meta { color: var(--u-muted); font-size: 12px; margin-top: 2px; }
.pc-tie__tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--u-line); }
.pc-tie__tabs > span { padding-bottom: 8px; color: var(--u-muted); }
.pc-tie__tabs > .is-on { color: var(--u-ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--u-ink); }
.pc-tie__label { color: var(--u-muted); font-size: 12px; }
.pc-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-side-box { border: 1px solid var(--u-line); border-radius: var(--u-r2); padding: 10px 12px; display: grid; gap: 8px; }
.pc-side-box__team { font-weight: 500; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chips > span { padding: 3px 8px; border-radius: 999px; background: var(--u-fill-2); }
.pc-sets { display: grid; gap: 6px; }
.pc-set { display: grid; grid-template-columns: minmax(0, 1fr) 48px 48px; gap: 8px; align-items: center; }
.pc-set__label { color: var(--u-text-2); }
.pc-score { height: 32px; display: grid; place-items: center; border: 1px solid var(--u-line-2); border-radius: 6px; font-variant-numeric: tabular-nums; color: var(--u-text-2); }
.pc-score.is-won { color: var(--u-ink); font-weight: 500; border-color: var(--u-ink); }
.pc-tie__late { display: flex; align-items: center; gap: 10px; color: var(--u-text-2); }
.pc-tie__actions { display: flex; }
.pc-btn { padding: 8px 14px; border-radius: 8px; background: #0f172a; color: #fff; font-weight: 600; }
.pc-after { border: 1px solid var(--u-line); border-radius: var(--u-r2); }
.pc-after__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 40px; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--u-line); }
.pc-after__row:first-child { border-top: 0; }
.pc-after__row > :last-child { text-align: right; }
.pc-after__row.is-moved { background: color-mix(in oklab, #a3e635 28%, var(--u-bg)); }
@media (max-width: 639px) { .pc-tie { padding: 16px; } .pc-sides { grid-template-columns: minmax(0, 1fr); } }

/* ---- the card group: an approved entry is ticked, not struck through */
#formats .ui-check.is-done .ui-check__label { text-decoration: none; color: var(--u-ink); }

#formats .panel { --p-h: 336px; }
@media (max-width: 639px) { #formats .panel { --p-h: 200px; } }

/* ---- the league's figures, as the dashboard's x-stat-tile */
.league-figures { margin-top: var(--s-8); row-gap: var(--s-5); }
.league-figures .stat { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); }
.league-figures .stat__label { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.league-figures .t-stat { margin: 0; color: #0f172a; }
.league-figures .t-small { font-size: var(--t-body); color: #64748b; margin: 0; }
.league-figures .stat--dark { background: linear-gradient(135deg, #0f172a, #1e293b); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.league-figures .stat--dark .stat__label { color: rgb(255 255 255 / .6); }
.league-figures .stat--dark .t-stat { color: #a3e635; }
.league-figures .stat--dark .t-small { color: rgb(255 255 255 / .7); }
.league-link { margin-top: var(--s-8); }
@media (max-width: 1023px) { .league-figures > .span-3 { grid-column: span 6; } }

/* ---- plain facts beside a picture */
.facts { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: grid; gap: var(--s-3); }
.facts > li { display: flex; gap: var(--s-3); align-items: baseline; }
.facts > li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; translate: 0 -2px; }

/* ---- calendar frame: the month whole at every width (calendar-frame) */
#calendar .frame--split { --ratio: 0px; min-height: 600px; background: var(--ground-bg); border-color: transparent; }

/* ---- the phone on the inverse ground */
.frame--device { background: linear-gradient(135deg, #1e293b, #0f172a); border-color: transparent; align-items: flex-start; padding: 48px 0 0; overflow: hidden; }
.device {
  width: 300px; height: 560px; padding: 10px; border-radius: 40px; background: #020617; box-shadow: 0 0 0 1px rgb(255 255 255 / .12);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
}
.device__screen {
  --club-bg: #0a1845; --club-surface: #13286f; --club-strong: #1b3490; --club-accent: #c8e02c; --club-accent-ink: #0a1845;
  height: 100%; overflow: hidden; border-radius: 31px; color: #fff;
  background: radial-gradient(ellipse at top, var(--club-surface), transparent 60%), var(--club-bg);
  padding: 22px 14px; display: grid; gap: 9px; align-content: start; font: 400 13px/1.35 var(--font-text);
}
.ph-head { padding: 4px 2px 0; }
.ph-club { font: 800 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.ph-nav { display: flex; gap: 2px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.ph-nav > span { padding: 4px 8px; border-radius: 99px; color: rgb(255 255 255 / .75); }
.ph-nav > .is-on { background: var(--club-accent); color: var(--club-accent-ink); }
.ph-crumb { margin-top: 4px; color: rgb(255 255 255 / .55); font-size: 11px; }
.ph-crumb i { font-style: normal; margin-inline: 3px; }
.ph-kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .3em; color: rgb(255 255 255 / .6); }
.ph-title { margin-top: -4px; font: 800 27px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.ph-title span { color: var(--club-accent); }
.ph-pills { display: flex; gap: 6px; }
.ph-pills > span { padding: 4px 10px; border-radius: 99px; background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .75); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ph-pills > .is-on { background: var(--club-accent); color: var(--club-accent-ink); }
.ph-list { margin-top: 4px; border-radius: 12px; border: 2px solid color-mix(in oklab, var(--club-accent) 60%, transparent); background: color-mix(in oklab, var(--club-surface) 90%, transparent); overflow: hidden; }
.ph-list li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid rgb(255 255 255 / .1); }
.ph-list li:first-child { border-top: 0; }
.ph-pos { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: rgb(255 255 255 / .1); font: 800 15px/1 var(--font-display); }
.ph-pos.is-top { background: var(--club-accent); color: var(--club-accent-ink); }
.ph-photo { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 12%; background: var(--club-strong); color: rgb(255 255 255 / .8); font-size: 10px; font-weight: 600; }
.ph-who { flex: 1; min-width: 0; display: grid; white-space: nowrap; overflow: hidden; }
.ph-who u { font-weight: 600; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 2px; overflow: hidden; text-overflow: ellipsis; }
.ph-who small { font-size: 10px; color: rgb(255 255 255 / .5); }
.ph-pts { font: 800 20px/1 var(--font-display); color: var(--club-accent); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .frame--device { padding-top: 24px; } .device { width: 260px; height: 500px; } }

/* ---- the diagram frame */
.frame--diagram { --ratio: 80%; background: var(--ground-bg); border-color: transparent; padding: 0; }
.frame--diagram > .dg { position: absolute; inset: 0; }

/* ---- the demo request */
.demo-copy { display: flex; flex-direction: column; }
.demo-photo { flex: 1 1 auto; min-height: 240px; }
.demo-panel { background: #fff; border-radius: 12px; padding: var(--s-7); box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); }
.demo-panel .form { align-content: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .demo-panel { padding: var(--s-5); } }

/* ---- the credits toggle in the page's language */
html[lang="it"] .credits > summary::after { content: "Crediti"; }
html[lang="it"] .credits[open] > summary::after { content: "Nascondi"; }

/* ---- the staff panel's look over the kit (2026-11-19) */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

/* grounds: slate where the kit had sky */
html[data-ground="sky"] { --ground-bg: #e2e8f0; --ground-surface: #f1f5f9; --ground-ink: #0f172a; --ground-muted: #475569; --ground-accent: #65a30d; }

/* headings as the panel's titles: condensed, capitals; the h1 of the panel's page header, larger */
h1, h2, .t-stat, .close__word { text-transform: uppercase; }
h1 { line-height: .95; padding-bottom: .04em; }
h2 { line-height: .98; }
h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.section-head h2 .muted { display: block; color: var(--muted); }
.hero__kicker { margin: 0 0 var(--s-4); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: var(--accent); }
.hero.ground-inverse .hero__lead { color: rgb(255 255 255 / .75); }
.t-label { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* the logo: the centre's name as the side bar sets it */
.nav__logo { font: 800 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.nav.ground-inverse { border-bottom-color: rgb(255 255 255 / .08); }
.nav.ground-inverse .nav__link { color: rgb(255 255 255 / .8); }
.nav.ground-inverse .nav__link:hover { color: #fff; }
.nav.ground-inverse .nav__menu { --bg: #fff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; color: #0f172a; }

/* buttons: x-button, semibold, the panel's radius; lime on the court colour */
.btn { font-weight: 600; border-radius: 8px; }
.ground-inverse .btn--primary:hover { background: color-mix(in oklab, #a3e635 90%, #000); }
.ground-inverse .btn--secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }
.ground-inverse .btn--secondary:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .45); }
.link { text-decoration-color: #cbd5e1; font-weight: 600; }
.ground-inverse .link { text-decoration-color: rgb(255 255 255 / .35); }

/* the facts' bullets in the accent */
.facts > li::before { width: 8px; height: 8px; border-radius: 2px; background: #a3e635; translate: 0 -1px; }

/* FAQ: an accordion of white rows (details), a number, the question in the panel's capitals, a plus
   that turns into a minus; the open row carries a lime bar down its side */
#questions { background: var(--p-surface); }
.faq-side { align-content: start; }
.faq-more { margin-top: var(--s-4); display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); border-radius: 12px; background: linear-gradient(135deg, #0f172a, #1e293b); color: rgb(255 255 255 / .75); }
.faq-more__title { margin: 0; font: 800 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.faq-more p { margin: 0; }
.faq-more .btn { margin-top: var(--s-2); --action: #a3e635; --action-ink: #0f172a; --ink: #0f172a; background: #a3e635; color: #0f172a; }
.faq-list { display: grid; gap: var(--s-3); align-content: start; }
.faq-item { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); overflow: hidden; transition: box-shadow var(--dur, .2s) var(--ease, ease); }
.faq-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #a3e635; transform: scaleY(0); transform-origin: top; transition: transform var(--dur, .2s) var(--ease, ease); }
.faq-item[open]::before { transform: none; }
.faq-item[open] { box-shadow: 0 0 0 1px #cbd5e1, 0 8px 24px -12px rgb(15 23 42 / .25); }
.faq-item summary { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover h3 { color: #334155; }
.faq-item summary:focus-visible { outline: 2px solid #0f172a; outline-offset: -2px; border-radius: 12px; }
.faq-item__n { flex: none; font: 700 15px/1 var(--font-display); color: #94a3b8; font-variant-numeric: tabular-nums; }
.faq-item h3 { flex: 1; margin: 0; font-size: 21px; line-height: 1.1; }
.faq-item__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9; transition: background-color var(--dur, .2s) var(--ease, ease); }
.faq-item__sign::before, .faq-item__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #0f172a; transition: transform var(--dur, .2s) var(--ease, ease); }
.faq-item__sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__sign { background: #a3e635; }
.faq-item[open] .faq-item__sign::after { transform: rotate(0deg); }
.faq-item > p { margin: 0; padding: 0 var(--s-5) var(--s-5) calc(var(--s-5) + var(--s-4) + 20px); color: #475569; max-width: 62ch; }
@media (max-width: 1023px) { .faq-list { margin-top: var(--s-6); } .faq-more { display: none; } }
@media (max-width: 639px) { .faq-item h3 { font-size: 18px; } .faq-item > p { padding-left: var(--s-5); } }

/* the ranking diagram on white, on the slate ground */
.frame--white { background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); }

/* the demo form: the panel's fields */
.demo-panel .field label { font-size: 14px; font-weight: 600; color: #334155; }
.demo-panel .field :is(input, textarea) { border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.demo-panel .field :is(input, textarea):focus { border-color: #0f172a; outline: 2px solid #a3e635; outline-offset: 0; }
.demo-photo { border-radius: 12px; overflow: hidden; }

/* the close: the name across the court colour, the accent on its last letters */
.footer.ground-inverse .close__word { color: #a3e635; letter-spacing: .005em; font-size: clamp(44px, 14vw, 216px); }
.footer.ground-inverse .footer__lede { text-transform: none; font-family: var(--font-text); font-weight: 500; letter-spacing: 0; color: rgb(255 255 255 / .75); }
.footer.ground-inverse .footer__col h3 { font-size: 13px; letter-spacing: .2em; color: rgb(255 255 255 / .5); }
.footer.footer--statement.ground-inverse {
  background: #0f172a; color: #fff;
  --bg: #0f172a; --surface: #1e293b; --ink: #ffffff; --muted: #94a3b8; --accent: #a3e635; --accent-ink: #0f172a;
  --action: #a3e635; --action-ink: #0f172a;
  --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .22);
}

/* below a desktop a section grows with its content: a .fill block takes its own height rather than
   shrinking to nothing and spilling over the next section (calendar, tools and demo on a phone) */
@media (max-width: 1279px) {
  main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; }
}

/* ---- one ranking for the whole club: four tournaments, lines that meet, the ranking they feed */
.rk {
  --k0: #3b82f6; --k1: #f59e0b; --k2: #10b981; --k3: #ec4899;   /* PlayerCategory::PALETTE */
  --ratio: 0px; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: clamp(20px, 3vw, 40px);
  background: #fff; border-color: transparent; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05);
}
.rk-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rk-src {
  --c: var(--k0); position: relative; display: grid; gap: 2px; padding: 12px 12px 12px; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .05); cursor: default; outline: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}
.rk-src[data-k="1"] { --c: var(--k1); } .rk-src[data-k="2"] { --c: var(--k2); } .rk-src[data-k="3"] { --c: var(--k3); }
.rk-src::before { content: ""; position: absolute; inset: 0 12px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.rk-src:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--c), 0 8px 20px -10px rgb(15 23 42 / .3); }
.rk-src__ico { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 8px; background: color-mix(in oklab, var(--c) 14%, #fff); color: color-mix(in oklab, var(--c) 75%, #0f172a); }
.rk-ico { width: 16px; height: 16px; }
.rk-src b { font: 700 16px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: #0f172a; }
.rk-src small { font-size: 12px; color: #64748b; }
.rk-lines { display: block; width: 100%; height: 56px; overflow: visible; }
.rk-lines path { fill: none; stroke: #cbd5e1; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .2s ease; }
.rk-board { border-radius: 12px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; overflow: hidden; box-shadow: 0 18px 40px -20px rgb(15 23 42 / .6); }
.rk-board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.rk-board__head span { font: 800 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.rk-board__head em { font-style: normal; font-size: 12px; color: rgb(255 255 255 / .55); }
.rk-rows li { display: grid; grid-template-columns: 26px minmax(90px, 9.5em) minmax(0, 1fr) 52px; align-items: center; gap: 12px; padding: 9px 18px; border-top: 1px solid rgb(255 255 255 / .06); }
.rk-rows li:first-child { border-top: 0; }
.rk-pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgb(255 255 255 / .1); font: 800 16px/1 var(--font-display); }
.rk-pos.is-top { background: #a3e635; color: #0f172a; }
.rk-who { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bar { display: flex; gap: 2px; width: var(--w); height: 10px; }
.rk-bar i { display: block; min-width: 3px; border-radius: 2px; background: var(--k0); transition: opacity .2s ease; }
.rk-bar i[data-k="1"] { background: var(--k1); } .rk-bar i[data-k="2"] { background: var(--k2); } .rk-bar i[data-k="3"] { background: var(--k3); }
.rk-pts { text-align: right; font: 800 20px/1 var(--font-display); color: #a3e635; font-variant-numeric: tabular-nums; }
.rk-board__foot { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 13px; color: rgb(255 255 255 / .6); }
/* a tournament pointed at: its line and its share of every bar stay lit */
@media (hover: hover) {
  .rk:has(.rk-src:is(:hover, :focus-visible)) .rk-bar i { opacity: .18; }
}
.rk:has(.rk-src:focus-visible) .rk-bar i { opacity: .18; }
.rk:has(.rk-src[data-k="0"]:is(:hover, :focus-visible)) :is(.rk-bar i[data-k="0"]) { opacity: 1; }
.rk:has(.rk-src[data-k="1"]:is(:hover, :focus-visible)) :is(.rk-bar i[data-k="1"]) { opacity: 1; }
.rk:has(.rk-src[data-k="2"]:is(:hover, :focus-visible)) :is(.rk-bar i[data-k="2"]) { opacity: 1; }
.rk:has(.rk-src[data-k="3"]:is(:hover, :focus-visible)) :is(.rk-bar i[data-k="3"]) { opacity: 1; }
.rk:has(.rk-src[data-k="0"]:is(:hover, :focus-visible)) .rk-lines path[data-k="0"] { stroke: var(--k0); }
.rk:has(.rk-src[data-k="1"]:is(:hover, :focus-visible)) .rk-lines path[data-k="1"] { stroke: var(--k1); }
.rk:has(.rk-src[data-k="2"]:is(:hover, :focus-visible)) .rk-lines path[data-k="2"] { stroke: var(--k2); }
.rk:has(.rk-src[data-k="3"]:is(:hover, :focus-visible)) .rk-lines path[data-k="3"] { stroke: var(--k3); }
@media (max-width: 639px) {
  .rk-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-lines { height: 36px; }
  .rk-rows li { grid-template-columns: 24px minmax(0, 1fr) 44px; }
  .rk-bar { grid-column: 2 / -1; grid-row: 2; width: var(--w); }
  .rk-pts { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { .rk-src, .rk-bar i, .rk-lines path { transition: none; } }

/* ---- the calendar planner: courts across, times down (planner.js plays it) */
.cp-frame { --ratio: 0px; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); background: var(--ground-bg); border-color: transparent; }
.cp { width: 100%; max-width: 560px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #e2e8f0, 0 24px 48px -24px rgb(15 23 42 / .35); overflow: hidden; font: 400 13px/1.3 var(--font-text); color: #0f172a; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.cp-head b { display: block; font: 700 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.cp-head small { display: block; margin-top: 4px; font-size: 12px; color: #64748b; }
.cp-count { flex: none; padding: 4px 10px; border-radius: 99px; background: #ecfccb; color: #3f6212; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .3s ease, color .3s ease; }
.cp.is-playing:not(.is-done) .cp-count { background: rgb(232 194 26 / .25); color: #78350f; }
.cp-grid { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 1fr)); gap: 6px; padding: 14px 18px 16px; background: #f8fafc; }
.cp-court { padding-bottom: 2px; text-align: center; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.cp-time { display: grid; align-content: center; font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.cp-time b { font-weight: 600; color: #0f172a; }
.cp-cell { position: relative; min-height: 64px; border-radius: 8px; padding: 8px; display: grid; align-content: center; gap: 1px; }
.cp-free { border: 1.5px dashed #cbd5e1; }
.cp-tie { background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 1px 2px rgb(0 0 0 / .06); border-left: 3px solid #0f172a; }
.cp-tie b { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-tie b + b { font-weight: 500; color: #475569; }
.cp-tie em { margin-top: 3px; justify-self: start; padding: 1px 6px; border-radius: 99px; background: #ecfccb; color: #3f6212; font-style: normal; font-size: 10px; font-weight: 600; }
.cp-busy { color: #64748b; background: repeating-linear-gradient(135deg, #f1f5f9 0 6px, #e2e8f0 6px 12px); text-align: center; font-size: 11px; transition: box-shadow .2s ease; }
.cp-busy b { font-weight: 600; }
.cp-busy--other { background: repeating-linear-gradient(135deg, #fdf2f8 0 6px, #fce7f3 6px 12px); color: #9d174d; }
.cp-busy em { position: absolute; left: 50%; top: -9px; translate: -50% 0; padding: 1px 7px; border-radius: 99px; background: #dc2626; color: #fff; font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .15s ease; }
.cp-busy.is-hit { box-shadow: 0 0 0 2px #dc2626; animation: cp-shake .35s ease; }
.cp-busy.is-hit em { opacity: 1; }
.cp-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #f1f5f9; font-weight: 600; transition: opacity .3s ease; }
.cp-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #a3e635; }
.cp-ok svg { width: 14px; height: 14px; fill: none; stroke: #0f172a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* playing: ties wait as ghost slots, then drop in */
.cp.is-playing .cp-tie:not(.is-placed) { background: transparent; box-shadow: none; border-left-color: transparent; outline: 1.5px dashed #cbd5e1; outline-offset: -1.5px; }
.cp.is-playing .cp-tie:not(.is-placed) > * { opacity: 0; }
.cp.is-playing .cp-tie.is-placed { animation: cp-drop .45s cubic-bezier(.22, 1, .36, 1); }
.cp.is-playing:not(.is-done) .cp-foot { opacity: .35; }
@keyframes cp-drop { from { transform: translateY(-14px) scale(.96); opacity: 0; box-shadow: 0 0 0 2px #a3e635; } 60% { box-shadow: 0 0 0 2px #a3e635; } to { transform: none; opacity: 1; } }
@keyframes cp-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (max-width: 639px) {
  .cp-grid { grid-template-columns: 40px repeat(4, minmax(0, 1fr)); gap: 4px; padding-inline: 10px; }
  .cp-cell { min-height: 56px; padding: 5px; }
  .cp-tie b { font-size: 10px; }
  .cp-tie em { display: none; }
}
.rk > * { width: 100%; align-self: stretch; }
