/**
 * Print sheet. Loaded with media="print" so it never blocks rendering.
 * People print the fee and fine tables from these pages, and they take that
 * sheet to the hearing: it has to come out as a document, numbered sections
 * and all.
 */

.dlc-header__call,
.dlc-mobile-bar,
.dlc-mobile-bar-slot,
.dlc-nav,
.dlc-conversion,
.dlc-footer__links,
.dlc-footer__legal {
	display: none !important;
}

.dlc-footer {
	padding-bottom: 0 !important;
	background: none !important;
	color: #1C2B39 !important;
	border-top: 1px solid #1C2B39;
}

.dlc-footer a,
.dlc-footer .dlc-nap,
.dlc-footer__title {
	color: #1C2B39 !important;
	border-color: #1C2B39 !important;
}

body {
	background: #FDFDFB;
	color: #14202B;
	font-size: 11pt;
	line-height: 1.5;
}

a[href^="http"]::after {
	content: " (" attr( href ) ")";
	font-size: 9pt;
	word-break: break-all;
}

h1,
h2,
h3 {
	break-after: avoid;
}

/* The numbered margin survives the print: on paper the number goes back over
   its heading, because a printed page has no gutter to spare. */
.wp-block-post-content > h2::before {
	position: static !important;
	display: block !important;
	font-size: 10pt !important;
	letter-spacing: 0.2em !important;
	margin: 0 0 0.2rem !important;
}

/* A scale must print whole, never clipped at the frame it scrolls in. */
.wp-block-table {
	overflow: visible !important;
	border-top: 2pt solid #1C2B39;
}

.wp-block-table table {
	min-width: 0 !important;
	width: 100% !important;
	font-size: 9.5pt;
}

.wp-block-table thead th {
	background: none !important;
	color: #1C2B39 !important;
	border-bottom: 1pt solid #1C2B39 !important;
}

.wp-block-table tbody tr > *:first-child,
.wp-block-table thead th:first-child {
	position: static !important;
}

.dlc-warning {
	background: none !important;
	color: #14202B !important;
	border: 1pt solid #1C2B39 !important;
}

.dlc-warning .has-gold-color,
.dlc-warning p {
	color: #14202B !important;
}

.dlc-short-answer,
.dlc-note {
	background: none !important;
	border: 1pt solid #1C2B39 !important;
}

/* Details render collapsed by default, and a printed answer that is not
   there is a printed page that lies. */
details {
	display: block;
}

details > :not( summary ) {
	display: block !important;
}

table,
figure,
blockquote,
details {
	break-inside: avoid;
}

/* --------------------------------------------------------------------------
   The plates and the bands

   On screen the document opens on an aplat of ink and alternates grounds.
   Browsers drop backgrounds when they print, so an off white title on a
   dropped ink ground is a title that does not print at all. Every band goes
   back to ink on paper, at the size of a printed document: the plate is the
   head of the sheet, not a poster.
   -------------------------------------------------------------------------- */

.dlc-masthead,
.dlc-lede,
.dlc-register,
.dlc-band,
.dlc-band__inner,
.dlc-band__inner--column {
	background: none !important;
	color: #14202B !important;
	padding-inline: 0 !important;
	margin-inline: 0 !important;
	max-width: none !important;
	border-color: #1C2B39 !important;
}

.dlc-masthead *,
.dlc-lede *,
.dlc-band--answer *,
.dlc-band--warning * {
	color: #14202B !important;
}

.dlc-masthead {
	padding-block: 0 0.4cm !important;
	border-bottom: 2pt solid #1C2B39;
}

.dlc-band {
	padding-block: 0.5cm !important;
	margin-block: 0.5cm !important;
}

.dlc-band--answer {
	padding-block: 0 0.5cm !important;
}

/* 110px is the scale of a screen, not of an A4 sheet. */
.dlc-masthead .wp-block-post-title,
.dlc-masthead h1 {
	font-size: 22pt !important;
	line-height: 1.15 !important;
	max-width: none !important;
}

.dlc-masthead .wp-block-dlc-breadcrumbs {
	border-bottom-color: #1C2B39 !important;
}

/* The portrait belongs to the screen: a sheet taken to a hearing carries the
   figures, not the photograph. */
.dlc-masthead__photo {
	display: none !important;
}

/* The figures keep their register, at the scale of the sheet. */
.dlc-fig {
	font-size: 11pt !important;
}

.dlc-tally .dlc-fig {
	font-size: 18pt !important;
}

.dlc-tally {
	display: block !important;
}

.dlc-tally__item {
	margin-bottom: 0.3cm !important;
	border-top-color: #1C2B39 !important;
}

/* On paper the sheet is the measure. The screen centres a 680px column inside
   a 1120px shell; printed, that leaves the prose indented under a scale that
   runs the full page. Everything goes back to one left edge, the margin of
   the sheet itself. */
.dlc-main,
.dlc-main > *,
.wp-block-post-content.is-layout-constrained > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
