/* RCS AllUnited v2.00 */
/* Apply to both table.rcs-au and tables inside .rcs-au wrapper */
.rcs-au table, table.rcs-au{border-collapse:separate;border-spacing:0;width:100%;}
/* Outer border only in RCS blue */
.rcs-au table th, .rcs-au table td, table.rcs-au th, table.rcs-au td{padding:8px 10px;border:none;}
/* Header styling */
.rcs-au table thead th, table.rcs-au thead th{background:#005599;color:#fff;font-weight:700;}
/* Simple embed */
.rcs-au-embed{position:relative;padding-top:62.5%;}
.rcs-au-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
/* Results table wrapping */
.rcs-au-results-table td, .rcs-au-results-table th{white-space:nowrap;}
.rcs-au-results-table td:nth-child(2), .rcs-au-results-table th:nth-child(2){white-space:normal;}
/* Notices */
.rcs-au.notice{border:1px solid #ddd;padding:10px;border-left:4px solid #005599;background:#f8fbff;margin:10px 0;}


/* Outer border only — 1px with rounded corners */
.rcs-au table, table.rcs-au{
  border:1px solid #005599 !important;
  border-radius:10px;
  overflow:hidden; /* clip inner corners */
}
/* Remove inner borders explicitly */
.rcs-au table th, .rcs-au table td, table.rcs-au th, table.rcs-au td{ border:none !important; }
/* Keep header and date styles from earlier */
.rcs-au table thead th, table.rcs-au thead th{ background:#005599; color:#fff; }
/* (replaced) */


/* Mobile compact fallback based on positions: show # (1), Team (2), Points (last) */
@media (max-width: 768px){
  table.rcs-au-standings th, 
  table.rcs-au-standings td{ display:none; }
  table.rcs-au-standings thead th:nth-child(1),
  table.rcs-au-standings tbody td:nth-child(1),
  table.rcs-au-standings thead th:nth-child(2),
  table.rcs-au-standings tbody td:nth-child(2),
  table.rcs-au-standings td{ padding:6px 8px; }
  table.rcs-au-standings{ font-size:14px; }
}
/* Mobile compact fallback tweak: show 1st (#), 2nd (Team), and 7th (Pnt) columns */
@media (max-width: 768px){
  table.rcs-au-standings th, 
  table.rcs-au-standings td{ display:none; }
  table.rcs-au-standings thead th:nth-child(1),
  table.rcs-au-standings tbody td:nth-child(1),
  table.rcs-au-standings thead th:nth-child(2),
  table.rcs-au-standings tbody td:nth-child(2),
  table.rcs-au-standings thead th:nth-child(7),
  table.rcs-au-standings tbody td:nth-child(7){ display:table-cell; }
  table.rcs-au-standings td{ padding:6px 8px; }
  table.rcs-au-standings{ font-size:14px; }
}

/* Club team emphasis */
.rcs-au tr.rcs-au-clubteam td,
.rcs-au tr.rcs-au-clubteam th,
.rcs-au .rcs-au-clubteam .team { font-weight: 700; }

/* Club logos and home alignment */
.rcs-au td.rcs-au-home, table.rcs-au td.rcs-au-home { text-align:right; }
.rcs-au img { vertical-align:middle; }
.rcs-au-standings td img, .rcs-au-results-table td img { margin:0 6px; border-radius:4px; }


/* v2.40: Normalize mobile font size on phones */
@media (max-width: 768px){
  .rcs-au, .rcs-au table, .rcs-au td, .rcs-au th, .rcs-au .rcs-au-standings, .rcs-au .rcs-au-results {
    font-size: 16px !important;
    line-height: 1.3;
  }
}

/* v2.41.1: thicker, centered dash between logos */
.rcs-au-results-table .rcs-au-home{ position: relative; text-align:right; }
.rcs-au-results-table .rcs-au-home img{ margin-left: .5rem; vertical-align: middle; }
.rcs-au-results-table .rcs-au-away img{ margin-right: .5rem; vertical-align: middle; }
.rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{
  position: absolute;
  top: 50%;
  right: -0.75rem;
  transform: translate(50%, -50%);
  display: inline-block;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

/* v2.41.2: make dash truly between logos by hugging borders */
.rcs-au-results-table .rcs-au-home{ position: relative; text-align:right; }
.rcs-au-results-table .rcs-au-home img{ margin-left: 0; vertical-align: middle; }
.rcs-au-results-table .rcs-au-away img{ margin-right: 0; vertical-align: middle; }
.rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{
  right: 0;                 /* exactly on the column border */
  transform: translate(50%, -50%);
}

/* v2.41.3: balanced spacing between team text and logos */
.rcs-au-results-table .rcs-au-home img{ margin-left: .5rem; vertical-align: middle; }
.rcs-au-results-table .rcs-au-away img{ margin-right: .5rem; vertical-align: middle; }

/* v2.44: responsive results on phones */
@media (max-width: 768px){
  .rcs-au-results-table{ table-layout: fixed; width: 100%; }
  .rcs-au-results-table th, .rcs-au-results-table td{ padding: 6px 8px; }
  .rcs-au-results-table .rcs-au-col-time,
  .rcs-au-results-table .rcs-au-col-park{ display: none; }
  /* Keep key columns */
  .rcs-au-results-table .rcs-au-col-home{ width: 44%; text-align: right; }
  .rcs-au-results-table .rcs-au-col-score{ width: 12%; text-align: center; }
  .rcs-au-results-table .rcs-au-col-away{ width: 44%; text-align: left; }
  /* Make the separator stay centered even with hidden cols */
  .rcs-au-results-table .rcs-au-home{ position: relative; }
  .rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{ right: 0; transform: translate(50%, -50%); }
}

/* v2.45: stack home & away under each other on phones */
@media (max-width: 768px){
  /* Hide original table away column; use stacked clone in home cell */
  .rcs-au-results-table .rcs-au-col-away{ display:none; }
  .rcs-au-results-table .rcs-au-col-home{ width: 70%; }
  .rcs-au-results-table .rcs-au-col-score{ width: 30%; text-align:center; }

  /* Show stacked version; hide desktop-only content */
  .rcs-au-results-table .rcs-au-desktop-only{ display:none !important; }
  .rcs-au-results-table .rcs-au-mobile-only{ display:block !important; }

  .rcs-au-mobile-stack{ display:block; }
  .rcs-au-mobile-stack .rcs-au-mhome{ text-align:right; }
  .rcs-au-mobile-stack .rcs-au-maway{ text-align:left; margin-top:2px; }

  /* Keep logos aligned and spaced */
  .rcs-au-mobile-stack .rcs-au-mhome img{ margin-left:.5rem; vertical-align:middle; }
  .rcs-au-mobile-stack .rcs-au-maway img{ margin-right:.5rem; vertical-align:middle; }
  /* Center the dash between logos still on the home cell */
  .rcs-au-results-table .rcs-au-home{ position: relative; }
  .rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{ right: 0; transform: translate(50%, -50%); }
}

/* Default visibility */
.rcs-au-results-table .rcs-au-mobile-only{ display:none; }

/* v2.46: hide Sportpark on phones; ensure Away column hidden (th & td) */
@media (max-width: 768px){
  .rcs-au-results-table th.rcs-au-col-park,
  .rcs-au-results-table td.rcs-au-col-park{ display:none !important; }
  .rcs-au-results-table th.rcs-au-col-away,
  .rcs-au-results-table td.rcs-au-col-away{ display:none !important; }
}

/* v2.46.1: force-hide Sportpark (col 2) and Gasten (col 4) on phones with nth-child + !important */
@media (max-width: 768px){
  .rcs-au-results-table thead tr > th:nth-child(2),
  .rcs-au-results-table tbody tr > td:nth-child(2),
  .rcs-au-results-table thead tr > th:nth-child(4),
  .rcs-au-results-table tbody tr > td:nth-child(4){
    display: none !important;
  }
}

/* v2.47: mobile card layout + hide header */
@media (max-width: 768px){
  .rcs-au-results-table thead{ display:none !important; }
  /* Hide columns: time, park, away, score — we render our own */
  .rcs-au-results-table .rcs-au-col-time,
  .rcs-au-results-table .rcs-au-col-park,
  .rcs-au-results-table .rcs-au-col-away,
  .rcs-au-results-table .rcs-au-col-score{ display: none !important; }
  /* Only show content inside the home column */
  .rcs-au-results-table .rcs-au-desktop-only{ display:none !important; }
  .rcs-au-results-table .rcs-au-mobile-only{ display:block !important; }

  /* Mobile card layout */
  .rcs-au-mobile-card{ padding:6px 0; }
  .rcs-au-mobile-card .rcs-au-mrow{
    display:grid;
    grid-template-columns: 62px 1fr 56px;
    align-items:center;
    gap:8px;
  }
  .rcs-au-mobile-card .m-team.m-home{ text-align:right; }
  .rcs-au-mobile-card .m-team.m-away{ text-align:left; }
  .rcs-au-mobile-card .m-team.m-home img{ margin-left:.5rem; vertical-align:middle; }
  .rcs-au-mobile-card .m-team.m-away img{ margin-right:.5rem; vertical-align:middle; }

  /* Date row as a divider */
  .rcs-au-results-table tr.rcs-au-date td{
    display:block;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding:8px 0;
    font-weight:700;
    text-align:center;
  }

  /* Hide old separator dash in mobile stacked layout */
  .rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{ display:none !important; }
}

/* v2.48: mobile tweaks per spec */
@media (max-width: 768px){
  /* Hide table header on phones */
  .rcs-au-results-table thead{ display:none !important; }

  /* Mobile card grid: smaller time, last column reserved for stacked score */
  .rcs-au-mobile-card{ padding:6px 0; position:relative; }
  .rcs-au-mobile-card .rcs-au-mrow{
    display:grid;
    grid-template-columns: 48px 1fr; /* time smaller */
    align-items:center;
    gap:8px;
  }
  /* Place the stacked score column to the right spanning both rows */
  .rcs-au-mobile-card .m-score-col{
    position:absolute; 
    right:0; top:0; bottom:0;
    width:56px; 
    display:flex; 
    flex-direction:column; 
    justify-content:center; 
    align-items:center;
    text-align:center;
  }

  /* Teams: logo on the left for BOTH */
  .rcs-au-mobile-card .m-team.m-home img,
  .rcs-au-mobile-card .m-team.m-away img{ margin-right:.5rem; vertical-align:middle; }

  /* Date row full width with lines */
  .rcs-au-results-table tr.rcs-au-date td{
    display:block;
    width:100%;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding:8px 0;
    font-weight:700;
    text-align:center;
  }

  /* Hide old separator dash in mobile stacked layout */
  .rcs-au-results-table .rcs-au-home .rcs-au-logo-sep{ display:none !important; }
}

/* v2.49: alternative mobile rendering using separate list */
@media (max-width: 768px){
  /* Hide the original table entirely */
  .rcs-au-results-table{ display:none !important; }

  /* Mobile list + cards */
  .rcs-au-mobile-list{ display:block; width:100%; }
  .rcs-au-mdate{
    display:block;
    width:100%;
    border-top:2px solid #ccc;
    border-bottom:2px solid #ccc;
    padding:8px 0;
    font-weight:700;
    text-align:center;
    margin:6px 0;
  }
  .rcs-au-mobile-card{
    display:grid;
    grid-template-columns: 56px 1fr 56px; /* time small, score last col */
    gap:8px;
    align-items:center;
    padding:6px 0;
    border-bottom:1px dashed #ddd;
  }
  .rcs-au-mobile-card .rcs-au-mrow{
    grid-column: 1 / span 2; /* rows occupy time + team cols */
    display:grid;
    grid-template-columns: 56px 1fr;
    align-items:center;
    gap:8px;
  }
  .rcs-au-mobile-card .m-time{ font-variant-numeric: tabular-nums; opacity:.8; }
  .rcs-au-mobile-card .m-team.m-home,
  .rcs-au-mobile-card .m-team.m-away{ display:flex; align-items:center; }
  .rcs-au-mobile-card .m-team img{ margin-right:.5rem; height:32px; width:32px; object-fit:contain; }

  /* Score column stacked on the right */
  .rcs-au-mobile-card .m-score-col{
    grid-column: 3;
    display:flex; flex-direction:column;
    justify-content:center; align-items:center;
    text-align:center;
  }
  .rcs-au-mobile-card .m-score{ font-weight:700; line-height:1.1; }
}

/* v2.49.1: fix date dividers and score/time placement */
@media (max-width: 768px){
  .rcs-au-mobile-list{ display:block; width:100%; }
  .rcs-au-mdate{
    display:block;
    width:100%;
    border-top:2px solid #ccc;
    border-bottom:2px solid #ccc;
    padding:8px 0;
    font-weight:700;
    text-align:center;
    margin:6px 0;
  }
  .rcs-au-mobile-card{
    display:grid;
    grid-template-columns: 48px 1fr 56px;
    align-items:center;
    gap:8px;
    padding:6px 0;
    border-bottom:1px dashed #e0e0e0;
  }
  .rcs-au-mobile-card .mc-left{ grid-column:1; }
  .rcs-au-mobile-card .mc-mid{ grid-column:2; display:flex; flex-direction:column; gap:2px; }
  .rcs-au-mobile-card .mc-right{ grid-column:3; display:flex; flex-direction:column; align-items:center; gap:2px; }
  .rcs-au-mobile-card .m-time{ font-variant-numeric: tabular-nums; opacity:.85; }
  .rcs-au-mobile-card .m-team{ display:flex; align-items:center; }
  .rcs-au-mobile-card .m-team img{ margin-right:.5rem; height:32px; width:32px; object-fit:contain; }
  .rcs-au-mobile-card .m-score{ font-weight:700; line-height:1.1; }
}

/* v2.49.2: robust date visibility and clear score column */
@media (max-width: 768px){
  .rcs-au-mobile-list{ display:block; width:100%; }
  .rcs-au-mdate{
    display:block !important;
    width:100% !important;
    border-top:2px solid #ccc;
    border-bottom:2px solid #ccc;
    padding:8px 0;
    font-weight:700;
    text-align:center;
    margin:8px 0 6px;
  }
  .rcs-au-mobile-card{
    display:grid;
    grid-template-columns: 48px 1fr 56px; /* time | teams | uitslag */
    align-items:center;
    gap:8px;
    padding:6px 0;
    border-bottom:1px dashed #e0e0e0;
  }
  .rcs-au-mobile-card .mc-left{ grid-column:1; }
  .rcs-au-mobile-card .mc-mid{ grid-column:2; display:flex; flex-direction:column; gap:2px; }
  .rcs-au-mobile-card .mc-right{ grid-column:3; display:flex; flex-direction:column; align-items:center; gap:2px; }
  .rcs-au-mobile-card .m-time{ font-variant-numeric: tabular-nums; opacity:.85; white-space:nowrap; }
  .rcs-au-mobile-card .m-team{ display:flex; align-items:center; }
  .rcs-au-mobile-card .m-team img{ margin-right:.5rem; height:32px; width:32px; object-fit:contain; }
  .rcs-au-mobile-card .mc-right .m-score{ font-weight:700; line-height:1.1; }
  /* Ensure no stray time text appears in right column */
  .rcs-au-mobile-card .mc-right .m-time{ display:none !important; }
}

/* v2.49.3: enforce mobile date row visibility */
@media (max-width: 768px){
  .rcs-au-mobile-list{ display:block !important; width:100% !important; }
  .rcs-au-mdate{
    display:block !important;
    width:100% !important;
    padding:8px 0;
    margin:10px 0 6px;
    font-weight:700;
    text-align:center;
    border-top:2px solid #ccc;
    border-bottom:2px solid #ccc;
    background: transparent;
  }
}

/* v2.49.4: force show date on phones */
@media (max-width: 768px){
  .rcs-au-mobile-list{ display:block !important; width:100% !important; }
  .rcs-au-mdate{
    display:block !important;
    width:100% !important;
    padding:8px 0;
    margin:12px 0 6px;
    font-weight:700;
    text-align:center;
    border-top:2px solid #ccc;
    border-bottom:2px solid #ccc;
  }
}

/* v2.49.5: Mobile list styled like normal table */
@media (max-width: 768px){
  /* Outer table look */
  .rcs-au-mobile-list{
    border: 1px solid #005599;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  /* Date row like header */
  .rcs-au-mdate{
    background: #005599;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 10px 12px;
    margin: 0;                 /* integrate inside "table" */
    border: none;              /* borders handled by outer box */
    border-bottom: 1px solid #005599;
  }

  /* Rows look like table rows with separators */
  .rcs-au-mobile-card{
    padding: 8px 12px;
    border-bottom: 1px solid #005599;
    display: grid;
    grid-template-columns: 48px 1fr 56px; /* time | team | uitslag */
    gap: 8px;
    align-items: center;
  }
  /* No border on last row before next date */
  .rcs-au-mobile-card:last-child{ border-bottom: 0; }

  /* Team + logos */
  .rcs-au-mobile-card .m-team{ display:flex; align-items:center; }
  .rcs-au-mobile-card .m-team img{ margin-right:.5rem; height:32px; width:32px; object-fit:contain; }

  /* Time & Score formatting consistent */
  .rcs-au-mobile-card .m-time{ font-variant-numeric: tabular-nums; opacity:.9; white-space:nowrap; }
  .rcs-au-mobile-card .m-score{ font-weight:700; line-height:1.1; }

  /* Right score column stacked & centered */
  .rcs-au-mobile-card .mc-right{ display:flex; flex-direction:column; align-items:center; gap:2px; }

  /* Remove dashed borders from earlier versions */
  .rcs-au-mobile-card{ border-bottom-style: solid; }
}

/* v2.49.6: date row no borders, stacked team alignment, zebra rows */
@media (max-width: 768px){
  /* 1) Date row: no borders */
  .rcs-au-mdate{
    border: none !important;
    margin: 0;           /* integrate seamlessly with outer border */
    padding: 10px 12px;
  }

  /* 2) Teams stacked neatly under each other */
  .rcs-au-mobile-card .mc-mid{
    display: flex;
    flex-direction: column;
    gap: 0;              /* remove extra gap */
  }
  .rcs-au-mobile-card .m-team{ display:flex; align-items:center; }
  .rcs-au-mobile-card .m-team img{ margin-right:.5rem; height:32px; width:32px; object-fit:contain; }

  /* 3) Zebra rows */
  .rcs-au-mobile-list .rcs-au-mobile-card.zebra-even{ background: #f7f7f7; }
  .rcs-au-mobile-list .rcs-au-mobile-card.zebra-odd{ background: #ffffff; }
}

/* v2.49.7: smaller time text/column + strict left alignment for teams */
@media (max-width: 768px){
  /* Narrower time column + keep score width */
  .rcs-au-mobile-card{
    grid-template-columns: 40px 1fr 56px; /* time | teams | uitslag */
  }
  /* Smaller time text */
  .rcs-au-mobile-card .m-time{
    font-size: 12px;
    opacity: .85;
  }
  /* Teams perfectly left-aligned, one above the other */
  .rcs-au-mobile-card .mc-mid{
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .rcs-au-mobile-card .m-team{
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
  .rcs-au-mobile-card .m-team img{
    margin-right: .5rem;
    height: 32px; width: 32px; object-fit: contain;
  }
}

/* v2.49.8: nudge home team slightly further left on mobile */
@media (max-width: 768px){
  /* Subtle left shift only for home line to reduce indent next to the time column */
  .rcs-au-mobile-card .m-team.m-home{
    margin-left: -4px;   /* small nudge left */
  }
}

/* v2.49.9: push home further left, away slightly right (mobile) */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team.m-home{ margin-left: -8px; }  /* was -4px */
  .rcs-au-mobile-card .m-team.m-away{ margin-left: 6px; }   /* slight nudge to the right */
}

/* v2.49.10: adjust away offset to average */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team.m-away{ margin-left: 3px; } /* was 6px */
}

/* v2.49.11: adjust home offset to average */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team.m-home{ margin-left: -4px; } /* was -8px */
}

/* v2.49.12: 4px vertical space between home and away on mobile */
@media (max-width: 768px){
  .rcs-au-mobile-card .mc-mid{ gap: 4px !important; }
}

/* v2.49.13: force left alignment of team text on mobile */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team{
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .rcs-au-mobile-card .m-team.m-home,
  .rcs-au-mobile-card .m-team.m-away{
    text-align: left !important;
  }
}

/* v2.49.14: only outer 1px border on mobile; remove inner borders */
@media (max-width: 768px){
  /* Outer container gets the only border */
  .rcs-au-mobile-list{
    border: 1px solid #005599 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }
  /* Remove any inner borders/separators */
  .rcs-au-mdate{
    border: none !important;
  }
  .rcs-au-mobile-card{
    border: none !important;
  }
}

/* v2.49.15: remove top border above mobile table; add "uur" below time */
@media (max-width: 768px){
  /* Remove top border; keep the rest */
  .rcs-au-mobile-list{
    border-top: 0 !important;
    border-right: 1px solid #005599 !important;
    border-bottom: 1px solid #005599 !important;
    border-left: 1px solid #005599 !important;
    border-radius: 0 0 10px 10px !important; /* no rounded top corners */
  }
  /* Add 'uur' label under time */
  .rcs-au-mobile-card .m-time{
    line-height: 1.1;
  }
  .rcs-au-mobile-card .m-time::after{
    content: "uur";
    display: block;
    font-size: 10px;
    line-height: 1;
    opacity: .7;
  }
}

/* v2.49.16: bigger 'uur'; ensure right column shows scores (not time) */
@media (max-width: 768px){
  /* Make 'uur' a bit bigger */
  .rcs-au-mobile-card .m-time::after{
    font-size: 12px; /* was 10px */
  }

  /* Three-column grid and explicit placement */
  .rcs-au-mobile-card{
    display: grid;
    grid-template-columns: 40px 1fr 56px; /* time | teams | uitslag */
    align-items: center;
    gap: 8px;
  }
  .rcs-au-mobile-card .mc-left{ grid-column: 1; }
  .rcs-au-mobile-card .mc-mid{ grid-column: 2; display:flex; flex-direction:column; gap:4px; }
  .rcs-au-mobile-card .mc-right{ grid-column: 3; display:flex; flex-direction:column; align-items:flex-end; text-align:right; gap:2px; }

  /* Safety: never show time in right column */
  .rcs-au-mobile-card .mc-right .m-time{ display:none !important; }

  /* Score emphasis */
  .rcs-au-mobile-card .mc-right .m-score{
    font-weight: 700;
    line-height: 1.1;
  }
}

/* v2.49.17: right column safety */
@media (max-width: 768px){
  .rcs-au-mobile-card .mc-right{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; }
}

/* v2.49.18: rounded corners like other tables + keep single outer border */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    border: 1px solid #005599 !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
  }
}

/* v2.49.19: remove top border (blue line) above the mobile table */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    border-top: 0 !important;
    border-right-width: 1px !important;
    border-bottom-width: 1px !important;
    border-left-width: 1px !important;
    border-style: solid !important;
    border-color: #005599 !important;
    border-radius: 0 0 10px 10px !important; /* only bottom corners rounded */
  }
}

/* v2.49.20: round all corners while keeping top border removed on mobile */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    border-top: 0 !important;                /* keep blue line above removed */
    border-right: 1px solid #005599 !important;
    border-bottom: 1px solid #005599 !important;
    border-left: 1px solid #005599 !important;
    border-radius: 10px !important;          /* all corners rounded */
    overflow: hidden;
    background: #fff;
  }
}

/* v2.49.21: remove any visible top line on mobile list */
@media (max-width: 768px){
  /* 1) Outer box: no top border, no outline/shadow bleed */
  .rcs-au-mobile-list{
    border-top: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-right: 1px solid #005599 !important;
    border-bottom: 1px solid #005599 !important;
    border-left: 1px solid #005599 !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
  }
  /* 2) First date row: make sure it doesn't draw a top line */
  .rcs-au-mobile-list .rcs-au-mdate:first-child{
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
    background-clip: padding-box;
  }
  /* 3) Hide any table above (and its borders) on phones */
  .rcs-au-results-table{
    display: none !important;
    border: 0 !important;
  }
  /* 4) Defensive: if any hr/streepje direct boven de lijst staat, verberg op mobiel */
  .rcs-au-mobile-list + hr,
  hr + .rcs-au-mobile-list,
  .rcs-au-mobile-list:before{
    display: none !important;
    border: 0 !important;
    content: none !important;
  }
}

/* v2.49.22: aggressively hide any visible top line above the mobile list */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    position: relative;
    margin-top: 0 !important;
    border-top: 0 !important;
  }
  /* White mask that covers any 1–2px line bleeding from above containers */
  .rcs-au-mobile-list::before{
    content: "";
    position: absolute;
    left: 0; right: 0; top: -2px;
    height: 4px;                /* cover thin borders/shadows */
    background: #fff;           /* page bg */
    display: block;
    pointer-events: none;
  }
  /* If parent adds a top border via :before, clip it */
  .rcs-au-mobile-list{ background-clip: padding-box; }
  /* Also ensure first date row doesn't add any top decoration */
  .rcs-au-mobile-list .rcs-au-mdate:first-child{
    border-top: 0 !important;
    background-image: none !important;
  }
}

