/*
 * TTC Sukarti design system (https://claude.ai/artifact/CvyZEmhCo4aNKi9p5gxWFm) for the public site.
 *
 * The first part (down to "Site") is the system's own component stylesheet, components/bundle.css, unchanged
 * except for the font import (the fonts are linked in layout.hbs), the preview-only helpers and the ThemeToggle
 * state (see there). Change components in the design system first, then copy them here. The second part is this
 * site's page frame and what the system does not ship yet (news cards), built from the same tokens and following
 * the system's rules.
 * Every value comes from tokens.css; class prefix sk- for system components, pg- for the page frame.
 */
*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 26px; background: var(--surface); color: var(--ink); }
.sk-label { font-family: var(--font-display); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sk-num { font-variant-numeric: tabular-nums; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.sk-btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.sk-btn-primary { background: var(--club-blue); color: var(--on-blue); }
.sk-btn-primary:hover { background: var(--club-blue-hover); }
.sk-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.sk-btn-secondary:hover { border-color: var(--club-blue); color: var(--club-blue); }
.sk-btn-ghost { background: transparent; color: var(--club-blue); padding-inline: var(--space-2); }
.sk-btn-ghost:hover { color: var(--club-blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.sk-btn-ball { background: var(--ball); color: var(--on-ball); }
.sk-on-navy .sk-btn-secondary { background: transparent; color: var(--on-navy); border-color: var(--on-navy-muted); }
.sk-on-navy :focus-visible { outline-color: var(--on-navy); }
.sk-on-band .sk-btn-secondary { background: transparent; color: var(--on-band); border-color: var(--on-band-muted); }
.sk-on-band .sk-btn-secondary:hover { border-color: var(--on-band); color: var(--on-band); }
.sk-on-band :focus-visible { outline-color: var(--on-band); }
.sk-on-band .sk-btn-primary { background: var(--band-button); color: var(--on-band-button); }
.sk-on-band .sk-btn-primary:hover { background: var(--band-button-hover); }
.sk-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* RankBadge: Belgian ranking letters */
.sk-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .02em; box-sizing: border-box; }
.sk-rank-high { background: var(--navy); color: var(--on-navy); }
.sk-rank-mid { background: var(--club-blue); color: var(--on-blue); }
.sk-rank-low { background: var(--blue-soft); color: var(--ink); }
.sk-rank-ng { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* SiteHeader */
.sk-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.sk-wordmark { display: inline-flex; align-items: baseline; gap: var(--space-2); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -.01em; }
.sk-wordmark b { color: var(--club-blue); font-weight: 700; }
.sk-wordmark:has(.sk-logo-plate) { align-items: center; gap: var(--space-3); }
.sk-logo-plate { display: inline-flex; align-items: center; justify-content: center; background: var(--logo-ground); border-radius: var(--radius-sm); padding: 2px 4px; }
.sk-logo { display: block; height: 44px; width: auto; }
.sk-wordmark-dot { width: 10px; height: 10px; border-radius: var(--radius-ball); background: var(--ball); align-self: center; }
.sk-nav { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.sk-nav a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.sk-nav a:hover { color: var(--club-blue); }
.sk-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--club-blue); }

.sk-header-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* ThemeToggle: an optional mini switch; the knob sits left in light (orange sun on white) and right in dark (moon on club blue). The track is empty.
 * Server-rendered: the state is aria-checked (set by js/theme.js) instead of the bundle's is-dark class, and the
 * switch is hidden until js/theme.js shows it, so without JavaScript the page follows the device setting */
.sk-theme { position: relative; display: inline-block; flex: none; width: 52px; height: 28px; padding: 0; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-ball); background: var(--surface); color: var(--ink-muted); cursor: pointer; }
.sk-theme[hidden] { display: none; }
.sk-theme:hover { border-color: var(--ink-muted); }
.sk-theme-icon { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-theme-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--radius-ball); display: inline-flex; align-items: center; justify-content: center; background: var(--toggle-knob); color: var(--on-toggle-knob); box-shadow: 0 0 0 1.5px var(--toggle-knob-ring); transition: transform .2s ease; }
.sk-theme-knob .sk-theme-icon { width: 14px; height: 14px; stroke-width: 2.5; }
.sk-theme-knob circle { fill: currentColor; }
.sk-theme .sk-theme-moon, .sk-theme[aria-checked="true"] .sk-theme-sun { display: none; }
.sk-theme[aria-checked="true"] .sk-theme-moon { display: block; }
.sk-theme[aria-checked="true"] .sk-theme-knob { transform: translateX(24px); }
@media (prefers-reduced-motion: reduce) { .sk-theme-knob { transition: none; } }

/* Hero: the court motif. A band (club blue in light, navy in dark) with an inset court line and a centre line */
.sk-hero { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); border-radius: var(--radius-md); padding: var(--space-12) var(--space-8); }
.sk-hero::before { content: ""; position: absolute; inset: var(--space-3); border: 2px solid var(--band-line); border-radius: var(--radius-sm); pointer-events: none; }
.sk-hero::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); top: 50%; border-top: 1px solid var(--band-line-faint); pointer-events: none; }
.sk-hero > * { position: relative; }
.sk-hero-eyebrow { margin: 0 0 var(--space-3); }
.sk-hero .sk-hero-eyebrow { color: var(--band-accent); }
.sk-hero h1 { font-family: var(--font-display); font-size: 64px; line-height: 60px; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; margin: 0; max-width: 14ch; text-wrap: balance; }
.sk-hero p { max-width: 52ch; margin: var(--space-4) 0 0; color: var(--on-band-muted); }
.sk-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.sk-hero-ball { position: absolute; right: var(--space-12); top: var(--space-12); width: 40px; height: 40px; border-radius: var(--radius-ball); background: var(--ball); }
@media (max-width: 560px) { .sk-hero { padding: var(--space-8) var(--space-6); } .sk-hero h1 { font-size: 44px; line-height: 46px; } .sk-hero-ball { display: none; } }

