/* GP Series public views. Uses the theme's colour tokens (--kcc-*). */
.kcc-gp { --gp-line: #DDD7E8; color: var(--kcc-purple, #271E50); }
.kcc-gp a { color: inherit; }
.kcc-gp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; scroll-margin-top: 90px; }
.kcc-gp-tabs a { padding: 10px 16px; font-weight: 700; text-decoration: none; background: var(--kcc-tint, #EEEAF4); }
.kcc-gp-tabs a[aria-current] { background: var(--kcc-purple, #271E50); color: var(--kcc-yellow, #FDE53A); }
.kcc-gp-season { margin: 0 0 16px; }
.kcc-gp-season label { font-weight: 700; }
.kcc-gp-season select { margin-left: 8px; padding: 8px 10px; font: inherit; border: 2px solid var(--gp-line); background: #fff; }
.kcc-gp-h { font-size: 28px; line-height: 1.15; margin: 8px 0 4px; }
.kcc-gp .kcc-gp-h3 { font-size: 14px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; margin: 28px 0 10px !important; color: var(--kcc-indigo, #4B0082); }
.kcc-gp-h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--kcc-purple, #271E50); }
.kcc-gp-meta { margin: 0 0 12px; font-size: 16px; }
.kcc-gp-report { max-width: 680px; font-size: 17px; line-height: 1.6; }
.kcc-gp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px !important; }
.kcc-gp-cats a { padding: 4px 10px; font-size: 14px; font-weight: 700; text-decoration: none; border: 2px solid var(--gp-line); }
.kcc-gp .kcc-gp-cats a[aria-current] { border-color: var(--kcc-purple, #271E50); background: var(--kcc-purple, #271E50); color: #fff !important; }
.kcc-gp .kcc-gp-tabs a[aria-current] { color: var(--kcc-yellow, #FDE53A); }

.kcc-gp-table { overflow-x: auto; margin: 0 0 8px; }
.kcc-gp-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.kcc-gp-table th { background: var(--kcc-purple, #271E50); color: #fff; text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 10px; }
.kcc-gp-table td { padding: 10px; border-top: 1px solid var(--gp-line); vertical-align: top; }
.kcc-gp-table .n { text-align: right; white-space: nowrap; }
.kcc-gp-table .t { font-variant-numeric: tabular-nums; }
.kcc-gp-table small { display: block; font-size: 13px; opacity: .75; }
.kcc-gp-table tbody tr:nth-child(odd) td { background: rgba(238, 234, 244, .45); }

.kcc-gp-events { list-style: none; padding: 0; margin: 0; }
.kcc-gp-events li { border-top: 2px solid var(--gp-line); }
.kcc-gp-events a { display: grid; grid-template-columns: 110px 1fr; gap: 2px 12px; padding: 14px 0; text-decoration: none; }
.kcc-gp-events strong { font-size: 18px; }
.kcc-gp-date { grid-row: span 2; font-weight: 700; color: var(--kcc-indigo, #4B0082); }
.kcc-gp-back { font-weight: 700; }

@media (max-width: 600px) {
  .kcc-gp-league th:nth-child(4), .kcc-gp-league td:nth-child(4) { display: none; }
  .kcc-gp-table table { font-size: 15px; }
  .kcc-gp-table td, .kcc-gp-table th { padding: 8px 6px; }
  .kcc-gp-events a { grid-template-columns: 1fr; }
  .kcc-gp-date { grid-row: auto; }
}
.kcc-gp .kcc-gp-table td:nth-child(3) { white-space: nowrap; }

/* links that look like links */
.kcc-gp { scroll-margin-top: 100px; }
.kcc-gp .kcc-gp-table td a, .kcc-gp .kcc-gp-vols a, .kcc-gp .kcc-gp-crumbs a, .kcc-gp .kcc-gp-table th a {
  color: var(--kcc-indigo, #4B0082) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kcc-gp .kcc-gp-table td a:hover, .kcc-gp .kcc-gp-vols a:hover, .kcc-gp .kcc-gp-crumbs a:hover { text-decoration-thickness: 2px; }
.kcc-gp-crumbs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 8px !important; font-weight: 700; font-size: 15px; }
.kcc-gp-crumbs a { text-decoration: none !important; }

/* event list */
.kcc-gp-events a { grid-template-columns: 110px 1fr auto; }
.kcc-gp-events a:hover strong { text-decoration: underline; }
.kcc-gp-events .kcc-gp-sub { grid-column: 2; font-size: 15px; opacity: .8; }
.kcc-gp-events .kcc-gp-go { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 14px; font-weight: 700; color: var(--kcc-indigo, #4B0082); white-space: nowrap; }

/* icons in result rows: inline so every row is one line high */
.kcc-gp-ics { white-space: nowrap; }
.kcc-gp-ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-left: 2px; color: var(--kcc-indigo, #4B0082); }
.kcc-gp-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kcc-gp-ic--ebike svg, .kcc-gp-ic--vol svg { fill: currentColor; stroke: none; }
.kcc-gp-ic--vol { color: var(--kcc-pink, #E8408A); width: 14px; height: 14px; vertical-align: -1px; }
.kcc-gp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 4px 0 12px !important; }
.kcc-gp-note { font-size: 14px; opacity: .8; margin: 0 0 12px !important; }
.kcc-gp-vols { font-size: 16px; line-height: 1.7; max-width: 760px; }
.kcc-gp-tag { display: inline-block; min-width: 20px; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; background: var(--kcc-tint, #EEEAF4); color: var(--kcc-purple, #271E50); vertical-align: 1px; }
.kcc-gp-table td.c { white-space: nowrap; }

/* table / every-event switch */
.kcc-gp-switch { display: inline-flex; margin: 0 0 12px; border: 2px solid var(--kcc-purple, #271E50); }
.kcc-gp-switch a { padding: 6px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.kcc-gp .kcc-gp-switch a[aria-current] { background: var(--kcc-purple, #271E50); color: #fff !important; }

/* points at every event */
.kcc-gp-grid table { font-size: 15px; }
.kcc-gp-grid th small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; opacity: .8; white-space: nowrap; }
.kcc-gp-grid th a { color: #fff !important; }
.kcc-gp-grid td, .kcc-gp-grid th { padding: 8px 6px; }
.kcc-gp-grid td:nth-child(2) { white-space: nowrap; }
.kcc-gp-grid td:nth-child(2) .kcc-gp-tag { margin-left: 4px; }
.kcc-gp-grid .in { font-weight: 700; }
.kcc-gp-grid .out { opacity: .45; }
@media (max-width: 600px) {
  .kcc-gp-events a { grid-template-columns: 1fr; }
  .kcc-gp-events .kcc-gp-sub, .kcc-gp-events .kcc-gp-go { grid-column: 1; grid-row: auto; }
}
.kcc-gp-rules { margin: 0 0 8px; padding-left: 20px; max-width: 760px; }
.kcc-gp-rules li { margin: 4px 0; font-size: 17px; line-height: 1.5; }
.kcc-gp-rulestext h2 { font-size: 22px; margin: 28px 0 10px; }
.kcc-gp-rulestext ol, .kcc-gp-rulestext ul { padding-left: 22px; }
.kcc-gp-rulestext li { margin: 6px 0; }
.kcc-gp-rulestext blockquote { margin: 12px 0; padding-left: 16px; border-left: 4px solid var(--kcc-yellow, #FDE53A); }
.kcc-gp .kcc-gp-edit { font-size: 14px; font-weight: 700; color: var(--kcc-indigo, #4B0082) !important; }

/* results: event picker and season at a glance */
.kcc-gp-picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 4px 0 16px; padding: 10px 12px; background: var(--kcc-tint, #EEEAF4); }
.kcc-gp-picker select { max-width: 100%; padding: 8px 10px; font: inherit; font-weight: 700; border: 2px solid var(--kcc-purple, #271E50); background: #fff; color: var(--kcc-purple, #271E50); }
.kcc-gp .kcc-gp-picker a { font-weight: 700; text-decoration: none; color: var(--kcc-indigo, #4B0082) !important; white-space: nowrap; }
.kcc-gp-next { text-align: right; }
.kcc-gp-picker form { margin: 0; }
.kcc-gp-glance tr.is-current td { background: #FFF6B8 !important; font-weight: 700; }
.kcc-gp-glance td .t { font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .8; }
@media (max-width: 600px) {
  .kcc-gp-picker { grid-template-columns: 1fr 1fr; }
  .kcc-gp-picker form { grid-column: 1 / -1; grid-row: 1; }
  .kcc-gp-picker select { width: 100%; }
  /* at a glance: one block per event on phones */
  .kcc-gp-glance table, .kcc-gp-glance tbody, .kcc-gp-glance tr, .kcc-gp-glance td { display: block; width: 100%; }
  .kcc-gp-glance thead { display: none; }
  .kcc-gp-glance tr { padding: 10px 0; border-top: 1px solid var(--gp-line); }
  .kcc-gp-glance td { border: 0 !important; padding: 2px 8px !important; background: none !important; text-align: left !important; }
  .kcc-gp-glance td:nth-child(1), .kcc-gp-glance td:nth-child(2) { display: inline; width: auto; font-weight: 700; }
  .kcc-gp-glance td:nth-child(3)::before, .kcc-gp-glance td:nth-child(4)::before { content: attr(data-label) ": "; opacity: .7; }
  .kcc-gp-glance td:nth-child(5) { display: none; }
  .kcc-gp-glance tr.is-current { background: #FFF6B8; }
}

/* league leaders on the Results tab */
.kcc-gp-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.kcc-gp-leader { background: var(--kcc-tint, #EEEAF4); padding: 14px 16px; }
.kcc-gp-leader h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.kcc-gp-leader ol { list-style: none; margin: 0; padding: 0; }
.kcc-gp-leader li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--gp-line); }
.kcc-gp-leader li:first-child { border-top: 0; }
.kcc-gp-leader .p { font-weight: 700; color: var(--kcc-indigo, #4B0082); }
.kcc-gp-leader .c { font-size: 13px; opacity: .75; }
.kcc-gp .kcc-gp-leader a { color: var(--kcc-indigo, #4B0082) !important; text-decoration: underline; text-underline-offset: 3px; }
.kcc-gp-more { margin: 8px 0 0 !important; font-weight: 700; }
.kcc-gp .kcc-gp-more a { color: var(--kcc-indigo, #4B0082) !important; text-decoration: none; }
.kcc-gp-earlier { margin: 20px 0 0 !important; font-size: 16px; }
.kcc-gp .kcc-gp-earlier a { color: var(--kcc-indigo, #4B0082) !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.kcc-gp-archive { max-width: 640px; margin-bottom: 8px !important; }
.kcc-gp h3[id^="gp-"] { scroll-margin-top: 100px; }