/* v2.49.23 */
@media (max-width: 768px){
  /* Home 1px extra left (was -4px) */
  .rcs-au-mobile-card .m-team.m-home{
    margin-left: -5px !important;
  }
  /* Remove any top blue line above mobile list, with white mask fallback */
  .rcs-au-mobile-list{
    border-top: 0 !important;
    border-top-color: transparent !important;
    position: relative;
  }
  .rcs-au-mobile-list::before{
    content: "";
    position: absolute;
    left: 0; right: 0; top: -3px;
    height: 6px;
    background: #fff; /* adjust if your page bg differs */
    pointer-events: none;
    display: block;
  }
  .rcs-au-mobile-list > :first-child{
    border-top: 0 !important;
  }
}

/* v2.49.24: hide compact under normal view; remove top border of compact */
@media (min-width: 769px){
  /* On desktop & larger tablets: only show the normal table */
  .rcs-au-mobile-list{ display: none !important; }
}
@media (max-width: 768px){
  /* On phones: show compact, hide normal table */
  .rcs-au-results-table{ display: none !important; }
  .rcs-au-mobile-list{
    border-top: 0 !important;
    border-top-color: transparent !important;
    position: relative;
  }
  /* White mask in case a theme line still shows above */
  .rcs-au-mobile-list::before{
    content: "";
    position: absolute;
    left: 0; right: 0; top: -3px;
    height: 6px;
    background: #fff;
    display: block;
    pointer-events: none;
  }
}

