/*******************************************/
/*  DigitalSports Print View CSS
/*******************************************/

#container{
	width: 1230px; /*Width of main container*/
	margin: 0 auto; /*Center container on page*/
}

#leftColumn{
	float: left;
	width: 160px; 
	margin-left: -1230px; 
	margin-top: 50px;
}

#rightColumn{
	float: left;
	width: 160px; 
	margin-left: -160px; 
	margin-top: 50px;
}

#rightColumnPrint{
    float: right;
    width: 205px; 
    margin-left: -160px; 
    margin-top: 50px;
}

#footer{
	clear: left;
	width: 100%;
	text-align: center;
	padding: 4px 0;
}

#resultsColumn{
	float: left;
	width: 83%;
}

#resultsTable{
	text-align:left;
	width: 850px;
	margin: 0 165px 0 165px;
	border-collapse:collapse;
	border-bottom:2px solid #777;
}

th{
	font:11px Verdana;
	font-weight:bold;
	padding:3px 5px;
	background-color: #ddd;
	border:1px solid #777;
	border-right: 0px !important;	
}

td{
	font:11px Verdana;
	padding:4px 5px;
	border-left:1px solid #777;
	vertical-align:top;
}

#resultsTable tr.rescheduled td:nth-child(7), 
#resultsTable tr.cancelled td:nth-child(7), 
#resultsTable tr.postponed td:nth-child(7) {
	background-size: 60% !important;
}

#resultsTable tr.rescheduled td:nth-child(7) {
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url(bg.png) repeat 0 0, url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0.7))), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: -o-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: -ms-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center;
	background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.rescheduled.png) no-repeat top center; 
}

#resultsTable tr.cancelled td:nth-child(7) {
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url(bg.png) repeat 0 0, url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0.7))), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: -o-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: -ms-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center;
	background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.cancelled.png) no-repeat top center; 
}

#resultsTable tr.postponed td:nth-child(7) {
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url(bg.png) repeat 0 0, url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0.7))), url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: -o-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: -ms-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.postponed.png) no-repeat top center;
	background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100%), url(../img/ds.watermarks.red.postponed.png) no-repeat top center; 
}

