/*
Theme Name: EDZNET Plumber
Theme URI: https://proof.edznet.dev/plumber/
Author: EDZNET
Author URI: https://edznet.dev/
Description: A one-of-a-kind block theme for a Johannesburg plumbing business, shown as Hadeda Plumbing. Emergency first: the homepage opens with a triage ("Geyser burst? Water everywhere? Blocked drain?") giving the safe first steps and big call and WhatsApp buttons, an on-call dial worked out in South African time with public holidays, and a suburb filter grouped by area. Technical-drawing look with hand-drawn SVG line work. Includes services (geysers, solar and heat pumps, leaks, drains, bathrooms, plumbing COCs), rand prices including VAT, an About page with PIRB registration and guarantees, news and a POPIA privacy notice. Fonts are bundled; no third-party requests.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edznet-plumber
Tags: block-patterns, block-styles, full-site-editing, custom-colors, editor-style, one-column, template-editing, translation-ready, wide-blocks, two-columns
*/

/* Tokens: aliases of theme.json presets */
:root {
	--hp-base: var(--wp--preset--color--base);
	--hp-panel: var(--wp--preset--color--panel);
	--hp-sheet: var(--wp--preset--color--sheet);
	--hp-ink: var(--wp--preset--color--ink);
	--hp-ink-soft: var(--wp--preset--color--ink-soft);
	--hp-accent: var(--wp--preset--color--accent);
	--hp-alert: var(--wp--preset--color--alert);
	--hp-ok: var(--wp--preset--color--ok);
	--hp-night: var(--wp--preset--color--night);
	--hp-night-ink: var(--wp--preset--color--night-ink);
	--hp-display: var(--wp--preset--font-family--display);
	--hp-body: var(--wp--preset--font-family--body);
	--hp-line: color-mix(in srgb, var(--hp-ink) 22%, transparent);
	--hp-grid: color-mix(in srgb, var(--hp-ink) 5%, transparent);
	--hp-focus: var(--hp-ink);
	--hp-wa: #25d366;
	--hp-ok-bright: #52c79f;
	--hp-copper-hi: #e9a77f;
	--hp-copper-lo: #6f2b10;
	--hp-callbar-h: 4.25rem;
}

/* Night shift: the dark scheme re-points the presets so every block follows */
@media (prefers-color-scheme: dark) {

	:root:root {
		--wp--preset--color--base: #111518;
		--wp--preset--color--panel: #1b2125;
		--wp--preset--color--sheet: #171c20;
		--wp--preset--color--ink: #e8ebe7;
		--wp--preset--color--ink-soft: #a9b3b5;
		--wp--preset--color--accent: #ec966a;
		--wp--preset--color--alert: #f4b321;
		--wp--preset--color--ok: #5fc7a3;
		--wp--preset--color--night: #0a0d0f;
		--wp--preset--color--night-ink: #eef0ec;
		--hp-focus: #f4b321;
		--hp-grid: rgba(232, 235, 231, 0.035);
		color-scheme: dark;
	}
}

/* Base */
body {
	background-image:
		linear-gradient(var(--hp-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--hp-grid) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	font-variant-numeric: lining-nums;
}

:where(a) {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hp-focus);
	outline-offset: 3px;
}

