/* Print. Loaded with media="print", so it never holds up the page on screen.
   Families print Tuition Fees, Entry Requirements and Uniforms: they get black
   text on white, every answer open, link addresses written out, and no
   placeholders, buttons or menus. */

@page {
	margin: 15mm;
}

/* Browsers drop background colours in print, which would leave white text on
   white paper. Everything prints black on white instead. */
*,
*::before,
*::after {
	background: transparent !important;
	box-shadow: none !important;
	color: #000 !important;
	text-shadow: none !important;
}

body {
	font-size: 11pt;
	line-height: 1.45;
}

/* Screen furniture. */
.ssc-utility,
.wp-block-navigation,
.ssc-masthead__actions,
.ssc-rail,
.ssc-breadcrumbs,
.ssc-page-media,
.ssc-band__media,
.ssc-band__strip,
.ssc-crest-detail,
.ssc-hero__media,
.ssc-next,
.wp-block-buttons,
.ssc-band--crest::before,
.ssc-hero__panel::before,
.ssc-page-hero::before,
.ssc-cta::before,
.ssc-identity::before,
.wp-site-blocks > .skip-link {
	display: none !important;
}

/* The white logo would vanish on paper, so print the College's name instead. */
.ssc-masthead {
	display: block !important;
	padding: 0 0 6mm !important;
}

.ssc-brand img {
	display: none !important;
}

.ssc-brand::after {
	content: "St Spyridon College";
	font-family: Raleway, sans-serif;
	font-size: 16pt;
}

header.wp-block-template-part {
	position: static !important;
}

/* Sections run on without screen padding or hidden reveals. */
.ssc-band,
.ssc-page-hero,
.ssc-section {
	opacity: 1 !important;
	padding: 4mm 0 !important;
	translate: none !important;
}

.ssc-reveal {
	opacity: 1 !important;
	translate: none !important;
}

.ssc-band__grid,
.ssc-panels,
.ssc-tiles,
.ssc-orgs,
.ssc-chunks {
	display: block !important;
}

.ssc-panels > *,
.ssc-tiles > *,
.ssc-orgs > *,
.ssc-chunks > * {
	border: 0.3mm solid #737373 !important;
	margin-block-end: 3mm !important;
	padding: 3mm !important;
}

h1 {
	font-size: 22pt;
}

h2,
h3 {
	break-after: avoid;
}

.ssc-band h2 {
	border-block-end: 0.3mm solid #737373 !important;
}

/* Fee and bus tables keep their heading row on every page and never split a row. */
table {
	border-collapse: collapse;
	width: 100%;
}

thead {
	display: table-header-group;
}

tr,
li {
	break-inside: avoid;
}

th,
td {
	border-bottom: 0.3mm solid #737373 !important;
	padding: 2mm !important;
	text-align: left !important;
}

/* Every answer prints open. */
details::details-content {
	content-visibility: visible;
	display: block;
}

/* Link addresses are written out in the page body, so a printed fees page still
   leads to the PDF and the application. */
main a[href^="http"]::after {
	content: " (" attr(href) ")" !important;
	font-size: 9pt;
	mask: none !important;
	-webkit-mask: none !important;
	width: auto !important;
	height: auto !important;
}

/* The footer's addresses and phone numbers stay; its link lists don't. */
.ssc-footer nav {
	display: none !important;
}

.ssc-footer {
	border-top: 0.3mm solid #737373 !important;
	padding: 4mm 0 0 !important;
}

.ssc-footer__brand img {
	display: none !important;
}
