/* ESC Sportlink components. Visual tokens mirror the ESC design (navy #1A3067, orange #F98132, Barlow / Barlow Condensed);
   shared helpers (.esc-card, .esc-badge, .esc-res, .esc-score, .esc-sn, .esc-pts, .esc-m14) come from the esc-design stylesheet. */

.esc-sl-card { background: #fff; border: 1px solid #E3E7EF; border-radius: 12px; padding: 4px 8px; overflow-x: auto; font-family: "Barlow", sans-serif; box-sizing: border-box; }
.esc-sl-card:has(> .esc-sl-compact) { background: none; border: 0; padding: 0; box-shadow: none; overflow: visible; border-radius: 0; }

.esc-sl-table { width: 100%; border-collapse: collapse; font-family: "Barlow", sans-serif; font-size: 15px; line-height: 1.6; color: #333; }
.esc-sl-card .esc-sl-table, .esc-sl-card .esc-sl-table thead, .esc-sl-card .esc-sl-table tbody, .esc-sl-card .esc-sl-table tr { border: 0; background: none; }
.esc-sl-card .esc-sl-table th, .esc-sl-card .esc-sl-table td { border: 0; border-top: 0; border-left: 0; border-right: 0; }
.esc-sl-card .esc-sl-table tbody tr > td, .esc-sl-card .esc-sl-table tbody tr:nth-child(odd) > td, .esc-sl-card .esc-sl-table tbody tr:hover > td { background: none; }
.esc-sl-card .esc-sl-table tbody tr.us > td, .esc-sl-card .esc-sl-table tbody tr.us:hover > td { background: #FFF3EA; }
.esc-sl-card .esc-sl-table th { border-bottom: 2px solid #1A3067; }
.esc-sl-card .esc-sl-table td { border-bottom: 1px solid #E3E7EF; }
.esc-sl-card .esc-sl-compact tbody tr:last-child td { border-bottom: 0; }
.esc-sl-table th { text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 700; line-height: 1.6; text-transform: uppercase; letter-spacing: .06em; color: #5A6478; border-bottom: 2px solid #1A3067; white-space: nowrap; background: none; }
.esc-sl-table td { padding: 14px 16px; border-bottom: 1px solid #E3E7EF; vertical-align: middle; line-height: 1.6; background: none; }
.esc-sl-table .c { text-align: center; }
.esc-sl-table .nw { white-space: nowrap; }
.esc-sl-table .w120 { width: 120px; } .esc-sl-table .w130 { width: 130px; } .esc-sl-table .w150 { width: 150px; }
.esc-sl-table tr.us td { background: #FFF3EA; font-weight: 700; color: #1A3067; }
.esc-sl-tm { color: #1A3067; }
.esc-sl-compact th { padding: 8px; }
.esc-sl-compact td { padding: 10px 8px; }
.esc-sl-compact tbody tr:last-child td { border-bottom: 0; }

.esc-sl-days { display: flex; flex-direction: column; gap: 32px; }
.esc-sl-dayh, .esc-sl-grouph { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: #1A3067; margin: 0 0 12px; line-height: 1.2; }
.esc-sl-dayh { font-size: 24px; }

.esc-sl-cardbox { padding: 8px 8px 4px; }
.esc-sl-cardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.esc-sl-cardhead .esc-sl-dayh { margin: 0; }

.esc-sl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.esc-sl-chip, a.esc-sl-chip, .esc-sl-chip { -webkit-appearance: none; appearance: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #D5DBE7; background: #fff; color: #333;
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.esc-sl-chip-sm { min-height: 40px; padding: 0 16px; }
button.esc-sl-chip, a.esc-sl-chip { background: #fff; color: #333; border: 1px solid #D5DBE7; }
button.esc-sl-chip:hover, a.esc-sl-chip:hover { background: #F2F5FA; color: #333; border-color: #D5DBE7; }
button.esc-sl-chip.on, a.esc-sl-chip.on, button.esc-sl-chip.on:hover, a.esc-sl-chip.on:hover { background: #1A3067; border-color: #1A3067; color: #fff; }

.esc-sl-filterbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; font-family: "Barlow", sans-serif; }
.esc-sl-ctrls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.esc-sl-select { min-width: 220px; margin: 0; }
.esc-sl-lb { display: block; font-weight: 600; font-size: 15px; line-height: 1.6; color: #1A3067; margin-bottom: 6px; }
.esc-sl-sel { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #8A94A8; border-radius: 8px; font: inherit; font-size: 16px; color: #333; background: #fff; box-sizing: border-box; }
.esc-sl-nav { display: flex; gap: 8px; align-items: center; }
.esc-sl-arrow { display: inline-flex; width: 44px; height: 44px; border-radius: 8px; border: 1px solid #D5DBE7; background: #fff; color: #1A3067; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; }
.esc-sl-arrow:hover { background: #F2F5FA; }
.esc-sl-arrow.off { opacity: .4; }
.esc-sl-period { font-weight: 700; color: #1A3067; min-width: 170px; text-align: center; line-height: 1.6; }

.esc-sl-rcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.esc-sl-rcard { padding: 20px; display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid #E3E7EF; border-radius: 12px; box-sizing: border-box; font-family: "Barlow", sans-serif; }
.esc-sl-rtop { display: flex; justify-content: space-between; align-items: center; }
.esc-sl-rmid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.esc-sl-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.esc-sl-sidename { font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; }
.esc-sl-sidename.own { font-weight: 700; color: #1A3067; }
.esc-sl-bigscore { font-family: "Barlow Condensed", sans-serif; font-size: 42px; font-weight: 700; color: #1A3067; line-height: 1; text-align: center; }
.esc-sl-rbot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #E3E7EF; }
.esc-sl-rmeta { font-size: 14px; color: #5A6478; line-height: 1.6; }
.esc-sl-logo { width: 48px; height: 48px; object-fit: contain; display: block; }
.esc-sl-crest { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: #E8EDF7; color: #1A3067; font-size: 15px; font-weight: 700; }

.esc-sl-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-family: "Barlow", sans-serif; }
.esc-sl-sumi { display: inline-flex; gap: 6px; align-items: center; }
.esc-sl-sumt { font-size: 15px; color: #5A6478; }
.esc-sl-legend { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #5A6478; font-family: "Barlow", sans-serif; }

.esc-sl-group { margin-top: 28px; }
.esc-sl-grouph { font-size: 22px; margin-bottom: 16px; }
.esc-sl-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.esc-sl-player { background: #fff; border: 1px solid #E3E7EF; border-radius: 12px; overflow: hidden; font-family: "Barlow", sans-serif; }
.esc-sl-ptop { aspect-ratio: 1 / 1; background: #E8EDF7; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.esc-sl-ptop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.esc-sl-sil { width: 72%; display: block; }
.esc-sl-sil svg { width: 100% !important; height: auto !important; display: block; }
.esc-sl-pbody { padding: 14px 16px; }
.esc-sl-pname { font-size: 17px; font-weight: 700; color: #1A3067; line-height: 1.25; }
.esc-sl-pmeta { font-size: 14px; color: #5A6478; line-height: 1.6; }

.esc-sl-cancel { font-family: "Barlow", sans-serif; }
.esc-sl-cstrong { margin: 0 0 6px; color: #1A3067; font-size: 16px; line-height: 1.6; }
.esc-sl-cupd { margin: 0; font-size: 14px; color: #5A6478; line-height: 1.6; }
.esc-sl-clist { margin: 0 0 6px; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.esc-sl-empty { margin: 0; padding: 16px 0; color: #5A6478; font-family: "Barlow", sans-serif; font-size: 15px; line-height: 1.6; }

.esc-sl-match { display: flex; flex-direction: column; gap: 24px; font-family: "Barlow", sans-serif; }
.esc-sl-mhead { padding: 24px; text-align: center; }
.esc-sl-mmeta { font-size: 15px; color: #5A6478; line-height: 1.6; }
.esc-sl-minfo { padding: 16px 24px; }
.esc-sl-minfo dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 15px; line-height: 1.6; }
.esc-sl-minfo dt { font-weight: 700; color: #1A3067; }
.esc-sl-minfo dd { margin: 0; }
.esc-sl-lineup { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }

.esc-sl-fields { font-family: "Barlow", sans-serif; }
.esc-sl-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E3E7EF; font-size: 15px; line-height: 1.6; }
.esc-sl-field strong { color: #1A3067; }
.esc-sl-field:last-child { border-bottom: 0; }

/* theme tables (Hello Elementor) add cell borders; the design only has bottom rules */
.esc-sl-table th, .esc-sl-table td { border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.esc-sl-mteams { font-family: "Barlow Condensed", sans-serif; font-size: 36px; font-weight: 700; color: #1A3067; line-height: 1.1; margin: 0 0 8px; }

/* Sportlink player photos are prepared as 3:4 frames; show them whole instead of cropping them into a square. */
.esc-sl-roster.has-photos .esc-sl-ptop { aspect-ratio: 3 / 4; }
.esc-sl-roster.has-photos .esc-sl-ptop img { object-position: center top; }

/* never show a photo larger than its native size */
.esc-sl-roster.has-photos .esc-sl-player { max-width: 300px; }

/* matches: ESC teams bold, opponents regular; results as [home] [logo] score – score [logo] [away] with the score in orange */
.esc-own { font-weight: 700; }
.esc-sl-rl { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; }
.esc-sl-rl-h, .esc-sl-rl-a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.esc-sl-rl-h { justify-content: flex-end; text-align: right; }
.esc-sl-rl-a { justify-content: flex-start; text-align: left; }
.esc-sl-rl-logo { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; display: block; }
.esc-sl-rl-name { line-height: 1.3; overflow-wrap: anywhere; }
.esc-sl-rl-s { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 700; line-height: 1; color: #F98132; white-space: nowrap; text-align: center; min-width: 52px; }
.esc-sl-typebox > .esc-sl-typechips { padding: 12px 16px 4px; }
.esc-sl-cardhead .esc-sl-typechips { flex-basis: 100%; }

.esc-sl-rcard .esc-sl-rmid { display: block; }
.esc-sl-rs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "hn . an" "hl sc al"; column-gap: 10px; row-gap: 12px; align-items: center; justify-items: center; width: 100%; }
.esc-sl-rs-name { font-size: 15px; line-height: 1.25; text-align: center; overflow-wrap: break-word; min-width: 0; max-width: 100%; align-self: start; }
.esc-sl-rs-name:nth-child(1) { grid-area: hn; }
.esc-sl-rs-name:nth-child(2) { grid-area: an; }
.esc-sl-rs-logo { width: 36px; height: 36px; object-fit: contain; display: block; }
.esc-sl-rs > .esc-sl-rs-logo:nth-of-type(1), .esc-sl-rs > :nth-child(3) { grid-area: hl; }
.esc-sl-rs > :nth-child(5) { grid-area: al; }
.esc-sl-rs-score { grid-area: sc; font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 700; line-height: 1; color: #F98132; white-space: nowrap; }
.esc-nw { white-space: nowrap; }
.esc-sl-rcard .esc-sl-rmid { flex: 1 1 auto; display: flex; align-items: center; }
.esc-sl-rs-name { min-height: 2.5em; align-self: end; }
.esc-sl-rcard .esc-sl-rbot { margin-top: auto; }
/* Ruimere tabelrijen */
.esc-sl-card .esc-sl-table td { padding: 20px 16px; }
.esc-sl-card .esc-sl-table th { padding: 14px 16px; }
.esc-sl-table .esc-sl-rl { gap: 28px; }
.esc-sl-table .esc-sl-rl-h, .esc-sl-table .esc-sl-rl-a { gap: 14px; }
.esc-sl-table .esc-sl-rl-logo { width: 32px; height: 32px; }
.esc-sl-table .esc-sl-rl-name { font-size: 14px; line-height: 1.3; }
.esc-sl-table .esc-sl-rl-s { font-size: 22px; min-width: 56px; }
@media (max-width: 640px) {
  .esc-sl-card .esc-sl-table td { padding: 16px 12px; }
  .esc-sl-table .esc-sl-rl { gap: 12px; }
  .esc-sl-table .esc-sl-rl-h, .esc-sl-table .esc-sl-rl-a { gap: 8px; }
  .esc-sl-table .esc-sl-rl-logo { width: 28px; height: 28px; }
  .esc-sl-table .esc-sl-rl-name { font-size: 13px; }
  .esc-sl-table .esc-sl-rl-s { font-size: 20px; min-width: 44px; }
}
.esc-sl-table .esc-sl-rl-vs { gap: 16px; }
.esc-sl-table .esc-sl-rl-vs .esc-sl-rl-s { font-family: "Barlow", sans-serif; font-size: 14px; font-weight: 400; color: #5A6478; min-width: 12px; }
.esc-sl-table .esc-sl-rl-vs .esc-sl-rl-name { font-size: 14px; }
@media (max-width: 640px) { .esc-sl-table .esc-sl-rl-vs { gap: 8px; } }
.esc-sl-rl-name { overflow-wrap: break-word; }
.esc-sl-card .esc-sl-table th, .esc-sl-card .esc-sl-table td { padding-left: 12px; padding-right: 12px; }
.esc-sl-table .esc-sl-rl-vs { gap: 10px; }
.esc-sl-table .esc-sl-rl-vs .esc-sl-rl-h, .esc-sl-table .esc-sl-rl-vs .esc-sl-rl-a { gap: 8px; }
.esc-sl-table .esc-sl-rl-vs .esc-sl-rl-logo { width: 28px; height: 28px; }
.esc-sl-dayh, h3.esc-sl-dayh { color: #F98132; }
.esc-sl-table .esc-own { color: #1A3067; }
.esc-sl-table tr td.esc-date { font-weight: 700; color: #1A3067; }
.esc-sl-table tr td.esc-time { font-weight: 700; color: #F98132; }
.esc-sl-table .esc-opp { font-weight: 700; color: #8A94A8; }
.esc-sl-table .esc-sl-rl-vs .esc-sl-rl-s { font-weight: 700; color: #5A6478; }
/* Compactere tabellen */
.esc-sl-table { font-size: 14px; }
.esc-sl-table th { font-size: 12px; }
.esc-sl-card .esc-sl-table th, .esc-sl-card .esc-sl-table td { padding-left: 10px; padding-right: 10px; }
.esc-sl-card .esc-sl-table td { padding-top: 16px; padding-bottom: 16px; }
.esc-sl-table .esc-sl-rl-name, .esc-sl-table .esc-sl-rl-vs .esc-sl-rl-name { font-size: 13px; }
.esc-sl-table .esc-sl-rl-s { font-size: 20px; min-width: 48px; }
.esc-sl-table .esc-sl-rl { gap: 18px; }
.esc-sl-table .esc-sl-rl-vs { gap: 10px; }
.esc-sl-table .esc-sl-rl-h, .esc-sl-table .esc-sl-rl-a { gap: 10px; }
.esc-sl-table .esc-sl-rl-logo { width: 28px; height: 28px; }
.esc-sl-table .esc-badge { font-size: 12px; }
@media (max-width: 640px) {
  .esc-sl-table { font-size: 13px; }
  .esc-sl-table .esc-sl-rl-name, .esc-sl-table .esc-sl-rl-vs .esc-sl-rl-name { font-size: 12px; }
  .esc-sl-table .esc-sl-rl-s { font-size: 18px; min-width: 40px; }
  .esc-sl-table .esc-sl-rl-logo { width: 24px; height: 24px; }
}
/* Programmakaart op de homepage: tijd blauw */
.esc-sl-progcard .esc-sl-table tr td.esc-time { color: #1A3067; }
/* Teamnamen van ESC linken naar de teampagina */
a.esc-teamlink, a.esc-teamlink:visited { color: inherit; text-decoration: none; display: contents; }
a.esc-teamlink:hover .esc-own, a.esc-teamlink:focus .esc-own { text-decoration: underline; text-underline-offset: 3px; }