::selection {
	color: var(--hp-night);
	background: var(--hp-alert);
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Night panels: callbar, hero, footer */
.hp-night {
	--hp-focus: var(--hp-alert);
	--hp-line: rgba(238, 240, 236, 0.22);
	--hp-grid: rgba(238, 240, 236, 0.045);
	color: var(--hp-night-ink);
	background-color: var(--hp-night);
}

.hp-night a:where(:not(.hp-btn):not(.wp-block-button__link)) {
	color: var(--hp-alert);
}

.hp-night .wp-block-heading,
.hp-night .wp-block-site-title a {
	color: var(--hp-night-ink);
}

/* Small furniture */
.hp-label {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.75rem;
	color: var(--hp-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hp-label::after {
	content: "";
	flex: 1;
	min-width: 2rem;
	height: 11px;
	background:
		linear-gradient(currentcolor, currentcolor) center / 100% 1px no-repeat,
		linear-gradient(currentcolor, currentcolor) right center / 1px 11px no-repeat;
	opacity: 0.7;
}

.hp-night .hp-label {
	color: var(--hp-alert);
}

.hp-lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.hp-muted {
	color: var(--hp-ink-soft);
}

.hp-night .hp-muted {
	color: color-mix(in srgb, var(--hp-night-ink) 78%, transparent);
}

.hp-hl {
	padding: 0 0.12em;
	color: var(--hp-night);
	background: var(--hp-alert);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.hp-editor-note {
	display: none;
}

.editor-styles-wrapper .hp-editor-note {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #1e1e1e;
	background: #fff6c8;
	border: 2px dashed #8a6d00;
}

/* Call and WhatsApp buttons: .hp-btn from the blocks, .hp-call / .hp-wa on core Button blocks */
.hp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.hp-btn,
.wp-block-button:is(.hp-call, .hp-wa) > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.1rem;
	padding: 0.7rem 1.2rem;
	color: var(--hp-night);
	font-family: var(--hp-body);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
	background: var(--hp-alert);
	border: 2px solid var(--hp-night);
	border-radius: 2px;
	box-shadow: 3px 3px 0 var(--hp-night);
	transition: translate 0.12s ease, box-shadow 0.12s ease;
}

.hp-btn--wa,
.wp-block-button.hp-wa > .wp-block-button__link {
	background: var(--hp-wa);
}

.hp-btn .hp-icon {
	flex: none;
	width: 1.35rem;
	height: 1.35rem;
}

.hp-btn .hp-icon .hp-cu {
	stroke: currentcolor;
}

.wp-block-button.hp-call {
	--hp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.2' stroke-linejoin='round'%3E%3Cpath d='M15 6h6l3 9-4.5 3a24 24 0 0 0 11 11l3-4.5 9 3v6a4 4 0 0 1-4 4C22 38 10 26 10 10a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
}

.wp-block-button.hp-wa {
	--hp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.2' stroke-linejoin='round'%3E%3Cpath d='M24 5a18 18 0 0 0-15.6 27L5 43l11.3-3.2A18 18 0 1 0 24 5z'/%3E%3Cpath d='M17 16c0 9 6 15 15 15l2.5-3.5-4.5-2-2 2a10 10 0 0 1-5.5-5.5l2-2-2-4.5z'/%3E%3C/svg%3E");
}

.wp-block-button:is(.hp-call, .hp-wa) > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.35rem;
	height: 1.35rem;
	background: currentcolor;
	mask: var(--hp-i) center / contain no-repeat;
}

.hp-btn:hover,
.wp-block-button:is(.hp-call, .hp-wa) > .wp-block-button__link:hover {
	color: var(--hp-night);
	translate: -1px -1px;
	box-shadow: 4px 4px 0 var(--hp-night);
}

.hp-btn:active,
.wp-block-button:is(.hp-call, .hp-wa) > .wp-block-button__link:active {
	translate: 2px 2px;
	box-shadow: 1px 1px 0 var(--hp-night);
}

.hp-night .hp-btn,
.hp-night .wp-block-button:is(.hp-call, .hp-wa) > .wp-block-button__link {
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.hp-icon .hp-cu {
	stroke: var(--hp-accent);
}

/* Core buttons: outline variation */
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: inherit;
	background: transparent;
	border: 2px solid currentcolor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--hp-accent);
}

.hp-night .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--hp-alert);
}

/* Header: emergency call bar */
.hp-callbar {
	position: relative;
	z-index: 20;
	font-size: var(--wp--preset--font-size--small);
}

.hp-callbar__inner {
	gap: 0.5rem 1.5rem;
}

.hp-callbar p {
	margin: 0;
}

.hp-callbar__lead {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
}

.hp-callbar__lead::before {
	content: "";
	flex: none;
	width: 0.7rem;
	height: 0.7rem;
	background: var(--hp-ok-bright);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(82, 199, 159, 0.6);
	animation: hp-pulse 2.4s ease-out infinite;
}