td.lastChild, td:last-child{ border-right:1px solid #777;}

th.lastChild, th:last-child{ border-right:1px solid #777 !important;}

tr{ border-bottom:1px solid #bbb;}

tr.lastChild{
	height:1px;
	border:1px solid #777;
}

.resultRowEven{background-color: #bbb;}

.arrow{font:8px Verdana;margin:0px 3px 0px 5px;}

.arrow:last-child{display:none}

span.event{ 
	float:right;
	font: italic 11px Verdana;
	clear:both;
	width:100%;
}

span.schools{
	float:left;
	clear:both;
}

span.more{
	cursor: pointer;
	font:10px Verdana;
	font-weight:bold;
	text-decoration:underline;
	color:#b00;
}

span.button{
	cursor: pointer;
	font:10px Verdana;
	font-weight:bold;
	text-decoration:underline;
	color:#b00;
}

span._off{
	color:#000;
	text-decoration:none;
}

span.title{float:right;font:bold 12px Verdana;clear:right;}

span.date{float:right;font:12px Verdana;clear:right;}

span.legend{	float:left;	clear:both;	margin-top: 10px;}

span.iviews{float:left;	clear:both;	margin-top: 10px;}

.nowrap{white-space:nowrap;}

.logo{
	float:left; 
	clear:both;
}

#print,#close{
	float:right;
	margin-left:5px; 
}

span.powered{
	font:italic 10px Verdana;
	color:#444;
	float:right;
}

span.details{
	font:10px Verdana;
	color:#333;
}

/*******************************************/
/*  Schedule print sheet - redesign
/*
/*  Only applies where the markup carries the ds-print classes, so the
/*  older print pages that also load this stylesheet are untouched.
/*******************************************/

/* ---------------------------------------------------------- the sheet */

body.ds-print {
    background: #f4f6f8;
    margin: 0;
}

.ds-print-sheet {
    /* The sheet sits inside #resultsColumn, which styles.printview.css already
       sizes; filling it keeps the ad rail beside the schedule rather than over it. */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 30px 34px 36px;
    box-sizing: border-box;
    /* Two shadows rather than one: a tight dark edge so the card has a
       boundary, and a wide soft one so it sits above the page instead of
       being outlined on it. */
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(16, 32, 60, 0.07),
                0 8px 24px rgba(16, 32, 60, 0.07);
}

/* ---------------------------------------------------------- the header */

/* display:table rather than flex - print engines lay tables out reliably. */
.ds-print-head {
    display: table;
    width: 100%;
    margin: 0 0 22px 0;
}

.ds-print-head__logo,
.ds-print-head__text {
    display: table-cell;
    vertical-align: middle;
}

.ds-print-head__logo {
    width: 104px;
}

.ds-print-head__logo img {
    display: block;
    /* Either shape has to sit in the same box: a school crest is roughly
       square, the DigitalSports wordmark is 172x48. */
    max-width: 96px;
    max-height: 84px;
    /* The crest would otherwise sit right against the school name - the cell
       is only 8px wider than the image. On the image rather than the cell:
       padding on the cell would be eaten by box-sizing, and a school with no
       logo has no cell at all, so its title would be indented out of line
       with the table below it. */
    margin-right: 18px;
}

.ds-print-title {
    font: bold 21px/1.3 Arial, Helvetica, sans-serif;
    color: #10203c;
    margin: 0;
    /* The title names the sheet and reads as one thing, so it is not
       broken across lines. The phone rules below let it wrap again,
       where holding one line would push it off the screen. */
    white-space: nowrap;
}

.ds-print-asof {
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    color: #39434f;
    margin: 6px 0 0 0;
}

/* ---------------------------------------------------------- the table */

/* styles.printview.css gives #resultsTable a fixed width, outer border and
   per-cell borders. The mock has none of that, so it is all unset here. */
table.ds-print-table,
#resultsTable.ds-print-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.ds-print-table th {
    font: bold 12px/1.35 Arial, Helvetica, sans-serif;
    color: #1f6fb2;
    background: none;
    border: 0;
    border-bottom: 1.5px solid #8c99a8;
    padding: 0 10px 9px 10px;
    text-align: left;
    vertical-align: bottom;
    white-space: normal;
}

/* The sheet carries a spacer row that exists only to make a bottom margin on
   paper, where it is repeated at the foot of every page. On screen there are
   no pages and nothing to hold off an edge, so it has no business being
   there. */
.ds-print-table tfoot {
    display: none;
}

/* The last two columns are the narrowest on the sheet and their labels are
   the longest relative to them, so the labels set the column width rather
   than breaking across two lines inside it. */
.ds-print-table--extras th:nth-child(5),
.ds-print-table--extras th:nth-child(6) {
    white-space: nowrap;
}

.ds-print-table td {
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    color: #1d2733;
    border: 0;
    padding: 7px 10px;
    vertical-align: top;
}

/* The old stylesheet puts a right border on the last cell of every row. */
.ds-print-table td.lastChild,
.ds-print-table td:last-child,
.ds-print-table th.lastChild,
.ds-print-table th:last-child {
    border-right: 0 !important;
}

.ds-print-table tr {
    border-bottom: 0;
}

/* ------------------------------------------------- date grouping rows */

.ds-print-daterow td {
    font: bold 11.5px/1.4 Arial, Helvetica, sans-serif;
    color: #0f1722;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 18px 10px 7px 10px;
    /* The only horizontal rule on the sheet, so it does the whole job of
       separating one day from the next. Light greys print thinner than
       they look on screen, hence the darker tone as well as the weight. */
    border-top: 2px solid #7d8a99;
}

/* The first group sits directly under the column labels, which already
   carry a rule - a second one there would read as a double line. */
.ds-print-daterow--first td {
    border-top: 0;
    padding-top: 12px;
}

/* School sheets mark home and away in the school's own two colours, set
   inline per school. Weight carries the same distinction, so the sheet
   still reads correctly printed in greyscale. League sheets print no
   marker - both sides are already named in Versus and Location. */
.ds-print-bullet {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    /* Backgrounds are dropped by default when printing, and these carry
       meaning, so they have to survive. */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ds-print-bullet--home {
    background: #2f2f2f;
}

.ds-print-bullet--away {
    background: #cdd3d9;
}

/* ------------------------------------------------------- event rows */

.ds-print-row--home td {
    font-weight: bold;
    color: #0f1722;
}

.ds-print-row--away td {
    font-weight: normal;
    color: #39434f;
}

.ds-print-activity {
    white-space: normal;
}

.ds-print-status {
    color: #c00;
    font-weight: bold;
    white-space: nowrap;
}

.ds-print-empty td {
    padding: 26px 10px;
    color: #5b6672;
    font-style: italic;
}

.ds-print-controls {
    font: 11px/1.9 Arial, Helvetica, sans-serif;
    color: #39434f;
    border-top: 1px solid #e3e7ec;
    border-bottom: 1px solid #e3e7ec;
    padding: 7px 0;
    margin: 0 0 20px 0;
    /* The Close and Print buttons used to float right, straight under the ad
       rail's negative margin. Keeping them in the flow is what stops an ad
       from landing on top of the Print button. */
    overflow: hidden;
}

.ds-print-controls .more,
.ds-print-controls .button {
    float: none;
    margin: 0 3px;
}

.ds-print-controls .button {
    margin-left: 12px;
}

/* ------------------------------------------- overriding what is already there */

/* roster.css stripes .evenrow/.oddrow and styles.printview.css has
   .resultRowEven. The mock has no banding, and a grey band behind every other
   row also wastes toner on a sheet that is meant to be printed. */
#resultsTable.ds-print-table tr.evenrow,
#resultsTable.ds-print-table tr.oddrow,
#resultsTable.ds-print-table tr.resultRowEven,
#resultsTable.ds-print-table tr.homerow,
#resultsTable.ds-print-table tr.awayrow {
    background: none !important;
}

/* Each school's theme injects its own colours, which were tinting the rows.
   The schedule has to read the same on every school's sheet, and home vs away
   is carried by weight and colour, so these are pinned down. */
#resultsTable.ds-print-table th {
    color: #1f6fb2 !important;
}

#resultsTable.ds-print-table td {
    color: #1d2733 !important;
}

