/**
 * KCC print sheet (phase H, H-07). Loaded with media="print" beside kcc.css, which stays untouched;
 * every rule is also inside @media print so the sheet can never reach a screen, however it is linked.
 *
 * What a printed page is: the Club's words, tables and content photographs in ink on paper. No
 * header, drawer, sub-navigation, film, booking dialog, form fields or footer navigation; no dark
 * or photographic fills (hero, band, experience-card and section photographs are background images, so
 * they are not printed); every section's words in ink on white; tables with ruled cells, headers
 * repeated on each sheet; the address of an outside link printed after it in running copy and
 * tables. The KCC blue stays an accent (eyebrows, kickers), printed in the deeper blue for paper.
 *
 * Appearance: a ledger entry for Lesah (H-07-print-sheet); not approved until she says so.
 */
@media print {
	@page {
		size: A4;
		margin: 16mm 15mm 18mm;
	}

	/* ---- ink on paper: no fill, photograph, shadow or motion anywhere ---- */
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #162531 !important;
		box-shadow: none !important;
		text-shadow: none !important;
		animation: none !important;
		transition: none !important;
		filter: none !important;
		backdrop-filter: none !important;
	}

	html,
	body,
	body.res-page {
		background: #fff !important;
		font-size: 10.5pt;
	}

	/* Scroll reveals and the hero's entrance start invisible; paper has no scroll. */
	.reveal,
	.hero .kicker,
	.hero h1,
	.hero p.lede,
	.hero-cta {
		opacity: 1 !important;
		transform: none !important;
	}

	/* ---- chrome and interactive parts that mean nothing on paper ---- */
	.skip,
	header.site,
	.subnav,
	.nav-toggle,
	.scroll-cue,
	.hero-media,
	.yt-bg,
	.film,
	.hero-scrim,
	.ph-media,
	.ph-scrim,
	.scrim,
	.bg,
	.hero-cta,
	.ph-cta,
	.enquire-btns,
	.bk-modal,
	dialog,
	.res-book,
	.card-book,
	.yt-embed,
	.yt-play,
	.map-frame,
	iframe,
	video,
	form,
	.form,
	.filters,
	.pagination,
	.foot-logo,
	.foot-col,
	.foot-bottom .socials,
	.foot-bottom .credit,
	.foot-brand p a,
	.member-btn,
	.menu-cta,
	.live-note {
		display: none !important;
	}

	/* Photograph zones that are CSS backgrounds (kcc.css --scene-img): with no fill they would print
	   as empty frames, so the zone goes and its words stay (a figure's caption, a card's text). */
	.split-img,
	.card .card-img,
	.news-card .img,
	.article figure .img,
	.person .portrait,
	.res-visual,
	.tile,
	.xgrid,
	.ig-grid,
	.ig-tile,
	.gallery {
		display: none !important;
	}

	.split {
		display: block !important;
	}

	.split-copy p,
	.intro .body p {
		max-width: none !important;
	}

	/* ---- full-height screens become ordinary blocks ---- */
	.hero,
	.page-hero,
	.band,
	.residences,
	.enquire {
		height: auto !important;
		min-height: 0 !important;
		display: block !important;
		overflow: visible !important;
		padding: 0 0 6mm !important;
		border-bottom: 0.5pt solid #9aa7b0;
		margin-bottom: 6mm;
	}

	.hero-inner,
	.page-hero .ph-inner,
	.band .content,
	.enquire .wrap {
		position: static !important;
		padding: 0 !important;
		max-width: none !important;
		text-align: left !important;
	}

	section,
	.section,
	.intro {
		padding-top: 4mm !important;
		padding-bottom: 4mm !important;
	}

	/* ---- type ---- */
	h1,
	h2,
	h3,
	h4 {
		color: #062a45 !important;
		break-after: avoid;
		page-break-after: avoid;
	}

	h1 {
		font-size: 26pt !important;
	}

	h2 {
		font-size: 19pt !important;
	}

	h1 em,
	h2 em,
	h3 em {
		color: #062a45 !important;
	}

	.eyebrow,
	.kicker,
	.intro .est,
	.date,
	.label {
		color: #005c93 !important;
	}

	p,
	li {
		orphans: 3;
		widows: 3;
	}

	a {
		text-decoration: none;
	}

	/* An outside address after a link in running copy, tables and notes (not buttons or navigation). */
	.prose a[href^="http"]::after,
	.article a[href^="http"]::after,
	.note a[href^="http"]::after,
	table.kcc a[href^="http"]::after,
	.dir-card a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 8pt;
		word-break: break-all;
	}

	.btn-primary,
	.btn-outline,
	.btn-ghost,
	.more {
		border: 0 !important;
		padding: 0 !important;
	}

	/* ---- tables: ruled, never clipped, headers on every sheet ---- */
	.table-wrap {
		overflow: visible !important;
	}

	table.kcc {
		width: 100% !important;
		border-collapse: collapse !important;
		font-size: 9.5pt !important;
	}

	table.kcc thead {
		display: table-header-group;
	}

	table.kcc th,
	table.kcc td,
	table.kcc th[scope="row"] {
		border: 0.5pt solid #7d8b95 !important;
		padding: 2mm 2.5mm !important;
		white-space: normal !important;
	}

	table.kcc tr,
	figure,
	img,
	.card,
	.person,
	.stat,
	.news-card,
	.dir-card,
	.proof-card,
	.acc,
	.timeline > * {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.hide-sm {
		display: table-cell !important;
	}

	/* Accordions print open: their words are content. (Separate rule: an engine without
	   ::details-content drops only this one.) */
	details > *:not(summary) {
		display: block !important;
	}

	details::details-content {
		content-visibility: visible !important;
		display: block !important;
	}

	/* Content photographs print small, never across a whole sheet. */
	main img {
		max-width: 100% !important;
		max-height: 90mm !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
	}

	/* Small marks keep their own size (the social-proof platform marks). */
	main img.plat-icon {
		height: 9mm !important;
		width: auto !important;
	}

	/* ---- footer: the Club's name and address only ---- */
	footer.site {
		border-top: 0.5pt solid #9aa7b0;
		padding: 4mm 0 0 !important;
		margin-top: 6mm;
	}

	.foot-grid {
		display: block !important;
	}

	.foot-bottom {
		border: 0 !important;
		margin: 2mm 0 0 !important;
		padding: 0 !important;
	}

	.foot-bottom .legal a {
		display: none !important;
	}
}