@keyframes hp-pulse {

	70% {
		box-shadow: 0 0 0 10px rgba(82, 199, 159, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(82, 199, 159, 0);
	}
}

.hp-callbar .wp-block-buttons {
	gap: 0.5rem;
}

.hp-callbar .wp-block-button > .wp-block-button__link {
	min-height: 2.5rem;
	padding: 0.4rem 0.9rem;
	font-size: 0.95rem;
	box-shadow: none;
}

/* On phones the call buttons dock to the bottom of the screen and stay there */
@media (max-width: 781px) {

	body {
		padding-bottom: var(--hp-callbar-h);
	}

	.hp-callbar {
		padding-block: 0;
	}

	.hp-callbar__lead {
		padding-block: 0.45rem;
	}

	.hp-callbar .wp-block-buttons {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.45rem;
		height: var(--hp-callbar-h);
		margin: 0;
		padding: 0.5rem;
		background: var(--hp-night);
		box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
	}

	.hp-callbar .wp-block-button,
	.hp-callbar .wp-block-button > .wp-block-button__link {
		width: 100%;
		height: 100%;
		margin: 0;
	}

	.hp-callbar .wp-block-button > .wp-block-button__link {
		font-size: 1rem;
		white-space: nowrap;
	}
}

/* Header: brand and navigation */
.hp-header {
	border-bottom: 1.5px solid var(--hp-ink);
	background: var(--hp-base);
}

.hp-brand {
	gap: 0.8rem;
}

.hp-brand .wp-block-site-title {
	margin: 0;
	letter-spacing: 0.02em;
}

.hp-brand .wp-block-site-tagline {
	margin: 0.25rem 0 0;
	color: var(--hp-ink-soft);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hp-mark {
	display: block;
	flex: none;
	width: 3.2rem;
	height: 3.2rem;
	color: var(--hp-ink);
}

.hp-mark .hp-cu {
	stroke: var(--hp-accent);
}

.hp-mark .hp-mark__eye {
	fill: var(--hp-alert);
	stroke: none;
}

.hp-header .wp-block-navigation {
	counter-reset: hp-nav;
	gap: 0.25rem 1.35rem;
}

.hp-header .wp-block-navigation-item {
	counter-increment: hp-nav;
}

.hp-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.35rem 0;
	text-decoration: none;
}

.hp-header .wp-block-navigation .wp-block-navigation-item__content::before {
	content: counter(hp-nav, decimal-leading-zero);
	margin-right: 0.3rem;
	color: var(--hp-accent);
	font-size: 0.68rem;
	font-weight: 700;
	vertical-align: 0.45em;
}

.hp-header .wp-block-navigation a:hover,
.hp-header .wp-block-navigation a[aria-current="page"] {
	text-decoration: underline 2px var(--hp-accent);
	text-underline-offset: 0.45em;
}

@media (max-width: 781px) {

	.hp-header .wp-block-navigation {
		gap: 0.1rem 1rem;
		font-size: 0.95rem;
	}
}

/* Pipe run: a copper riser down the left of the page, with a tee at each section */
.hp-run {
	position: relative;
}

@media (min-width: 1240px) {

	.hp-run::before,
	.hp-run::after {
		content: "";
		position: absolute;
		left: max(0.5rem, calc((100% - var(--wp--style--global--wide-size)) / 2 - 2.6rem));
		pointer-events: none;
	}

	.hp-run::before {
		top: 0;
		bottom: 0;
		width: 10px;
		background: linear-gradient(90deg, var(--hp-copper-lo), var(--hp-accent) 30%, var(--hp-copper-hi) 48%, var(--hp-accent) 70%, var(--hp-copper-lo));
	}

	.hp-run::after {
		top: calc(var(--wp--preset--spacing--60) - 0.35rem);
		width: 1.6rem;
		height: 1.6rem;
		margin-left: -4px;
		background:
			linear-gradient(180deg, var(--hp-copper-lo), var(--hp-accent) 30%, var(--hp-copper-hi) 48%, var(--hp-accent) 70%, var(--hp-copper-lo)) 14px 50% / calc(100% - 14px) 10px no-repeat,
			linear-gradient(90deg, #5a5f63, #b9bec0 45%, #6c7276) 0 0 / 18px 100% no-repeat;
		border-radius: 2px;
	}
}

/* Hero */
.hp-hero {
	position: relative;
	background-image:
		linear-gradient(var(--hp-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--hp-grid) 1px, transparent 1px);
	background-size: 32px 32px;
	border-bottom: 10px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--hp-alert) 0 16px, var(--hp-night) 16px 32px) 10;
}

.hp-hero h1 {
	margin: 0;
	color: var(--hp-night-ink);
}

.hp-hero .hp-lede {
	max-width: 36rem;
}

.hp-hero .hp-oncall {
	--hp-oncall-arc: var(--hp-ok-bright);
}

/* Inner page masthead */
.hp-masthead {
	position: relative;
	border-bottom: 1.5px solid var(--hp-ink);
}

.hp-masthead h1 {
	margin-top: 0;
}

.hp-masthead .hp-lede {
	max-width: 44rem;
}

/* Section heading with a big index number */
.hp-section-head {
	gap: 1.25rem;
}

.hp-section-head h2 {
	margin: 0;
}

/* Service sheets: drawing plates with a title block */
.hp-cards {
	gap: var(--wp--preset--spacing--30);
}

.hp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--hp-sheet);
	border: 1.5px solid var(--hp-ink);
	box-shadow: var(--wp--preset--shadow--plate);
}

.hp-card > .hp-drawing {
	margin: 0;
	border-bottom: 1.5px solid var(--hp-ink);
}