/* schedule.css gives every .location span a map-pin sprite and a 25px text
   indent to clear it. The column already says what it holds, and the pin is
   a background, so it would leave the indent without the icon on paper. */
#resultsTable.ds-print-table .location {
    background: none;
    text-indent: 0;
    display: inline;
    height: auto;
    min-width: 0;
}

/* The modal's sheet links its location through to the event details. It is
   part of the schedule first and a link second, so it takes the row's own
   colour and only underlines under the pointer. */
#resultsTable.ds-print-table td a {
    color: inherit;
    text-decoration: none;
}

#resultsTable.ds-print-table td a:hover,
#resultsTable.ds-print-table td a:focus {
    text-decoration: underline;
}

#resultsTable.ds-print-table tr.ds-print-daterow td {
    color: #0f1722 !important;
    font-weight: bold;
}

#resultsTable.ds-print-table tr.ds-print-row--home td {
    color: #0f1722 !important;
    font-weight: bold;
}

#resultsTable.ds-print-table tr.ds-print-row--away td {
    color: #39434f !important;
    font-weight: normal;
}

/* The event's own name, under the opponent in the Opponent/Title cell.
   Home rows are set in bold, so the weight is forced back here - the
   opponent stays the heading of the cell and the title reads as the
   note it is. */
#resultsTable.ds-print-table .ds-print-event-title {
    display: block;
    font-weight: normal !important;
    /* Enough of a gap that the two read as two facts rather than one value
       that happened to wrap, and not so much that they stop belonging to the
       same cell. The tighter line height keeps a title that runs to two lines
       grouped against the opponent above it. */
    margin-top: 3px;
    line-height: 1.3;
}

/* The status marker is still the one red thing on the sheet. */
#resultsTable.ds-print-table .ds-print-status,
#resultsTable.ds-print-table .ds-print-status font {
    color: #c00 !important;
    font-weight: bold;
}

