/**
 * Axsia Howmar — print stylesheet (loaded with media="print").
 *
 * Engineers print parameter tables, troubleshooting sections and part pages
 * for shutdown packs. Goal: clean black-on-white, no navigation, tables that
 * do not split rows, link targets visible, company identity on the sheet.
 */

@page {
	margin: 18mm 16mm 20mm;
}

:root,
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
	color-scheme: light;
	--ax-bg: #ffffff;
	--ax-surface: #ffffff;
	--ax-surface-2: #ffffff;
	--ax-ink: #000000;
	--ax-muted: #333333;
	--ax-border: #999999;
	--ax-border-strong: #000000;
	--ax-accent: #000000;
	--ax-accent-ink: #ffffff;
	--ax-inverse-bg: #ffffff;
	--ax-inverse-ink: #000000;
	--ax-inverse-accent: #000000;
}

html {
	font-size: 10.5pt;
}

body {
	background: #ffffff !important;
	color: #000000 !important;
	line-height: 1.45;
}

/* Remove everything that is navigation, action or decoration. */
header.wp-block-template-part nav,
footer.wp-block-template-part nav,
.wp-block-navigation,
.wp-block-search,
.wp-block-buttons,
.wp-block-button,
.skip-link,
.ax-no-print,
.ax-cta-band,
.ax-basket,
.ax-theme-toggle,
.ax-unit-toggle,
.ax-breadcrumbs,
form,
video,
audio,
iframe {
	display: none !important;
}

/* Collapsed disclosure content must print in full. */
details {
	display: block;
}

details > * {
	display: block !important;
}

details > summary {
	font-weight: 600;
	list-style: none;
}

details > summary::-webkit-details-marker {
	display: none;
}

[hidden].ax-print-reveal {
	display: block !important;
}

.has-background {
	background: #ffffff !important;
}

.has-inverse-background-color,
.has-inverse-background-color * {
	color: #000000 !important;
}

/* Layout: use the full sheet. */
.wp-site-blocks,
.is-layout-constrained > * {
	max-width: none !important;
	padding-inline: 0 !important;
}

h1,
h2,
h3,
h4 {
	break-after: avoid;
	page-break-after: avoid;
	color: #000000;
}

h1 {
	font-size: 20pt;
}

h2 {
	margin-top: 16pt;
	font-size: 14pt;
}

h3 {
	font-size: 12pt;
}

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

figure,
img,
svg,
.ax-card {
	break-inside: avoid;
	page-break-inside: avoid;
}

img,
svg {
	max-width: 100% !important;
}

/* Tables: repeat header, never split a row. */
.wp-block-table,
.ax-table-wrap {
	overflow: visible !important;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 9pt;
}

thead {
	display: table-header-group;
}

thead th {
	position: static !important;
	border-bottom: 1.5pt solid #000000 !important;
	background: #ffffff !important;
}

tr {
	break-inside: avoid;
	page-break-inside: avoid;
}

th,
td {
	border-bottom: 0.5pt solid #999999 !important;
	padding: 3pt 5pt !important;
}

/* Both unit systems print, regardless of the on-screen toggle. */
[data-unit-system][hidden] {
	display: revert !important;
}

/* Links: keep underline, show external targets. */
a,
a:visited {
	color: #000000 !important;
	text-decoration: underline;
}

main a[href^="http"]:not([href*="axsiahowmar.com"])::after {
	content: " (" attr(href) ")";
	font-size: 8pt;
	word-break: break-all;
}

abbr[title]::after {
	content: " (" attr(title) ")";
}

/* Identity and disclaimer on the printed sheet. */
main::after {
	content: "Printed from www.axsiahowmar.com. Axsia Howmar, company number 17467149, registered office: Devonshire House, 582 Honeypot Lane, Stanmore, Greater London, HA7 1JS. General information only; confirm suitability against your equipment data and operating conditions.";
	display: block;
	margin-top: 18pt;
	padding-top: 6pt;
	border-top: 0.5pt solid #000000;
	font-size: 8pt;
	line-height: 1.35;
}