.hp-card__body {
	flex: 1;
	padding: 1.1rem 1.25rem 1.3rem;
}

.hp-card__body > * {
	margin-block: 0 0.6rem;
}

.hp-card h3 {
	margin: 0 0 0.4rem;
}

.hp-card h3 a {
	color: inherit;
	text-decoration: none;
}

.hp-card h3 a:hover {
	text-decoration: underline 2px var(--hp-accent);
}

.hp-card .hp-from {
	margin-top: auto;
	font-weight: 700;
}

/* Technical drawings */
.hp-drawing {
	margin: 0;
	color: var(--hp-ink);
	background: var(--hp-sheet);
}

.hp-draw {
	display: block;
	width: 100%;
	height: auto;
	stroke-width: 1.6;
}

.hp-icon {
	stroke-width: 2.2;
}

.hp-draw .hp-thin {
	stroke-width: 0.9;
}

.hp-draw .hp-dim {
	stroke-width: 0.8;
	stroke-dasharray: 4 3;
	opacity: 0.55;
}

.hp-draw .hp-cu {
	stroke: var(--hp-accent);
}

.hp-draw .hp-pipe {
	stroke-width: 4.5;
	stroke-linecap: butt;
}

.hp-draw .hp-fill {
	fill: var(--hp-panel);
}

.hp-draw .hp-marker circle {
	fill: var(--hp-alert);
	stroke: var(--hp-night);
	stroke-width: 1.5;
}

.hp-draw .hp-marker text {
	fill: var(--hp-night);
	stroke: none;
	font-family: var(--hp-display);
	font-size: 15px;
	font-weight: 900;
}