/* v2.49.25: aggressively remove any top line above the compact view */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    border-top: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    background: #fff;                 /* assumes white page bg */
    background-clip: padding-box !important;
    overflow: hidden;
  }
  /* Larger white mask to cover any leftover blue line from parent/sibling */
  .rcs-au-mobile-list::before{
    content: "";
    position: absolute;
    left: 0; right: 0; top: -8px;
    height: 12px;
    background: #fff;                 /* adjust if page bg differs */
    display: block;
    pointer-events: none;
    z-index: 1;
  }
  /* Ensure first child cannot render a top rule or margin pushing content down */
  .rcs-au-mobile-list > *:first-child{
    border-top: 0 !important;
    margin-top: 0 !important;
    background-image: none !important;
  }
  /* Hide any <hr> immediately before or after the compact list */
  hr + .rcs-au-mobile-list,
  .rcs-au-mobile-list + hr{
    display: block;
  }
  hr + .rcs-au-mobile-list::before,
  .rcs-au-mobile-list + hr{
    display: none !important;
    border: 0 !important;
    height: 0 !important;
  }
}

/* v2.49.26: hide header on normal view; style date rows */
@media (min-width: 769px){
  /* Normal desktop/tablet view: hide header row */
  .rcs-au-results-table thead,
  .rcs-au-results-table tr.header,
  table.results tr.header{
    display: none !important;
  }

  /* Date rows: AllUnited uses a single TD with colspan in 'results' table */
  table.results tr > td[colspan]{
    background: #005599 !important;
    color: #fff !important;
    font-weight: 700;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    border: 0 !important;
  }
}