/* Card shell */
.sk-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); box-sizing: border-box; min-width: 0; }
.sk-card h3 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 0; }
.sk-muted { color: var(--ink-muted); }

/* ScheduleTable */
.sk-table-wrap { overflow-x: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sk-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sk-table th { text-align: left; color: var(--ink-muted); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sk-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.sk-table tr:last-child td { border-bottom: 0; }
.sk-table .sk-day { font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; }
.sk-table .sk-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk-table tr.is-today td { background: var(--blue-soft); }
.sk-table tr.is-today .sk-day::after { content: "Vandaag"; margin-left: var(--space-2); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* FeeCard */
.sk-fee { display: grid; gap: var(--space-2); box-shadow: var(--shadow-raised); }
.sk-fee-amount { font-family: var(--font-display); font-size: 48px; line-height: 48px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.sk-fee-amount small { font-size: 20px; font-weight: 600; color: var(--ink-muted); margin-left: var(--space-1); }
.sk-fee.is-featured { border-color: var(--club-blue); box-shadow: inset 0 3px 0 var(--club-blue), var(--shadow-raised); }

/* MatchCard: a scoreboard */
.sk-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); box-shadow: var(--shadow-raised); }
.sk-match-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); color: var(--ink-muted); }
.sk-match-team { font-weight: 600; font-size: 18px; line-height: 24px; min-width: 0; }
.sk-match-team.is-away { text-align: right; }
.sk-match-team.is-us { color: var(--club-blue); }
.sk-match-score { font-family: var(--font-display); font-size: 48px; line-height: 48px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; }
.sk-match-time { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.sk-match-result { grid-column: 1 / -1; justify-self: center; }
.sk-result { display: inline-flex; align-items: center; gap: var(--space-1); }
.sk-result-win { color: var(--win); }
.sk-result-loss { color: var(--loss); }
.sk-result-draw { color: var(--ink-muted); }
.sk-next { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--ball); color: var(--on-ball); }

/* VenueCard */
.sk-venue { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.sk-venue-court { width: 56px; height: 96px; border-radius: var(--radius-sm); background: var(--club-blue); position: relative; }
.sk-venue-court::before { content: ""; position: absolute; inset: 4px; border: 2px solid var(--court-line); border-radius: 2px; }
.sk-venue-court::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid var(--navy); }
.sk-venue address { font-style: normal; }
.sk-venue p { margin: var(--space-1) 0 0; }

@media (prefers-reduced-motion: reduce) { .sk-btn { transition: none; } }