/* The old stylesheet paints a CANCELLED/POSTPONED watermark behind the
   seventh cell. That used to be a spare column; it is now Result, and a
   watermark behind a score is unreadable. */
#resultsTable.ds-print-table tr.rescheduled td:nth-child(7),
#resultsTable.ds-print-table tr.cancelled td:nth-child(7),
#resultsTable.ds-print-table tr.postponed td:nth-child(7) {
    background: none !important;
}

/* --------------------------------------------- games that are not happening */

/* Struck through, the way the scheduling grid shows them. Postponed keeps the
   sheet's own ink because the game may yet be played; cancelled turns red
   because it will not. Rescheduled is left alone - that game does happen, just
   at another time - so it keeps the red label above and no line. */
#resultsTable.ds-print-table tr.postponed td,
#resultsTable.ds-print-table tr.cancelled td {
    text-decoration: line-through;
}

#resultsTable.ds-print-table tr.cancelled td,
#resultsTable.ds-print-table tr.cancelled td a,
#resultsTable.ds-print-table tr.cancelled td font {
    color: #c3121a !important;
}

/* The label says why the line is there, so the line does not run through it.
   inline-block is what lets it opt out: text-decoration is drawn by the
   ancestor and a descendant cannot switch it off, but an inline-block starts
   its own run. */
#resultsTable.ds-print-table tr.postponed .ds-print-status,
#resultsTable.ds-print-table tr.cancelled .ds-print-status {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    font: bold 9px/1 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 3px 7px 4px 7px;
    border-radius: 3px;
    margin-left: 7px;
    background: #14181f;
    color: #fff !important;
    /* The badge is only legible if its background survives printing. */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* $status_text arrives as <font color='red'>Canceled</font>, which would
   otherwise paint red on red. */
#resultsTable.ds-print-table tr.postponed .ds-print-status font,
#resultsTable.ds-print-table tr.cancelled .ds-print-status font {
    color: #fff !important;
    font-weight: bold;
}

#resultsTable.ds-print-table tr.cancelled .ds-print-status {
    background: #c3121a;
}
/* ------------------------------------------------------------ the ad rail */

/* The rail is 205px wide with margin-left:-160px in styles.printview.css, so
   only 45px is reserved for it and it is drawn 160px over the schedule; the
   300px ad slots inside then overflow it by a further 95px. Give the rail the
   width its adverts actually need and take the negative margin off, so the
   adverts sit beside the schedule instead of over it. */
body.ds-print #container {
    width: auto;
    max-width: 1230px;
    /* Below 1230px the container is the window, and a card with a shadow
       hard against the window edge looks clipped. */
    padding: 0 16px 28px;
    box-sizing: border-box;
}

/* The leaderboard sits directly above the card; without this they touch. */
body.ds-print .ds-print-sheet {
    margin-top: 18px;
}

body.ds-print #resultsColumn {
    /* 300px of advert and a 32px gutter. The card has a shadow now, so it
       needs clear air beside it rather than just enough room not to
       overlap. */
    width: calc(100% - 332px);
}

body.ds-print #rightColumnPrint {
    width: 300px;
    margin-left: 0;
    margin-top: 0;
}

body.ds-print #rightColumnPrint .postContainer-advert {
    margin-bottom: 20px;
}

/* The top advert is 728px wide and sits inside the card. Everything that has
   to fit beside and around it: 728 advert + 68 card padding + 332 rail and
   gutter + 32 container padding = 1160px. Below that the leaderboard is pushed
   out of its own column, so the two columns separate at 1180px, which leaves a
   little room rather than landing exactly on the limit. */
@media screen and (max-width: 1180px) {
    body.ds-print #resultsColumn,
    body.ds-print #rightColumnPrint {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    body.ds-print #rightColumnPrint {
        margin-top: 24px;
    }

    /* Stacked, the rail's adverts sit side by side if there is room. */
    body.ds-print #rightColumnPrint .col2 {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    body.ds-print #rightColumnPrint .postContainer-advert {
        margin-bottom: 0;
    }
}