/* v2.49.27: bold club team names in compact view */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team{
    font-weight: 700 !important;
  }
}

/* v2.49.28: only clubteam (home) bold in compact view */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team{ font-weight: 400 !important; }
  .rcs-au-mobile-card .m-team.m-home{ font-weight: 700 !important; }
}

/* v2.49.29: only bold clubteam (match by 'is-club') in compact view */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team{ font-weight: 400 !important; }
  .rcs-au-mobile-card .m-team.is-club{ font-weight: 700 !important; }
}

/* v2.49.30: ONLY bold clubteam on mobile (match .is-club). Neutralize any m-home bold. */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team,
  .rcs-au-mobile-card .m-team.m-home,
  .rcs-au-mobile-card .m-team.m-away{
    font-weight: 400 !important;
  }
  .rcs-au-mobile-card .m-team.is-club{
    font-weight: 700 !important;
  }
}

/* v2.49.31: ensure only clubteam is bold on compact view; works with multiple variants */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team{ font-weight: 400 !important; }
  .rcs-au-mobile-card .m-team.is-club{ font-weight: 700 !important; }
}

/* v2.49.32: stronger specificity so only clubteam is bold on compact view */
@media (max-width: 768px){
  .rcs-au-mobile-card .mc-mid .m-team{ font-weight: 400 !important; }
  .rcs-au-mobile-card .mc-mid .m-team.is-club{ font-weight: 700 !important; }
}

