:root {
  color-scheme: light;
  --ink: #142b39;
  --muted: #667985;
  --line: #d9e1e4;
  --surface: #fff;
  --page: #f3f6f6;
  --accent: #0b736c;
  --dark: #122d3c;
  --gold: #bb8541;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #159c8f; outline-offset: 3px; border-radius: 3px; }
.shell { width: min(100% - 48px, 1200px); margin-inline: auto; }
.site-header { background: var(--dark); color: #fff; }
.nav { min-height: 102px; padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: 0 1 260px; min-width: 0; text-decoration: none; }
.brand-logo { display: block; width: 260px; max-width: 100%; height: auto; max-height: 82px; object-fit: contain; object-position: left center; }
.brand-second { display: block; color: #78d1c2; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #69c7b8; border-radius: 50%; color: #7ed3c4; font-size: 31px; font-weight: 400; line-height: 1; }
.edition { color: #c4d3d9; font-size: 14px; }
.edition-year { margin-left: 9px; border: 1px solid #607683; border-radius: 6px; padding: 6px 10px; color: #fff; font-weight: 700; }
.main-content { padding-top: 47px; padding-bottom: 68px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 31px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.18; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 1.14rem; letter-spacing: -.015em; }
.intro { margin: 0; color: var(--muted); font-size: 17px; }
.season-panel { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 3px; }
.season-panel span, .profile-rank span, .profile-total > span, .stat-tile span, .points-card > span { font-size: 12px; font-weight: 800; letter-spacing: .11em; }
.season-panel span { color: var(--muted); }
.season-panel strong { font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.notice { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #a9d4ca; border-left: 4px solid var(--accent); border-radius: 10px; background: #e6f4f0; padding: 14px 18px; margin-bottom: 22px; font-size: 14px; }
.notice strong { white-space: nowrap; }
.notice span { color: #365b59; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); margin-bottom: 31px; }
.summary-strip > div { display: flex; align-items: baseline; gap: 12px; padding: 17px 22px; background: #fff; }
.summary-strip strong { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.summary-strip span { color: var(--muted); font-size: 13px; }
.main-board, .clubs-board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 25px 28px; }
.main-board .section-head, .clubs-board .section-head { border-bottom: 1px solid var(--line); }
.rule-tag { color: #526773; font-size: 13px; font-weight: 650; white-space: nowrap; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-row { min-height: 68px; display: flex; align-items: center; gap: 17px; border-bottom: 1px solid #e7edef; padding: 10px 28px; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: #f7faf9; }
.rank-number { flex: 0 0 36px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #6b7a82; font-variant-numeric: tabular-nums; }
.rank-number.medal { width: 36px; height: 36px; border-radius: 8px; }
.medal-1 { background: #f9e9c6; color: #8f621a; }
.medal-2 { background: #e9eef0; color: #526773; }
.medal-3 { background: #fae9dd; color: #995c3a; }
.rank-person { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
a.rank-person:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rank-person strong { font-size: 16px; line-height: 1.25; font-weight: 750; }
.rank-person > span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.rank-score { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-score strong { font-size: 22px; font-weight: 800; line-height: 1; }
.rank-score small { color: var(--muted); font-size: 12px; }
.categories, .clubs-board { margin-top: 39px; }
.categories > .section-head { padding-left: 0; padding-right: 0; }
.category-grid { display: grid; align-items: start; gap: 18px; }
.category-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 20px 17px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.category-head span { color: var(--muted); font-size: 12px; text-align: right; }
.category-card .rank-row { padding: 9px 15px; min-height: 59px; gap: 10px; }
.rank-row-small .rank-number { flex-basis: 30px; width: 30px; font-size: 14px; }
.rank-row-small .rank-number.medal { width: 30px; height: 30px; }
.rank-row-small .rank-person strong { font-size: 14px; }
.rank-row-small .rank-person > span { font-size: 12px; }
.rank-row-small .rank-score strong { font-size: 18px; }
.more-results { border-top: 1px solid var(--line); }
.more-results summary { cursor: pointer; list-style: none; padding: 13px 20px; color: var(--accent); font-weight: 700; font-size: 14px; }
.more-results summary::-webkit-details-marker { display: none; }
.more-results summary::after { content: ' +'; }
.more-results[open] summary::after { content: ' −'; }
.empty-card { padding: 20px 26px; color: var(--muted); margin: 0; }
.method-note { max-width: 920px; margin: 30px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.method-note a { color: var(--accent); font-weight: 700; }
.site-footer { background: var(--dark); color: #c5d3d8; }
.site-footer .shell { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; }
.back-link { display: inline-block; color: var(--accent); font-weight: 700; text-decoration: none; margin-bottom: 25px; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.profile-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.profile-heading h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.profile-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.profile-rank { display: flex; flex-direction: column; align-items: flex-end; min-width: 145px; }
.profile-rank span { color: var(--muted); }
.profile-rank strong { font-size: 42px; line-height: 1.1; }
.profile-rank small { color: var(--muted); font-size: 12px; }
.profile-overview { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.profile-total { display: flex; flex-direction: column; justify-content: center; border-radius: 12px; background: var(--dark); color: #fff; padding: 23px 27px; }
.profile-total > span { color: #9bd9cc; }
.profile-total > strong { font-size: 54px; line-height: 1.06; }
.profile-total > small { color: #c4d8dd; font-size: 12px; }
.stat-tile { display: flex; flex-direction: column; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 23px 20px; }
.stat-tile span { color: var(--muted); }
.stat-tile strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.profile-section { margin-bottom: 39px; }
.profile-section .section-head { padding-left: 0; padding-right: 0; }
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.points-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); background: #fff; border-radius: 11px; padding: 22px; }
.points-card > span { color: var(--muted); }
.points-card > strong { display: block; font-size: 44px; line-height: 1.3; }
.points-card > strong small { font-size: 14px; color: var(--muted); }
.points-card > div { border-top: 1px solid var(--line); padding: 11px 0 0; margin-top: 7px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.points-card > div span { color: var(--muted); }
.points-card b { white-space: nowrap; }
.fine-print { color: var(--muted); font-size: 13px; margin: 11px 0 0; }
.profile-section[aria-labelledby="starts-heading"] > .fine-print { color: #146b40; background: #e6f6ec; border-left: 4px solid #24925c; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.6; padding: 16px 18px; margin: 12px 0 28px; }
.progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--line); }
.progress-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 15px 18px; background: #fff; font-size: 14px; }
.progress-grid span { color: var(--muted); }
.progress-grid strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qualification { display: inline-block; border-radius: 7px; padding: 10px 14px; margin: 15px 0 0; background: #e9edef; color: #475864; font-size: 14px; }
.qualification.met { background: #dff2eb; color: #08614d; }
.qualification.pending { background: #ffe7e3; color: #923a33; }
.progress-grid > div.status-qualified { background: #e6f6ec; color: #146b40; }
.progress-grid > div.status-pending { background: #fff0ed; color: #a13a35; }
.progress-grid > div.status-qualified span, .progress-grid > div.status-pending span { color: inherit; }
.results-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.history-table { border-collapse: collapse; width: 100%; text-align: left; min-width: 760px; font-size: 14px; }
.history-table th { padding: 14px 17px; background: var(--dark); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .055em; }
.history-table td { padding: 14px 17px; border-top: 1px solid var(--line); }
.history-table tr.history-counted td { background: #e6f6ec; }
.history-table tr.history-counted td:first-child { border-left: 4px solid #24925c; }
.history-table td:first-child span, .history-table td small { display: block; color: var(--muted); font-size: 12px; }
.history-table td:not(:first-child) { white-space: nowrap; }
.history-points { font-weight: 800; }
.history-cards { display: none; }
.club-page .profile-overview { margin-bottom: 18px; }
.club-page .summary-strip { margin-bottom: 0; }
.club-data-note { margin: 13px 0 30px; }
.club-points-card > span { text-transform: uppercase; }
.club-points-card > strong { font-variant-numeric: tabular-nums; }
.club-leaders { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.club-leader { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 17px 19px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; background: #fff; }
.club-leader > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.club-leader a, .club-leader strong { font-size: 16px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.club-leader a { color: var(--ink); text-decoration: none; }
.club-leader a:hover { color: var(--accent); text-decoration: underline; }
.club-leader small { color: var(--muted); font-size: 12px; }
.club-events-panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.club-events { list-style: none; margin: 0; padding: 0; }
.club-events li { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.club-events li:last-child { border-bottom: 0; }
.club-events time { color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
.club-events li > div { min-width: 0; }
.club-events strong { display: block; overflow-wrap: anywhere; }
.club-events li > div span { display: block; color: var(--muted); font-size: 13px; }
.club-events small { color: var(--muted); white-space: nowrap; font-size: 12px; }
.rules-page h1 { margin-bottom: 28px; }
.rules-copy { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 30px; max-width: 890px; }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules-list > li { position: relative; padding: 23px 0 23px 42px; border-bottom: 1px solid var(--line); counter-increment: rule; }
.rules-list > li::before { content: counter(rule) "."; position: absolute; left: 0; top: 23px; color: var(--accent); font-weight: 800; font-size: 1.25rem; }
.rules-list > li:last-child { border: 0; }
.rules-copy h2 { font-size: 1.25rem; margin-bottom: 8px; }
.rules-copy p { margin: 0 0 9px; color: #465a66; }
.rules-copy p:last-child { margin: 0; }
.error-state { min-height: 55vh; padding-top: 70px; }
.error-state p { color: var(--muted); }
@media (max-width: 980px) {
  .category-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-overview { grid-template-columns: repeat(2,1fr); }
  .points-grid { grid-template-columns: repeat(2,1fr); }
  .progress-grid { grid-template-columns: repeat(2,1fr); }
  .club-leaders { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .results-scroll { display: none; }
  .history-cards { display: grid; gap: 12px; min-width: 0; }
  .history-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow-wrap: anywhere; }
  .history-card.history-counted { border-left: 4px solid #24925c; background: #e6f6ec; }
  .history-card-head { padding: 14px 16px 11px; border-bottom: 1px solid var(--line); }
  .history-card-head > strong { display: block; font-size: 14px; }
  .history-card-head h3 { margin-top: 4px; font-size: 15px; line-height: 1.35; }
  .history-card dl { margin: 0; padding: 5px 16px 10px; }
  .history-card dl > div { display: grid; grid-template-columns: minmax(80px, 35%) minmax(0, 1fr); gap: 10px; padding: 7px 0; }
  .history-card dt { color: var(--muted); font-size: 12px; }
  .history-card dd { min-width: 0; margin: 0; font-size: 14px; }
  .history-card dd small { display: block; margin-top: 2px; color: var(--muted); }
}
@media (max-width: 660px) {
  .shell { width: min(100% - 30px, 1200px); }
  .nav { min-height: 80px; gap: 12px; }
  .edition { font-size: 12px; max-width: 126px; flex-shrink: 0; text-align: right; }
  .edition-year { margin-left: 4px; padding: 4px 6px; }
  .brand { flex-basis: 200px; }
  .brand-logo { width: 200px; max-height: 60px; }
  .brand-mark { width: 32px; height: 32px; font-size: 25px; }
  .main-content { padding-top: 28px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; }
  .page-heading .intro { font-size: 15px; }
  .season-panel { display: none; }
  .notice { flex-direction: column; gap: 3px; }
  .summary-strip { grid-template-columns: repeat(3,1fr); }
  .summary-strip > div { display: block; padding: 14px 8px; text-align: center; }
  .summary-strip strong { display: block; font-size: 22px; }
  .summary-strip span { display: block; font-size: 11px; line-height: 1.25; margin-top: 4px; }
  .section-head { display: block; padding: 20px 15px; }
  .rule-tag { display: block; margin-top: 9px; white-space: normal; }
  .main-list .rank-row { padding: 10px 13px; gap: 10px; }
  .rank-person strong { font-size: 14px; }
  .rank-person > span { font-size: 12px; }
  .rank-score strong { font-size: 19px; }
  .category-grid.three, .category-grid.two { grid-template-columns: 1fr; }
  .categories { margin-top: 30px; }
  .category-card .rank-row { padding: 10px 16px; }
  .profile-heading { align-items: flex-start; }
  .profile-rank { min-width: 80px; }
  .profile-rank span { max-width: 100px; text-align: right; font-size: 10px; }
  .profile-rank strong { font-size: 30px; }
  .profile-rank small { text-align: right; }
  .profile-overview, .points-grid, .progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-total { grid-column: 1/-1; }
  .stat-tile { padding: 15px; }
  .stat-tile strong { font-size: 30px; }
  .points-card { padding: 16px; }
  .points-card:last-child { grid-column: 1/-1; }
  .points-card > span { font-size: 11px; }
  .points-card > div { font-size: 12px; }
  .progress-grid > div { flex-direction: column; padding: 13px; gap: 3px; }
  .club-leaders { grid-template-columns: 1fr; }
  .club-events li { display: flex; flex-wrap: wrap; gap: 3px 10px; padding: 14px 16px; }
  .club-events time { width: 100%; }
  .club-events li > div { width: 100%; }
  .club-events small { white-space: normal; }
  .site-footer .shell { padding-block: 18px; display: block; }
  .site-footer .shell span { display: block; margin-bottom: 5px; }
  .rules-copy { padding: 8px 17px; }
}
@media (max-width: 360px) {
  .edition { font-size: 0; }
  .edition-year { font-size: 12px; }
  .points-grid { grid-template-columns: 1fr; }
  .points-card:last-child { grid-column: auto; }
}

/* Panel importu */
.admin-shell{padding-top:2.5rem;padding-bottom:4rem}.admin-heading{display:flex;justify-content:space-between;gap:2rem;align-items:start;margin-bottom:1.5rem}.admin-card{background:#fff;border:1px solid #e0e5ea;border-radius:14px;padding:1.5rem;margin:1rem 0}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem}.admin-card label{display:block;font-weight:600;margin:.6rem 0}.admin-card input,.admin-card select{max-width:100%;padding:.55rem;border:1px solid #bdc6d0;border-radius:6px;background:#fff;color:#17232f;font:inherit}.admin-card label input,.admin-card label select{display:block;width:100%;margin-top:.3rem}.admin-card button,.admin-heading button{padding:.7rem 1.1rem;background:#173c54;color:#fff;border:0;border-radius:6px;cursor:pointer;font:inherit}.admin-card button:disabled{opacity:.55;cursor:wait}.admin-scroll{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th,.admin-table td{padding:.45rem;border-bottom:1px solid #e8ecf0;text-align:left;white-space:nowrap}.admin-table input[type=number]{width:5rem}.admin-table td input:not([type=checkbox]),.admin-table td select{min-width:8rem}.admin-table td:nth-child(2) input,.admin-table td:nth-child(3) input{min-width:13rem}.admin-region{max-width:28rem}.admin-competition{border-top:1px solid #e3e7eb;padding:1rem 0}.admin-competition summary{cursor:pointer;margin:1rem 0}.admin-note{color:#506070}.admin-error,.admin-warning{color:#a22526;font-weight:600}#preview{margin-top:1rem}#status{min-height:2rem}

/* Nawigacja, wyszukiwanie i informacje o sezonie. */
.site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-links a { color: #e4eef1; font-size: 14px; font-weight: 650; text-decoration: none; padding-block: 10px; }
.site-links a:hover, .footer-links a:hover { color: #78d1c2; }
.nav-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.season-select { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.season-select select, .season-select button { border: 1px solid #607683; border-radius: 6px; padding: 7px 8px; color: #fff; background: #1d3c4d; font: inherit; }
.season-select select option { background: #1d3c4d; }
.season-select button { cursor: pointer; }
.search-form { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 20px; }
.search-form > label { display: block; font-size: 17px; font-weight: 750; margin-bottom: 12px; }
.search-controls { display: flex; gap: 10px; }
.search-controls input { flex: 1; min-width: 0; width: 100%; border: 1px solid #aebfc7; border-radius: 8px; font: inherit; padding: 12px 14px; background: #f9fbfb; }
.action-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 12px 20px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.action-button:hover { background: #075b56; }
.secondary-button { background: #fff; color: var(--accent); padding: 9px 14px; }
.updates-panel { margin-bottom: 30px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.update-status { display: flex; align-items: center; gap: 12px; padding: 20px 24px; }
.status-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #24925c; }
.update-status h2 { font-size: 16px; margin: 0 0 4px; letter-spacing: normal; }
.update-status p { font-size: 13px; color: var(--muted); margin: 0; }
.update-status > a { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 700; }
.recent-events { background: #f7faf9; border-top: 1px solid var(--line); padding: 18px 24px; }
.recent-events ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.recent-events a { display: block; text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.recent-events a:hover strong { text-decoration: underline; }
.recent-events span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.search-summary { color: var(--muted); }
.search-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.search-results { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.search-results h2 { font-size: 22px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.search-result:hover { background: #eef7f4; }
.search-result small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.search-result-score { font-weight: 750; flex-shrink: 0; text-align: right; }
.event-list { display: grid; gap: 16px; margin-top: 30px; }
.event-card { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.event-card time { color: var(--accent); font-size: 15px; font-weight: 750; flex-shrink: 0; }
.event-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.event-content h2 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.event-content p { font-weight: 600; margin-bottom: 6px; }
.event-content span, .event-content small { display: block; color: var(--muted); font-size: 13px; }
.event-content small { margin-top: 4px; font-size: 12px; }
.contact-page { max-width: 900px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-top: 24px; }
.contact-form label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 18px; }
.contact-form label span { color: var(--muted); font-size: 12px; font-weight: 400; }
.contact-form input:not([type="hidden"]), .contact-form textarea { display: block; width: 100%; padding: 12px; margin-top: 7px; border: 1px solid #aebfc7; border-radius: 8px; font: inherit; background: #f9fbfb; }
.contact-form textarea { resize: vertical; min-height: 180px; }
.form-two-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.contact-form .action-button { margin-top: 18px; }
.form-success, .form-error { padding: 16px 18px; border-radius: 8px; margin-top: 20px; }
.form-success { color: #146b40; background: #e6f6ec; }
.form-error { color: #923a33; background: #ffe7e3; }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.message-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.message-card h2 { font-size: 22px; margin-bottom: 12px; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0; }
.pagination { display: flex; gap: 24px; margin-top: 22px; }
.site-footer .footer-main { align-items: flex-start; padding-block: 32px; }
.footer-main > div > strong { display: block; font-size: 18px; color: #fff; }
.footer-main p { margin: 5px 0 12px; }
.footer-links { display: grid; grid-template-columns: repeat(2,auto); gap: 12px 30px; }
.footer-links a { color: #e4eef1; text-decoration: none; }
.site-footer .footer-bottom { min-height: 60px; border-top: 1px solid #36505e; padding-block: 16px; font-size: 12px; }
@media (max-width: 900px) {
  .site-links { gap: 16px; }
  .brand { flex-basis: 220px; }
  .event-card { flex-wrap: wrap; }
  .event-card time { flex-basis: 100%; }
}
@media (max-width: 660px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .brand { flex: 1 1 0; }
  .nav-tools { margin-left: auto; gap: 4px; }
  .nav-tools .edition { font-size: 10px; }
  .season-select { font-size: 11px; gap: 4px; }
  .season-select select, .season-select button { padding: 6px; }
  .site-links { order: 3; width: 100%; justify-content: center; gap: 28px; border-top: 1px solid #36505e; }
  .site-links a { padding-block: 9px 3px; font-size: 13px; }
  .search-form { padding: 18px 16px; }
  .search-controls { gap: 7px; }
  .search-controls input { font-size: 14px; padding: 12px 10px; }
  .action-button { padding: 12px 15px; }
  .update-status { flex-wrap: wrap; padding: 18px 16px; }
  .update-status > a { flex-basis: 100%; margin: 0 0 0 22px; }
  .recent-events { padding: 18px 16px; }
  .recent-events ol, .search-results-grid, .form-two-cols { grid-template-columns: 1fr; }
  .recent-events ol { gap: 14px; }
  .event-card { display: block; padding: 20px 18px; }
  .event-card time { display: block; margin-bottom: 12px; }
  .contact-form { padding: 20px 16px; }
  .site-footer .footer-main { display: grid; gap: 24px; }
  .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
  .site-footer .footer-bottom { display: grid; gap: 4px; }
  .search-results h2, .search-result { padding-inline: 18px; }
}

/* Podium zawodników i klubów — rzeczywiste miejsca z rankingu sezonu. */
.podium-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; }
.podium-card { min-width: 0; padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.podium-card > .eyebrow, .podium-card > h2 { text-align: center; }
.podium-card > h2 { font-size: 25px; line-height: 1.25; margin: 8px 0 28px; }
.podium-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding: 8px 4px 0; }
.podium-column { min-width: 0; text-align: center; }
.podium-profiles { display: grid; gap: 18px; padding: 0 7px 20px; }
.podium-profile { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.podium-profile > strong { display: block; font-size: 17px; line-height: 1.4; }
.podium-profile:hover > strong { color: var(--accent); text-decoration: underline; }
.podium-profile-note { margin-top: -5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.podium-points { font-size: 28px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.podium-points small { font-size: 12px; font-weight: 400; }
.podium-step { height: 110px; border-top: 8px solid #ecf1f3; background: linear-gradient(110deg, #dce5e8, #a9b8c1); display: flex; align-items: center; justify-content: center; color: #52636d; font-size: 48px; font-weight: 800; text-shadow: 0 1px 0 #ffffff99; box-shadow: inset -9px 0 0 #0000000c, 0 8px 10px #0000000d; }
.podium-place-1 .podium-step { height: 155px; border-color: #ffeab0; background: linear-gradient(110deg, #f7d778, #dfad35); color: #8d6314; }
.podium-place-3 .podium-step { height: 80px; border-color: #f2ceb0; background: linear-gradient(110deg, #e6b18a, #c18b62); color: #825334; }
.podium-base { height: 12px; margin: 0 4px; border-radius: 0 0 5px 5px; background: var(--dark); box-shadow: 0 10px 14px #00000010; }
.podium-ranking-link { display: block; width: fit-content; margin: 24px auto 0; padding: 6px 0; font-size: 13px; font-weight: 650; color: var(--accent); text-decoration: none; }
.podium-ranking-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .podium-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .podium-card { padding: 24px 10px 20px; }
  .podium-card > h2 { font-size: 22px; }
  .podium-profiles { padding-inline: 4px; }
  .podium-profile > strong { font-size: 14px; }
  .podium-profile-note { font-size: 11px; }
  .podium-points { font-size: 24px; }
  .podium-step { height: 90px; font-size: 40px; }
  .podium-place-1 .podium-step { height: 130px; }
  .podium-place-3 .podium-step { height: 65px; }
}

/* Podpis sezonu pod nagłówkami podium (style zewnętrzne zgodne z CSP). */
.podium-card > h2 { margin-bottom: 4px; text-align: center; }
.podium-card > h2 + p { display: block; width: 100%; margin: 0 0 28px; text-align: center; font-size: 12px; line-height: 1.5; letter-spacing: 1px; color: var(--muted); }

/* Stopka: marka, nawigacja i organizator. */
.site-footer { border-top: 3px solid #317d79; }
.site-footer .footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 52px; padding-block: 44px 38px; font-size: 14px; }
.footer-brand, .footer-navigation, .footer-organizer { min-width: 0; }
.footer-logo { display: inline-flex; max-width: 100%; }
.footer-logo img { display: block; width: 235px; max-width: 100%; height: auto; }
.site-footer .footer-main p { margin: 14px 0 0; color: #c5d3d8; line-height: 1.7; }
.site-footer .footer-main h2 { margin: 6px 0 17px; font-size: 15px; line-height: 1.4; font-weight: 700; color: #fff; letter-spacing: .2px; }
.footer-navigation { display: flex; flex-direction: column; align-items: flex-start; }
.footer-navigation > a { padding-block: 5px; color: #c5d3d8; text-decoration: none; }
.footer-navigation > a:hover { color: #8ed8cc; text-decoration: underline; }
.site-footer .footer-main .footer-season { color: #8ed8cc; font-size: 11px; font-weight: 650; letter-spacing: .6px; }
.site-footer .footer-main .footer-organizer-name { margin-top: 0; color: #fff; font-size: 17px; font-weight: 650; }
.site-footer .footer-main .footer-admin-heading { margin-bottom: 8px; font-size: 22px; line-height: 1.35; }
.site-footer .footer-main .footer-navigation > h2 { margin-bottom: 14px; font-size: 22px; line-height: 1.35; }
.site-footer .footer-navigation > a { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; padding: 10px 14px; border: 1px solid #587b83; border-radius: 7px; color: #e4f1ef; font-size: 15px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.site-footer .footer-navigation > a::before { content: "›"; color: #8ed8cc; font-size: 22px; line-height: 1; }
.site-footer .footer-navigation > a:hover { background: #1e4654; border-color: #8ed8cc; color: #fff; text-decoration: none; }
.site-footer .footer-navigation > a:focus-visible { outline: 2px solid #8ed8cc; outline-offset: 3px; }
.site-footer .footer-main .footer-admin-name { margin: 0 0 16px; color: #fff; font-size: 17px; line-height: 1.5; }
.site-footer .footer-organizer > .footer-consent-link { display: inline-block; max-width: 100%; padding-block: 6px; color: #8ed8cc; font-size: 20px; font-weight: 700; line-height: 1.5; text-underline-offset: 4px; }
.site-footer .footer-organizer > .footer-consent-link:hover { color: #fff; }
.site-footer .footer-organizer > .footer-consent-link:focus-visible { outline: 2px solid #8ed8cc; outline-offset: 4px; }
.footer-contact { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 15px; border: 1px solid #587b83; border-radius: 7px; color: #e4f1ef; font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-contact:hover { background: #1e4654; border-color: #8ed8cc; }
.site-footer .footer-main .footer-contact span { display: inline; margin: 0; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 18px; min-height: 64px; color: #a9c0c7; }
.site-footer .footer-bottom p { margin: 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 900px) {
  .site-footer .footer-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px; }
  .footer-brand { grid-column: auto; }
  .site-footer .footer-main h2 { margin-top: 0; }
  .footer-navigation > a { padding-block: 9px; }
  .site-footer .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-block: 20px; }
}
/* Zgody i panel: bez skryptów zewnętrznych, czytelne formularze mobilne. */
.consent-page{max-width:960px}.consent-nav{display:flex;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}.consent-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:1rem 0}.consent-check{display:flex!important;gap:.8rem;align-items:flex-start;font-weight:400!important;line-height:1.65}.consent-check input{width:1.3rem!important;min-width:1.3rem;min-height:1.3rem;margin-top:.3rem!important}.consent-success{background:#e8f5ec;border:1px solid #518765;padding:1rem;border-radius:10px;color:#163e24}.consent-danger{background:#9f2d32!important;color:#fff!important}.consent-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.consent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.consent-grid label{display:block}.consent-grid input,.consent-grid textarea,.consent-grid select,.consent-form input,.consent-form select,.consent-form textarea{display:block;width:100%;max-width:100%;padding:.7rem;margin:.4rem 0;border:1px solid #a9b4be;border-radius:6px;font:inherit;background:#fff;color:#17232f}.consent-form textarea{min-height:100px}.consent-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}.consent-card{overflow-wrap:anywhere}.consent-card summary{cursor:pointer}.consent-card h2{font-size:1.35rem}.consent-form button{margin:.5rem 0}.contact-form select{width:100%;padding:.7rem;font:inherit;border:1px solid #a9b4be;border-radius:6px;background:#fff;color:#17232f}

/* Na telefonach: pięć zawodników przed rozwinięciem listy. */
.ranking-list-mobile { display: none; }
@media (max-width: 660px) {
  .ranking-list-desktop { display: none; }
  .ranking-list-mobile { display: block; }
}

/* Główna klasyfikacja zawodników i klubów w jednej grupie. */
.featured-rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 36px; }
.featured-rankings > section { min-width: 0; margin: 0; }
.featured-rankings .section-head { flex-wrap: wrap; align-items: flex-start; }
.featured-rankings .section-head h2 { font-size: 25px; }
.featured-rankings .rule-tag { white-space: normal; }
.other-rankings-heading { margin: 40px 0 26px; padding-top: 28px; border-top: 2px solid var(--line); font-size: clamp(27px, 4vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: .035em; text-align: center; color: var(--ink); }
@media (max-width: 1000px) { .featured-rankings { grid-template-columns: 1fr; } }