/* Nothing may force the page itself to scroll sideways. */
body.ds-print .ds-print-sheet,
body.ds-print #rightColumnPrint,
body.ds-print #resultsColumn {
    max-width: 100%;
    box-sizing: border-box;
}

/* ----------------------------------------------------------- phone */

@media screen and (max-width: 700px) {
    /* Down to 10px so a 300px advert still fits inside a 320px viewport. */
    /* A 300px advert needs all 320px of a small phone, so the container
       gives its gutter back here. */
    body.ds-print #container {
        padding-left: 6px;
        padding-right: 6px;
    }

    body.ds-print .ds-print-sheet {
        padding: 18px 10px 24px;
    }

    body.ds-print .ds-print-title {
        font-size: 17px;
        /* A phone is narrower than any title worth printing, so here it
           wraps rather than running off the side. */
        white-space: normal;
    }

    body.ds-print .ds-print-head__logo {
        width: 64px;
    }

    body.ds-print .ds-print-head__logo img {
        max-width: 52px;
        max-height: 52px;
    }

    body.ds-print .ds-print-controls {
        line-height: 2.2;
    }

    /* Only here. Wide enough to wrap into, the table fits its container and
       the text wraps; on a phone the columns' own minimum widths exceed the
       screen and there is nowhere left to wrap to, so it scrolls instead. */
    body.ds-print .ds-print-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.ds-print .ds-print-table {
        min-width: 620px;
    }

    /* Each column set needs its own floor. 620px was the five-column figure;
       the seven-column sheet squeezed into it still crushed every cell, which
       is what made a phone look like a shrunken desktop rather than a table
       you scroll. Printing resets these, so paper is unaffected. */
    body.ds-print .ds-print-table--league {
        min-width: 700px;
    }

    body.ds-print .ds-print-table--extras {
        min-width: 780px;
    }
}

/* Printed, the table must never scroll or be clipped. */
@media print {
    .ds-print-table-scroll {
        overflow: visible !important;
    }

    .ds-print-table {
        min-width: 0 !important;
    }
}
/* ---------------------------------------------------------- printing */