/* Site: page frame, from the system's HomePage example */
.pg { max-width: 1120px; margin: 0 auto; }
.pg-main { display: grid; gap: var(--space-12); padding: var(--space-8) var(--space-6) var(--space-12); }
.pg-sec { display: grid; gap: var(--space-6); align-content: start; }
.pg-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pg-sec h2 { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 600; margin: 0; }
.pg-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); align-items: start; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.pg-callout { display: grid; gap: var(--space-3); }
.pg-callout p { margin: 0; font-size: 15px; line-height: 22px; }
.pg-foot { background: var(--band); color: var(--on-band); padding: var(--space-8) var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); }
.pg-foot p { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-band-muted); }
.pg-foot strong { font-family: var(--font-display); font-size: 22px; line-height: 28px; color: var(--on-band); display: block; margin-bottom: var(--space-1); }
.pg-page-title { font-family: var(--font-display); font-size: 44px; line-height: 46px; font-weight: 700; margin: 0; }
a { color: var(--club-blue); }
a:hover { color: var(--club-blue-hover); }
@media (max-width: 760px) { .pg-two { grid-template-columns: 1fr; } .pg-main { padding: var(--space-6) var(--space-4) var(--space-12); } .sk-header { padding: var(--space-3) var(--space-4); } }

/* The bits the system's React components set inline */
.pg-card-text { margin: 0; font-size: 15px; line-height: 22px; }
.sk-venue h3 { margin-top: var(--space-1); }
.sk-venue .pg-card-text { margin-top: var(--space-2); }
.pg-row-note { font-size: 14px; line-height: 20px; }

/* News card: a card with the date as label, the title as the link and the summary */
.pg-news { display: grid; gap: var(--space-2); align-content: start; }
.pg-news time { color: var(--ink-muted); }
.pg-news h3 a { color: var(--ink); text-decoration: none; }
.pg-news h3 a:hover { color: var(--club-blue); text-decoration: underline; text-underline-offset: 3px; }
.pg-news p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.pg-news-image { display: block; width: calc(100% + 2 * var(--space-6)); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-2); border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--blue-soft); }

/* Article and fixed page: a readable column of CMS text */
.pg-article { display: grid; gap: var(--space-4); max-width: 72ch; }
.pg-article > p { margin: 0; }
/* Never wider than the image itself: a small image (a logo) is shown at its own size instead of blown up */
.pg-article-image { display: block; width: auto; max-width: 100%; height: auto; border-radius: var(--radius-md); }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.pg-prose h3 { font-size: 20px; line-height: 26px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.pg-prose p, .pg-prose ul, .pg-prose ol { margin: 0 0 var(--space-4); }
.pg-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.pg-prose table { border-collapse: collapse; }
.pg-prose th, .pg-prose td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; }

/* Pagination of the news overview */
.pg-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* Calendar: month navigation, category filter, agenda grouped by day */
.pg-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.pg-cal-head h2 { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 600; margin: 0; }
.pg-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pg-filters a { display: block; padding: var(--space-1) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.pg-filters a:hover { border-color: var(--club-blue); color: var(--club-blue); }
.pg-filters a[aria-current] { background: var(--blue-soft); border-color: var(--club-blue); color: var(--ink); }
.pg-agenda { display: grid; gap: var(--space-6); }
.pg-day { display: grid; gap: var(--space-2); }
.pg-day h3 { margin: 0; color: var(--ink-muted); }
.pg-day.is-today h3 { color: var(--ink); }
.pg-day ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pg-entry { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
.pg-day.is-today .pg-entry { background: var(--blue-soft); }
.pg-entry p { margin: 0; }
.pg-entry-time { font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; }
.pg-entry-title { font-weight: 600; }
.pg-entry .sk-muted { font-size: 15px; line-height: 22px; }
.pg-entry-text { margin-top: var(--space-1); font-size: 15px; line-height: 22px; }
@media (max-width: 560px) { .pg-entry { grid-template-columns: 1fr; gap: var(--space-1); } }

/* Teams: team cards, the ranking with our row highlighted, match cards */
.pg-team { display: grid; gap: var(--space-1); color: var(--ink); text-decoration: none; }
.pg-team:hover h3 { color: var(--club-blue); }
.pg-team p { margin: 0; }
.pg-ranking tr.is-us td { background: var(--blue-soft); font-weight: 600; }
.pg-ranking .pg-points { font-weight: 700; }
.pg-matches { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.pg-match-date { font-size: 14px; }
.interclub h3 { margin: 0; }

/* Tag next to a team or match: "Jeugd" or "Dames", for teams that share their name with a men's team */
/* The text and its tag sit in a flex row, centred on each other instead of on the text's baseline */
.pg-labelled { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2); row-gap: var(--space-1); }
:is(h1, p).pg-labelled { display: flex; }
.pg-tag { display: inline-block; padding: 3px 6px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--ink); font-size: 12px; line-height: 12px; }
.pg-tag-title { padding: 4px 8px; font-size: 14px; line-height: 14px; }