/* v2.49.33: Date row (#005599 background, white text) with NO horizontal line */
.rcs-au-results-table .rcs-au-date td{
  background:#005599;
  color:#ffffff;
  font-weight:700;
  border: 0 !important;           /* remove any top/bottom borders */
  box-shadow: none !important;     /* kill table row separators if applied as shadows */
}

/* v2.49.34: remove horizontal blue line UNDER compact view on phones */
@media (max-width: 768px){
  .rcs-au-mobile-list{
    border-bottom: 0 !important;          /* kill bottom border */
    position: relative;
  }
  /* White mask in case a theme adds a bottom rule/shadow */
  .rcs-au-mobile-list::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 6px;
    background: #fff;                      /* adjust if page bg differs */
    display: block;
    pointer-events: none;
    z-index: 1;
  }
}

/* v2.49.35: compact view - bold only the clubteam (.is-club) for results (.m-team) and standings (.s-team) */
@media (max-width: 768px){
  .rcs-au-mobile-card .m-team,
  .rcs-au-mobile-card .s-team{ font-weight: 400 !important; }
  .rcs-au-mobile-card .m-team.is-club,
  .rcs-au-mobile-card .s-team.is-club{ font-weight: 700 !important; }
}


/* Compact standings for phones: show only rank, team, and points */
@media (max-width: 768px){
  table.rcs-au-standings th,
  table.rcs-au-standings td{ display:none; }

  /* Show # (col 1), Team (col 2), and Pnt (col 10) based on enforced order */
  table.rcs-au-standings th:nth-child(1),
  table.rcs-au-standings td:nth-child(1),
  table.rcs-au-standings th:nth-child(2),
  table.rcs-au-standings td:nth-child(2),
  table.rcs-au-standings th:nth-child(10),
  table.rcs-au-standings td:nth-child(10){ display:table-cell; }

  /* Tweak widths for readability */
  table.rcs-au-standings th:nth-child(1),
  table.rcs-au-standings td:nth-child(1){ width: 3rem; text-align:center; }
  table.rcs-au-standings th:nth-child(2),
  table.rcs-au-standings td:nth-child(2){ width:auto; }
  table.rcs-au-standings th:nth-child(10),
  table.rcs-au-standings td:nth-child(10){ width:4.5rem; text-align:right; }
}