@media print {
    /* A page with no margin leaves the browser nowhere to draw its own date,
       title, URL and page number, which is the only way to keep them off the
       sheet - the print dialog's "Headers and footers" box is not something a
       page can reach. The margins therefore have to come from inside the page
       instead: the sides from the padding below, which every fragment of a
       block repeats, and the top and bottom from the table's own header and
       footer groups, which are the only things a browser puts on every page. */
    @page {
        margin: 0;
    }

    body.ds-print {
        background: #fff;
        margin: 0;
        /* Side padding lands on every page. Top and bottom padding would only
           ever reach the first page and the last, which is the whole reason
           the other two margins are built out of the table. */
        padding: 0 10mm;
    }

    /* Nothing on paper can be hovered, and a link that cannot be followed
       should not look like one. */
    #resultsTable.ds-print-table td a {
        text-decoration: none !important;
    }

    .ds-print-sheet {
        width: auto;
        /* The first page's top margin, above the title. Every page after it
           gets its own from the repeated column header instead. */
        padding: 12mm 0 0 0;
        /* Paper has no grey page for a card to sit on. */
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* The controls bar and the ad rails are screen furniture. This is also
       what keeps the ad slots from landing on top of the schedule. */
    .ds-print-noprint,
    .optionsBox,
    .postContainer-advert,
    #leftColumn,
    #rightColumn,
    #rightColumnPrint {
        display: none !important;
    }

    /* The rail is hidden just above, but the schedule column is still sized to
       leave room for it, which is what pushed the table into half the page.
       Hand the whole width back. */
    body.ds-print #container,
    body.ds-print #resultsColumn {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Activity holds by far the longest text - "Baseball: Boys Junior Varsity
       Scrimmage" - so it is given the room the other four do not need, and the
       marker stays on the same line as the words it belongs to. */
    .ds-print-table th:nth-child(1),
    .ds-print-table td:nth-child(1) { width: 38%; }
    .ds-print-table th:nth-child(2),
    .ds-print-table td:nth-child(2) { width: 11%; }
    .ds-print-table th:nth-child(3),
    .ds-print-table td:nth-child(3) { width: 26%; }
    .ds-print-table th:nth-child(4),
    .ds-print-table td:nth-child(4) { width: 25%; }

    .ds-print-bullet {
        margin-right: 7px;
    }

    /* With Bus Depart and Result on the sheet there are seven columns. Both
       are short and fixed in shape - a time, or a letter and two numbers -
       so they take the least and Activity keeps the most. */
    .ds-print-table--extras th:nth-child(1),
    .ds-print-table--extras td:nth-child(1) { width: 29%; }
    .ds-print-table--extras th:nth-child(2),
    .ds-print-table--extras td:nth-child(2) { width: 9%; }
    .ds-print-table--extras th:nth-child(3),
    .ds-print-table--extras td:nth-child(3) { width: 21%; }
    .ds-print-table--extras th:nth-child(4),
    .ds-print-table--extras td:nth-child(4) { width: 22%; }
    /* "Bus Depart" is two words over the narrowest column on the sheet. */
    .ds-print-table--extras th:nth-child(5),
    .ds-print-table--extras th:nth-child(6) { white-space: nowrap; }
    .ds-print-table--extras th:nth-child(5),
    .ds-print-table--extras td:nth-child(5) { width: 9.5%; }
    .ds-print-table--extras th:nth-child(6),
    .ds-print-table--extras td:nth-child(6) { width: 9.5%; }

    /* The league set leads with Time rather than Activity, so the room
       goes to Opponent/Title, which carries two school names. */
    .ds-print-table--league th:nth-child(1),
    .ds-print-table--league td:nth-child(1) { width: 9%; }
    .ds-print-table--league th:nth-child(2),
    .ds-print-table--league td:nth-child(2) { width: 11%; }
    .ds-print-table--league th:nth-child(3),
    .ds-print-table--league td:nth-child(3) { width: 22%; }
    .ds-print-table--league th:nth-child(4),
    .ds-print-table--league td:nth-child(4) { width: 36%; }
    .ds-print-table--league th:nth-child(5),
    .ds-print-table--league td:nth-child(5) { width: 22%; }
    /* A thead is a header group by default, which browsers reprint at the top
       of every page. That is what is wanted here: a second page of rows with no
       column labels above them cannot be read. */
    .ds-print-table thead {
        display: table-header-group;
    }

    /* The repeated header doubles as the top margin of every page after the
       first: its padding is the only space a browser will leave above the
       first row of a table it is continuing. */
    .ds-print-table thead th {
        padding-top: 12mm;
    }

    /* On the first page the header is not at the top of the paper - the title
       is - so that same padding would only push the table away from the title.
       A margin is applied once, at the start of the table, so taking it off
       here lands on the first page and nowhere else. */
    .ds-print-table-scroll {
        margin-top: -12mm;
    }

    /* A footer group is repeated at the foot of every page, so an empty row of
       a fixed height is a bottom margin. It is the counterpart of the header
       padding above, and the reason the last row does not sit on the edge the
       printer cannot reach. */
    .ds-print-table tfoot {
        display: table-footer-group;
    }

    .ds-print-table tfoot td {
        height: 12mm;
        padding: 0;
        border: 0;
    }

    /* Never split a game across two pages. */
    .ds-print-table tr {
        page-break-inside: avoid;
    }

    /* Each date and its games are one row group. Holding a group together is
       what guarantees a page always opens on a date header rather than on
       loose rows belonging to a date printed overleaf: a group that does not
       fit in what is left moves down whole. A single date with more games than
       fit on one page is the one case the browser cannot honour, and it
       splits that group as it did before. */
    .ds-print-table tbody.ds-print-group {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .ds-print-daterow {
        page-break-after: avoid;
    }

    /* Put on the date group that opens a new sheet, once the "results
       printed / page" count has been reached. It is a break BEFORE, because
       the class marks the group that starts the page rather than the one that
       ended the last. */
    .ds-print-pagebreak {
        page-break-before: always;
        break-before: page;
    }
}
