/* Also loaded as media=all for the optional print-friendly view. */
@page rrdl-fixtures { size: A4 portrait; margin: 10mm; }
body:has(.rrdl-schedule) { page: rrdl-fixtures; background: #fff !important; color: #000; }
body:has(.rrdl-schedule) *:not(.rrdl-schedule):not(.rrdl-schedule *):not(:has(.rrdl-schedule)) { display: none !important; }
body:has(.rrdl-schedule), body:has(.rrdl-schedule) :has(.rrdl-schedule) { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; min-height: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff !important; float: none !important; display: block !important; }
body:has(.rrdl-schedule) .rrdl-schedule { width: 190mm; max-width: 100%; margin: 0 auto; padding: 0; font: 9pt/1.25 Arial, sans-serif; color: #000; }
.rrdl-schedule, .rrdl-schedule * { box-sizing: border-box; }
body:has(.rrdl-schedule) .rrdl-schedule * { font-family: Arial, sans-serif; font-size: inherit; box-shadow: none; text-shadow: none; }
body:has(.rrdl-schedule) .rrdl-schedule-actions { display: none; }
body:has(.rrdl-schedule) .rrdl-schedule-header { padding: 0 0 3mm; margin: 0 0 4mm; border-bottom: 1pt solid #000; }
body:has(.rrdl-schedule) .rrdl-schedule-header .rrdl-schedule-league { display: block; margin: 0 0 1mm !important; font-size: 9pt; font-weight: 400; line-height: 1.25; color: #000; height: auto; }
body:has(.rrdl-schedule) .rrdl-schedule-header :is(h1,h2) { margin: 0 0 1mm; font-size: 17pt; line-height: 1.2; color: #000; }
body:has(.rrdl-schedule) .rrdl-schedule :is(h1,h2,h3)::before { content: none; }
body:has(.rrdl-schedule) .rrdl-schedule-header :is(h1,h2) span { font-size: inherit; color: #000; }
body:has(.rrdl-schedule) .rrdl-schedule-header p { margin: 0 !important; font-size: 8pt; line-height: 1.3; color: #222; height: auto; }
body:has(.rrdl-schedule) .rrdl-schedule-header .rrdl-schedule-summary { margin-top: 1mm !important; font-size: 8pt; }
body:has(.rrdl-schedule) .rrdl-schedule ol.rrdl-schedule-days { display: block; columns: 2; column-gap: 7mm; margin: 0; padding: 0; list-style: none; }
body:has(.rrdl-schedule) .rrdl-schedule-day { break-inside: avoid; page-break-inside: avoid; margin: 0 0 .7mm; padding: 0; }
body:has(.rrdl-schedule) .rrdl-schedule-day h3 { margin: 0 0 .3mm; padding: 0 0 .5mm; border-bottom: .5pt solid #777; border-radius: 0; background: none; color: #000; font-size: 9pt; line-height: 1.2; font-weight: 700; text-align: left; }
body:has(.rrdl-schedule) .rrdl-schedule-day h3 time { font-size: inherit; }
body:has(.rrdl-schedule) .rrdl-schedule-day ul { margin: 0; padding: 0; }
body:has(.rrdl-schedule) .rrdl-schedule-event { margin: 0; padding: .4mm 0; border: 0; }
body:has(.rrdl-schedule) .rrdl-schedule-match { margin: 0 !important; height: auto; font-size: 8.5pt; line-height: 1.25; gap: 1mm; grid-template-columns: minmax(0,1fr) 3mm minmax(0,1fr); }
body:has(.rrdl-schedule) .rrdl-schedule-match span { font-size: inherit; color: #000; }
body:has(.rrdl-schedule) .rrdl-schedule-event .rrdl-schedule-detail { margin: 0 !important; height: auto; font-size: 7.5pt; line-height: 1.2; color: #222; }
body:has(.rrdl-schedule) .rrdl-schedule-tag { font-size: 7.5pt; margin-right: 1.5mm; color: #000; }
body:has(.rrdl-schedule) .rrdl-schedule-competition { margin: 0 !important; height: auto; font-size: 8.5pt; line-height: 1.2; }
body:has(.rrdl-schedule) .rrdl-schedule-competition strong { font-size: inherit; }
body:has(.rrdl-schedule) .rrdl-schedule-competition .rrdl-schedule-tag { display: inline; margin-bottom: 0; }
body:has(.rrdl-schedule) .rrdl-schedule-bye { margin: 0 !important; height: auto; font-size: 8.5pt; line-height: 1.2; }
body:has(.rrdl-schedule) .rrdl-schedule-bye span { font-size: inherit; color: #222; }

/* The heading identifies the team; paper rows need only the opponent and H/A. */
body:has(.rrdl-schedule) .rrdl-schedule-match:has(.rrdl-schedule-team) { display: block; text-align: center; }
body:has(.rrdl-schedule) .rrdl-schedule-match:has(.rrdl-schedule-team) > span { text-align: center; }
body:has(.rrdl-schedule) .rrdl-schedule-match:has(.rrdl-schedule-team) :is(.rrdl-schedule-team,.rrdl-schedule-versus) { display: none; }

@media screen {
    body:has(.rrdl-schedule) .rrdl-schedule-actions { display: flex; position: fixed; z-index: 100; bottom: 16px; right: 16px; margin: 0; padding: 12px 16px; max-width: calc(100vw - 32px); border: 1px solid #b8c5b6; border-radius: 6px; background: #fff; gap: 20px; box-shadow: 0 4px 18px #0002; }
    body:has(.rrdl-schedule) .rrdl-schedule-actions a { font-size: 12px; }
    body:has(.rrdl-schedule) .rrdl-schedule-actions button { font-size: 13px; }
}

body:has(.rrdl-schedule) .rrdl-schedule-detail a { color: inherit; text-decoration: none; }
body:has(.rrdl-schedule) .rrdl-schedule a[href]::after { content: none; }