/* Bold Points column (Pnt) in all views */
table.rcs-au-standings th:nth-child(10),
table.rcs-au-standings td:nth-child(10){
  font-weight: 700;
}

/* Ensure '+' column hidden on compact (7th column in enforced order) */
@media (max-width: 768px){
  table.rcs-au-standings th:nth-child(7),
  table.rcs-au-standings td:nth-child(7){ display:none !important; }
  /* Bold still applies to Pnt */
  table.rcs-au-standings th:nth-child(10),
  table.rcs-au-standings td:nth-child(10){ font-weight:700; }
}


/* Compact results: ensure visible bottom border */
@media (max-width: 768px){
  table.rcs-au-results-table{
    border: 1px solid #005599;
    border-collapse: separate; /* avoid border being swallowed */
    border-radius: 8px;
  }
  /* Remove inner borders remain none; enforce clear bottom edge even if rows have no borders */
  table.rcs-au-results-table tbody tr:last-child td{
    border-bottom: 0;
  }
  /* Add a subtle inset bottom line to guarantee visibility on light backgrounds */
  table.rcs-au-results-table{
    box-shadow: inset 0 -1px 0 0 #005599;
  }
}


/* === v2.51.06 Standings tweaks === */
/* 1) Make '#' column smaller */
table.rcs-au-standings th:nth-child(1),
table.rcs-au-standings td:nth-child(1){
  width: 2.6rem;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

/* 2) Pull team logo + name further left (reduce left padding) */
table.rcs-au-standings th:nth-child(2),
table.rcs-au-standings td:nth-child(2){
  padding-left: 6px; /* was larger; tighten left side */
}

/* Ensure logo and text sit tightly together */
table.rcs-au-standings td:nth-child(2) img{
  display: inline-block;
  height: 24px; /* respect existing height if different; this is a max */
  width: auto;
  margin-right: 6px; /* small gap between logo and name */
  vertical-align: middle;
}

/* Keep readability on very small screens */
@media (max-width: 768px){
  table.rcs-au-standings th:nth-child(1),
  table.rcs-au-standings td:nth-child(1){
    width: 2.4rem;
  }
  table.rcs-au-standings th:nth-child(2),
  table.rcs-au-standings td:nth-child(2){
    padding-left: 6px;
  }
}
/* === /v2.51.06 Standings tweaks === */


/* v2.51.07: Standings team cell - name always to the right of logo */
table.rcs-au-standings td:nth-child(2),
table.rcs-au-standings th:nth-child(2){
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* keep on one line when possible */
}

table.rcs-au-standings td:nth-child(2) img{
  display: inline-block;
  height: 24px;
  width: auto;
  margin: 0; /* gap handles spacing */
  vertical-align: middle;
}

@media (max-width: 768px){
  table.rcs-au-standings td:nth-child(2),
  table.rcs-au-standings th:nth-child(2){
    gap: 6px;
    white-space: nowrap;
  }
}