.hp-drawing figcaption {
	padding: 0.6rem 1rem;
	color: var(--hp-ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

.hp-titleblock {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	margin: 0;
	border-top: 1px solid var(--hp-line);
	font-size: 0.72rem;
}

.hp-titleblock > div {
	padding: 0.3rem 0.65rem;
	border-left: 1px solid var(--hp-line);
}

.hp-titleblock > div:first-child {
	border-left: 0;
}

.hp-titleblock dt {
	color: var(--hp-ink-soft);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hp-titleblock dd {
	margin: 0;
	font-family: var(--hp-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Supply diagram legend */
.hp-legend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hp-legend;
}

.hp-legend li {
	position: relative;
	padding-left: 2.6rem;
	counter-increment: hp-legend;
}

.hp-legend li::before {
	content: counter(hp-legend);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	color: var(--hp-night);
	font-family: var(--hp-display);
	font-size: 1.1rem;
	font-weight: 900;
	background: var(--hp-alert);
	border: 1.5px solid var(--hp-night);
	border-radius: 50%;
}

.hp-legend strong {
	display: block;
}

/* Rate card */
.hp-rates table {
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.hp-rates thead {
	border-bottom: 2px solid var(--hp-ink);
}

.hp-rates th {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-align: left;
	text-transform: uppercase;
}

.hp-rates td,
.hp-rates th {
	padding: 0.8rem 0.5rem;
	border: 0;
	border-bottom: 1px solid var(--hp-line);
	vertical-align: baseline;
}

.hp-rates td:last-child,
.hp-rates th:last-child {
	text-align: right;
	white-space: nowrap;
}

.hp-rates td:last-child {
	font-family: var(--hp-display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
}

.hp-rates td small {
	display: block;
	color: var(--hp-ink-soft);
	font-size: 0.85rem;
}

.hp-rates figcaption {
	color: var(--hp-ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

/* Registration plate: the "brass plate" with four screws */
.hp-plate {
	position: relative;
	padding: 1.6rem 1.8rem;
	background:
		radial-gradient(circle at 14px 14px, var(--hp-ink-soft) 0 3px, transparent 4px),
		radial-gradient(circle at calc(100% - 14px) 14px, var(--hp-ink-soft) 0 3px, transparent 4px),
		radial-gradient(circle at 14px calc(100% - 14px), var(--hp-ink-soft) 0 3px, transparent 4px),
		radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--hp-ink-soft) 0 3px, transparent 4px),
		var(--hp-panel);
	border: 1.5px solid var(--hp-ink);
}

.hp-plate > :first-child {
	margin-top: 0;
}

.hp-plate > :last-child {
	margin-bottom: 0;
}

.hp-plate .hp-regno {
	font-family: var(--hp-display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
}

/* Notice box */
.hp-notice {
	padding: 1.2rem 1.4rem;
	background: var(--hp-sheet);
	border: 1.5px solid var(--hp-ink);
	border-left-width: 8px;
	border-left-color: var(--hp-alert);
}

.hp-notice > :first-child {
	margin-top: 0;
}

.hp-notice > :last-child {
	margin-bottom: 0;
}

.hp-notice.is-danger {
	border-left-color: var(--hp-accent);
}

/* Numbered procedure (callout markers) */
.hp-steps {
	display: grid;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hp-step;
}

.hp-steps.is-row {
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.hp-steps li {
	position: relative;
	padding: 0.2rem 0 0 3rem;
	counter-increment: hp-step;
}

.hp-steps li::before {
	content: counter(hp-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	color: var(--hp-base);
	font-family: var(--hp-display);
	font-size: 1.2rem;
	font-weight: 900;
	background: var(--hp-ink);
	border-radius: 50%;
}

.hp-steps strong {
	display: block;
}

/* Check list */
.hp-ticks {
	padding: 0;
	list-style: none;
}

.hp-ticks li {
	position: relative;
	margin-bottom: 0.4rem;
	padding-left: 1.7rem;
}

.hp-ticks li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0.1rem;
	width: 0.9rem;
	height: 0.5rem;
	border-bottom: 2.5px solid var(--hp-ok);
	border-left: 2.5px solid var(--hp-ok);
	rotate: -45deg;
}

/* Stat strip */
.hp-stats {
	gap: 0;
	border-block: 1.5px solid var(--hp-ink);
}

.hp-stats > .wp-block-group {
	padding: 1rem 1.25rem;
	border-left: 1px solid var(--hp-line);
}

.hp-stats > .wp-block-group:first-child {
	border-left: 0;
}

.hp-stats .hp-stat {
	margin: 0;
	font-family: var(--hp-display);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 900;
	line-height: 1;
}

.hp-stats p:not(.hp-stat) {
	margin: 0.3rem 0 0;
	color: var(--hp-ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

/* Service sections on the Services page */
.hp-service {
	scroll-margin-top: 1rem;
	border-top: 1.5px solid var(--hp-ink);
}

.hp-service h2 {
	margin-top: 0;
}

/* News */
.hp-post-card {
	height: 100%;
	padding: 1.3rem 1.4rem;
	background: var(--hp-sheet);
	border: 1.5px solid var(--hp-ink);
	border-top: 8px solid var(--hp-accent);
}

.hp-post-card .wp-block-post-title {
	margin-block: 0.4rem;
	text-transform: none;
}

.hp-post-card .wp-block-post-excerpt__more-link {
	font-weight: 700;
}

.wp-block-query-pagination {
	font-weight: 700;
}

.wp-block-quote {
	padding-left: 1.4rem;
	border-left: 6px solid var(--hp-alert);
}

.wp-block-quote cite {
	color: var(--hp-ink-soft);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

/* FAQ */
.wp-block-details {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--hp-line);
}

.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details summary::marker {
	color: var(--hp-accent);
}

/* Tables in content */
.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--hp-line);
}

/* Footer */
.hp-footer {
	font-size: var(--wp--preset--font-size--small);
	border-top: 10px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--hp-alert) 0 16px, var(--hp-night) 16px 32px) 10;
}

.hp-footer h2 {
	margin-bottom: 0.6rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.hp-footer p {
	margin-block: 0.25rem;
}

.hp-footer .hp-footer__legal {
	padding-top: 1rem;
	border-top: 1px solid rgba(238, 240, 236, 0.2);
}

.hp-footer .hp-footer__legal p {
	color: color-mix(in srgb, var(--hp-night-ink) 80%, transparent);
}

.hp-footer .hp-mark {
	color: var(--hp-night-ink);
}

/* 404 */
.hp-empty .hp-draw {
	width: min(16rem, 70%);
	margin-inline: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

	.hp-callbar__lead::before,
	.hp-oncall__lamp {
		animation: none;
	}

	.hp-btn {
		transition: none;
	}
}

/* Print: emergency steps print cleanly for the fridge door */
@media print {

	body {
		padding: 0;
		background: #fff;
	}

	.hp-callbar,
	.hp-header nav,
	.hp-footer {
		display: none;
	}

	.hp-night {
		color: #000;
		background: #fff;
	}
}

/* Long-form text: legal pages and posts */
.hp-prose h2,
.wp-block-post-content > h2 {
	margin-top: 2.2rem;
	font-size: var(--wp--preset--font-size--x-large);
	text-transform: none;
}

/* Template parts sit flush: no gap between header, main and footer */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.hp-night :is(h1, h2, h3, h4) {
	color: var(--hp-night-ink);
}

.hp-from {
	font-weight: 700;
}

.hp-drawing.hp-card {
	height: auto;
}

.hp-masthead + .hp-service {
	border-top: 0;
}
