/*
Theme Name: OTE Print Craft
Theme URI: https://oteprint.com
Author: Over The Edge Design & Print
Author URI: https://oteprint.com
Description: Block theme for Over The Edge Design & Print (Direction B, "Print Craft"). Design tokens live in theme.json; this file holds only what theme.json cannot express (print marks, hover states, breakpoints, layout details). No JavaScript libraries, no third-party requests.
Version: 0.3.4
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ote-print-craft
Update URI: false
*/

/* ---------------------------------------------------------------- */
/* Fonts: only the one that theme.json cannot hold. Inter and        */
/* IBM Plex Sans are declared in theme.json (fontFace). IBM Plex Mono */
/* is a small accent (kickers, spec numbers) and stays out of the     */
/* editor's font list on purpose, so it is declared here.             */
/* ---------------------------------------------------------------- */

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 600: spec table headers only (M3-04, 0.3.0), so browsers fetch it only on pages with a
   spec table (Equipment, Services). Same Fontsource 5.3.0 build and range as 400. */
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- */
/* Aliases: short names for theme.json values, so the rules below    */
/* read like the prototype. Nothing here is a new colour or size.     */
/* ---------------------------------------------------------------- */

:root {
	--color-primary: var(--wp--preset--color--primary);
	--color-primary-hover: var(--wp--custom--color--primary-hover);
	--color-red-tint: var(--wp--preset--color--red-tint);
	--color-accent: var(--wp--custom--color--accent);
	--color-background: var(--wp--preset--color--background);
	--color-surface: var(--wp--preset--color--surface);
	--color-ink: var(--wp--preset--color--ink);
	--color-text: var(--wp--preset--color--ink);
	--color-text-secondary: var(--wp--preset--color--text-secondary);
	--color-hairline: var(--wp--preset--color--hairline);
	--color-background-rgb: 250, 250, 249;
	--color-ink-rgb: 26, 26, 26;
	--font-mono: var(--wp--custom--typography--mono);
	--radius-sm: var(--wp--custom--radius--sm);
	--radius-md: var(--wp--custom--radius--md);
	--radius-pill: var(--wp--custom--radius--pill);
}

/* ---------------------------------------------------------------- */
/* Base                                                              */
/* ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	/* The sticky header is 83px tall (139px on phones, where Get a Quote wraps to a
	   second row): keep focused elements clear of it (WCAG 2.4.11). */
	scroll-padding-top: 96px;
}

body {
	/* Kept from the prototype for now; M3 to decide whether to drop it (docs/theme-design.md section 9). */
	overflow-x: hidden;
	overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

/* Keyboard focus (decision 11): 2px outline on every focusable element. */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.site-footer :focus-visible,
.is-style-cta-banner :focus-visible {
	outline-color: var(--color-background);
}

/* Links in running text are underlined (decision 12). Links that stand alone
   (navigation, buttons, footer, link notes, brand) are not. */
.site-header a,
.site-footer a,
.wp-block-button__link,
.wp-block-navigation a,
.is-style-link-note a,
.wp-block-post-title a {
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.is-style-link-note a:hover,
.is-style-link-note a:focus-visible {
	text-decoration: underline;
}

/* The block gap (16px) is the default rhythm between blocks. Full-width
   sections handle their own spacing. */
.ote-main,
.ote-main > *,
.ote-section,
.ote-hero,
.ote-page-lead,
.ote-page-header {
	margin-block: 0;
}

.wp-site-blocks > footer.wp-block-template-part { margin-block-start: var(--wp--preset--spacing--64); }

.ote-section-heading { margin-block-end: 0; }
.ote-section-heading + * { margin-block-start: var(--wp--preset--spacing--32); }

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--8);
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button:not(.is-style-secondary):not(.is-style-outline) .wp-block-button__link {
	border-color: var(--color-primary);
}

.wp-block-button:not(.is-style-secondary):not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-secondary):not(.is-style-outline) .wp-block-button__link:focus-visible {
	border-color: var(--color-primary-hover);
}

/* Secondary button (the core "Outline" style looks the same). */
.wp-block-button.is-style-secondary .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--color-ink);
	border-color: var(--color-ink);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:focus-visible,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: var(--color-ink);
	color: var(--color-surface);
}

/* ---------------------------------------------------------------- */
/* Header and navigation                                             */
/* ---------------------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header {
	background: var(--color-background);
	border-bottom: 1px solid var(--color-hairline);
}

.site-header__inner {
	padding-top: var(--wp--preset--spacing--16);
	padding-bottom: var(--wp--preset--spacing--16);
	gap: var(--wp--preset--spacing--16);
}

.site-header .brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.brand-logo {
	display: block;
	height: 40px;
	width: auto;
}

/* Header buttons (M3-01 option E, 0.3.0): Pay Online, an outlined pill, then Get a Quote.
   Shown at every width; on phones they share a second row under the logo and menu button. */
.header-cta {
	flex-shrink: 0;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
}

/* Pay Online: outlined pill (sitemap.json: must look different from the other items).
   Same size and type as the 0.2.x menu pill: 112px x 33.5px with Inter. */
.header-cta .wp-block-button.header-cta__pay .wp-block-button__link {
	background: transparent;
	border-color: var(--color-primary);
	border-radius: var(--radius-pill);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	color: var(--color-primary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: normal;
	text-transform: uppercase;
}

/* Decision 10: darker red text on the tint, so small text keeps 4.5:1. */
.header-cta .wp-block-button.header-cta__pay .wp-block-button__link:hover,
.header-cta .wp-block-button.header-cta__pay .wp-block-button__link:focus-visible {
	background: var(--color-red-tint);
	border-color: var(--color-primary);
	color: var(--color-primary-hover);
}

.primary-nav {
	font-size: var(--wp--preset--font-size--base);
}

.primary-nav .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--24);
	flex-wrap: wrap;
}

/* Links stay inline, as in the prototype, so the underline hugs the text. */
.primary-nav .wp-block-navigation-item { display: block; }

.primary-nav .wp-block-navigation-item__content {
	display: inline;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-ink);
	padding: var(--wp--preset--spacing--4) 0;
	border-bottom: 1px solid transparent;
}

.primary-nav .wp-block-navigation-item__content:hover,
.primary-nav .wp-block-navigation-item__content:focus-visible,
.primary-nav .wp-block-navigation-item__content[aria-current="page"] {
	border-bottom-color: var(--color-primary);
}

/* The menu button, shown below 1024px (the header cannot hold 6 items and the two
   buttons at tablet width). Core would switch at 600px; the navigation is set to
   "always collapsed" and shown inline again from 1024px. */
.primary-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-sm);
	color: var(--color-ink);
}

@media (min-width: 1024px) {
	/* Space between menu items follows the width the header row really has (M3-01 "C+",
	   0.3.0): 24px when there is room, less as the row narrows, at least 8px, so logo,
	   6 items and the two buttons stay on one row from 1024px, also with a 17px classic
	   scroll bar. Narrower than that, the items wrap to a second row as before.
	   921px = what the row holds besides the 5 gaps, measured in Chromium on 0.3.0
	   (2026-10-12, local Playground): logo 186.6 + header gaps 2 x 16 + 6 item labels
	   415.9 (39.96 + 64.59 + 78.89 + 41.06 + 64.2 + 127.23) + buttons 269.5 (Pay Online
	   112.3 + 16 + Get a Quote 141.2) = 904.0, plus 17 spare (one row while the 5 gaps sum
	   to at most 100cqi - 904). Re-measure and change 921 when menu labels, the logo or the
	   button labels change. Only from 1024px: container-type also makes the row the
	   containing block of positioned children, and below 1024px the open menu drawer is
	   positioned against .site-header. */
	.site-header__inner { container-type: inline-size; }

	.primary-nav .wp-block-navigation__container {
		column-gap: clamp(8px, calc((100cqi - 921px) / 5), 24px);
	}

	.primary-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}

	.primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		position: static;
		width: auto;
		background: transparent;
		color: inherit;
		z-index: auto;
	}

	.primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}
}

/* Open menu (below 1024px): a drawer under the header, like the prototype,
   instead of core's full-screen overlay. Relies on core's .is-menu-open class. */
.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--color-background);
	color: var(--color-ink);
}

.primary-nav .is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--16);
	width: 100%;
}

@media (max-width: 1023px) {
	.site-header { position: relative; }

	.primary-nav { position: static; }

	.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: absolute;
		top: 100%;
		right: 0;
		bottom: auto;
		left: 0;
		height: auto;
		padding: 0 var(--wp--preset--spacing--24);
		border-bottom: 1px solid var(--color-hairline);
	}

	.primary-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		padding: var(--wp--preset--spacing--24) 0;
	}

	.primary-nav .is-menu-open .wp-block-navigation__responsive-container-close {
		top: var(--wp--preset--spacing--8);
		right: 0;
	}
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.site-footer {
	padding-top: var(--wp--preset--spacing--64);
	padding-bottom: var(--wp--preset--spacing--32);
}

.site-footer a { color: var(--color-background); }

.site-footer .footer-grid {
	gap: var(--wp--preset--spacing--32);
	padding-bottom: var(--wp--preset--spacing--32);
	border-bottom: 1px solid rgba(var(--color-background-rgb), 0.15);
}

.footer-heading {
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(var(--color-background-rgb), 0.6);
	margin-block-end: var(--wp--preset--spacing--16);
}

.site-footer .footer-grid > * > .footer-heading { margin-block-start: 0; }

.footer-nav-list .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--8);
}

/* Find Us links keep the default paragraph spacing (16px below), as in the prototype. */
.site-footer .footer-grid > :last-child p:not(.footer-heading) {
	margin-block-end: var(--wp--preset--spacing--16);
}

.footer-contact p:not(.footer-heading) {
	margin-block: 0 var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--xs);
	color: rgba(var(--color-background-rgb), 0.8);
}

.footer-bottom {
	margin-block-start: 0;
	padding-top: var(--wp--preset--spacing--24);
	gap: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--xs);
	color: rgba(var(--color-background-rgb), 0.6);
}

.footer-bottom p { margin: 0; }

/* Privacy Policy link (0.2.3, option A): the "·" between the copyright text and the
   link. The pattern writes no spaces around it; this margin is the gap on each side. */
.footer-bottom__sep { margin-inline: var(--wp--preset--spacing--4); }

/* Registration dots: print-marks micro-system, use 1 of 2-3 site-wide. */
.registration-dots {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	vertical-align: middle;
}

.registration-dots span {
	width: 4px;
	height: 4px;
	border-radius: var(--radius-pill);
	display: inline-block;
}

.registration-dots .dot-ink { background: var(--color-ink); }
.registration-dots .dot-gray { background: var(--color-text-secondary); }
.registration-dots .dot-red { background: var(--color-primary); }
.registration-dots .dot-yellow { background: var(--color-accent); }

/* The footer is dark, so the ink dot is inverted there. */
.footer-bottom .registration-dots .dot-ink {
	background: var(--color-background);
	opacity: 0.6;
}

/* ---------------------------------------------------------------- */
/* Block styles (styles/blocks/*.json hold the base; hover and        */
/* details are here)                                                  */
/* ---------------------------------------------------------------- */

/* Lead paragraph. It is narrower than the column, so it must stay at the column's
   left edge instead of being centred like other children of a constrained group. */
.is-style-lead {
	max-width: 65ch;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* Kicker: small mono label above a heading. */
.is-style-kicker {
	display: block;
	margin-block-end: 0;
}

/* Link note: a quiet pointer line, link in red bold. */
.is-style-link-note a {
	color: var(--color-primary);
	font-weight: 600;
}

/* Hairline separator. */
.wp-block-separator.is-style-hairline {
	height: 1px;
	border: 0;
	opacity: 1;
}

/* Card: a surface block on the paper; border turns red on hover (inside a card grid). */
.is-style-card { transition: border-color 0.15s ease; }

.ote-card-grid > .is-style-card:hover { border-color: var(--color-primary); }

/* Callout and CTA banner. */
.is-style-callout .ote-callout__heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--md);
}

.is-style-cta-banner h2,
.is-style-cta-banner p { margin: 0; }

.is-style-cta-banner p { max-width: 60ch; }

/* Crop marks: print-marks micro-system, one per screen at most (hero photo; Work cards on hover). */
.ote-crop-marks,
.wp-block-image.is-style-crop-marks {
	position: relative;
}

.ote-crop-marks::before,
.ote-crop-marks::after,
.wp-block-image.is-style-crop-marks::before,
.wp-block-image.is-style-crop-marks::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.ote-crop-marks::before,
.wp-block-image.is-style-crop-marks::before {
	top: -1px;
	left: -1px;
	border-top: 1px solid rgba(var(--color-ink-rgb), 0.35);
	border-left: 1px solid rgba(var(--color-ink-rgb), 0.35);
}

.ote-crop-marks::after,
.wp-block-image.is-style-crop-marks::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 1px solid rgba(var(--color-ink-rgb), 0.35);
	border-right: 1px solid rgba(var(--color-ink-rgb), 0.35);
}

/* Photo slot placeholder (retired when the real photos arrive, T3). */
.ote-photo-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--4);
	min-height: 200px;
	padding: var(--wp--preset--spacing--24);
	text-align: center;
	background: var(--color-surface);
	border: 1px dashed var(--color-hairline);
	border-radius: var(--radius-md);
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
}

.ote-photo-frame p { margin: 0; }

.ote-photo-frame__label {
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- */
/* Sections                                                          */
/* ---------------------------------------------------------------- */

.ote-section {
	padding-top: var(--wp--preset--spacing--64);
	padding-bottom: var(--wp--preset--spacing--64);
	border-top: 1px solid var(--color-hairline);
}

.ote-section-heading { margin-bottom: 0; }

/* Page title area (page.html and 404). Title size: option B (Ben 2026-10-04), 39px;
   phones below. Headings follow theme.json (h2 31.25px, h3 25px). */
.ote-page-header { padding-top: var(--wp--preset--spacing--48); }

.ote-page-header h1,
.ote-page-header .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xxl);
	margin-bottom: 0;
}

.ote-page-header .is-style-lead {
	margin-block-start: var(--wp--preset--spacing--16);
	padding-bottom: var(--wp--preset--spacing--48);
}

.ote-page-lead {
	padding-top: var(--wp--preset--spacing--16);
	padding-bottom: var(--wp--preset--spacing--48);
}

/* Privacy Policy only (K-02, 0.3.0; WordPress gives that page's body the class
   privacy-policy): the paragraphs under the lead are as wide as the lead (81ch of body
   text, about 818px) and keep its left edge, instead of running the full 1152px. */
.privacy-policy .ote-page-lead > .wp-block-paragraph:not(.is-style-lead) {
	max-width: 81ch;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* Hero. */
.ote-hero {
	padding-top: var(--wp--preset--spacing--64);
	padding-bottom: var(--wp--preset--spacing--64);
}

.ote-hero .ote-hero__grid {
	gap: var(--wp--preset--spacing--48);
	align-items: center;
}

.ote-hero__copy { min-width: 0; }

.ote-hero__copy .is-style-kicker {
	display: inline-block;
	margin-block-end: var(--wp--preset--spacing--16);
}

.ote-hero__copy h1 {
	margin-block: 0;
}

.ote-hero__lede {
	margin-block-start: var(--wp--preset--spacing--24);
	max-width: 42ch;
	font-size: var(--wp--preset--font-size--md);
	color: var(--color-text-secondary);
}

.ote-hero__actions { margin-block-start: var(--wp--preset--spacing--32); }

.ote-hero .ote-photo-frame { min-height: 320px; }

/* Hero and Services photos (0.3.1; AI placeholders until the real photos replace them):
   an Image block from the Media Library fills its column. Hero 4:3, 4:5 on phones (the
   source is 4:3; cover keeps the middle 60% of its width there, so the subject belongs in
   the middle 60%: design/photo-specs/photo-requirements.md, Hero). Services 4:3 beside the
   text (from 1024px), 3:2 when the entry is one column (up to 1023px). In one column the
   photo does not fill the column: Hero (up to 767px) at most 480px wide, Services (up to
   1023px) at most 600px wide, left-aligned with the text; the limit is on the figure, so
   the Hero's crop marks stay on the photo's corners (the media queries are at the end of
   this file; keep the sizes attribute in functions.php in step). Corners as the other
   images (--radius-md); no margin of the figure itself (the grid gap spaces the columns).
   The Hero keeps its crop marks (is-style-crop-marks); Services photos have none. */
.ote-hero .wp-block-image,
.ote-service-entry > .wp-block-image { margin: 0; }

.ote-hero .wp-block-image img,
.ote-service-entry > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-md);
}

/* Card grid. */
.ote-section .ote-card-grid { gap: var(--wp--preset--spacing--24); }

.ote-card-grid > * { min-width: 0; }

.ote-card-grid h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
}

.ote-card-grid p {
	margin-block: var(--wp--preset--spacing--8) 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--color-text-secondary);
}

/* Trust list. */
.ote-trust-intro {
	max-width: 60ch;
	font-size: var(--wp--preset--font-size--md);
}

.ote-trust-credential {
	margin-block-start: var(--wp--preset--spacing--24);
	color: var(--color-text);
}

.ote-section .ote-trust-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
	margin-inline: 0;
	padding: 0;
}

.ote-trust-list li {
	position: relative;
	padding-left: var(--wp--preset--spacing--24);
}

.ote-trust-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 1px;
	background: var(--color-primary);
}

/* BNI badge: third-party mark, used as supplied (no recolour, no distortion). */
.ote-bni-badge {
	display: inline-block;
	height: var(--wp--preset--spacing--32);
	width: auto;
	vertical-align: middle;
	margin-left: var(--wp--preset--spacing--8);
}

.ote-bni-badge--lead {
	margin-left: 0;
	margin-right: var(--wp--preset--spacing--8);
}

.ote-bni-badge-row .ote-bni-badge {
	display: block;
	margin: var(--wp--preset--spacing--16) 0 0;
}

/* Service entries. */
.ote-section .ote-service-entry {
	grid-template-columns: 1fr 1.4fr;
	align-items: start;
	gap: var(--wp--preset--spacing--32);
	padding: var(--wp--preset--spacing--48) 0;
	border-top: 1px solid var(--color-hairline);
	margin-block: 0;
}

.ote-service-entry:first-child {
	border-top: none;
	padding-top: 0;
}

.ote-service-entry > * { min-width: 0; }

/* A paragraph that ends the text column keeps its 16px bottom margin (prototype; Canva guide). */
.ote-section .ote-service-entry > :last-child > p:last-child { margin-block-end: var(--wp--preset--spacing--16); }

.ote-service-index {
	display: block;
	margin-block-end: 0;
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	color: var(--color-primary);
}

.ote-service-index + h2 { margin-block: var(--wp--preset--spacing--8) 0; }

.ote-service-entry .ote-service-lede {
	margin-block: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--md);
	color: var(--color-text-secondary);
}

/* A link note straight after the lede (Services 05): 8px above, 16px below, as in
   the prototype (Ben 2026-10-03). Only after the lede: elsewhere the prototype keeps
   16px above a link note (page leads, Find Us, Contact). */
.ote-service-entry .ote-service-lede + .is-style-link-note {
	margin-block: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}

.ote-service-subgroup {
	margin-block: var(--wp--preset--spacing--16) 0;
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.ote-service-entry ul.ote-service-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--24);
	margin-block: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	padding: 0;
}

.ote-service-list + .ote-service-subgroup { margin-block-start: var(--wp--preset--spacing--24); }

.ote-service-list li {
	position: relative;
	padding-left: var(--wp--preset--spacing--16);
}

.ote-service-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 1px;
	background: var(--color-primary);
}

/* Industry list (option E, T4): name above, three typical products below. */
.ote-section .ote-industry-tags {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--32);
	margin-inline: 0;
	padding: 0;
}

.ote-section .ote-industry-tags li {
	position: relative;
	padding: 20px 0 24px;
	border-top: 1px solid var(--color-hairline);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.55;
	color: var(--color-text-secondary);
}

.ote-section .ote-industry-tags li::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 24px;
	height: 2px;
	background: var(--color-primary);
}

.ote-section .ote-industry-tags li strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text);
}

/* Spec table. */
.wp-block-table.is-style-spec-table {
	position: relative;
	overflow-x: auto;
}

.is-style-spec-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--xs);
}

.is-style-spec-table th,
.is-style-spec-table td {
	text-align: left;
	padding: var(--wp--preset--spacing--16);
	border: 0;
	border-bottom: 1px solid var(--color-hairline);
	vertical-align: top;
}

.is-style-spec-table thead { border-bottom: 0; }

.is-style-spec-table thead th {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-secondary);
	font-weight: 600;
}

.is-style-spec-table td:last-child,
.is-style-spec-table th:last-child { font-family: var(--font-mono); }

.is-style-spec-table tbody td:first-child {
	font-weight: 600;
	color: var(--color-ink);
	font-family: var(--wp--preset--font-family--body);
}

/* Machine thumbnail (0.3.2, Equipment; AI placeholders until the real photos replace them):
   an inline image in the first cell, above the machine name. 4:3, shown at 120x90 whatever
   the file's size (cover keeps the whole 4:3 frame), corners as the other photos
   (--radius-md), --wp--preset--spacing--8 above the name. Block, so the name starts on its
   own line without a <br> in the cell. The sizes attribute (functions.php) is 120px. On
   phones the table keeps scrolling sideways (.wp-block-table above); no other column changes. */
.is-style-spec-table tbody td:first-child img {
	display: block;
	width: 120px;
	max-width: none;
	height: 90px;
	margin-bottom: var(--wp--preset--spacing--8);
	object-fit: cover;
	border-radius: var(--radius-md);
}

/* ---------------------------------------------------------------- */
/* Page lead extras (About, File Prep, Canva guide)                   */
/* ---------------------------------------------------------------- */

/* A link note under the lead keeps the lead's left edge, width and size: in the
   prototype's page header it is set like the lead (20px, 65ch), the link red and bold. */
.ote-page-lead .is-style-link-note {
	font-size: var(--wp--preset--font-size--md);
	max-width: 65ch;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* ---------------------------------------------------------------- */
/* Work: service-line groups (pattern portfolio-group)                */
/* ---------------------------------------------------------------- */

.ote-section .ote-portfolio-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--24);
}

.ote-portfolio-grid > * { min-width: 0; }

/* The next service line's heading follows the previous grid directly (prototype). */
.ote-section .ote-portfolio-group + .ote-portfolio-group { margin-block-start: 0; }

.ote-portfolio-card { position: relative; }

.ote-section .ote-portfolio-card > * { margin-block: 0; }

.ote-portfolio-card .ote-photo-frame { min-height: 220px; }

.ote-section .ote-portfolio-card > .ote-portfolio-card__caption {
	margin-block-start: var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--color-text-secondary);
}

/* Crop marks on Work cards appear only on hover / keyboard focus (one per screen). */
.ote-portfolio-card .ote-crop-marks::before,
.ote-portfolio-card .ote-crop-marks::after,
.ote-portfolio-grid .is-style-crop-marks::before,
.ote-portfolio-grid .is-style-crop-marks::after {
	opacity: 0;
	transition: opacity 0.15s ease;
}

.ote-portfolio-card:hover .ote-crop-marks::before,
.ote-portfolio-card:hover .ote-crop-marks::after,
.ote-portfolio-card:focus-within .ote-crop-marks::before,
.ote-portfolio-card:focus-within .ote-crop-marks::after,
.ote-portfolio-grid .is-style-crop-marks:hover::before,
.ote-portfolio-grid .is-style-crop-marks:hover::after,
.ote-portfolio-grid .is-style-crop-marks:focus-within::before,
.ote-portfolio-grid .is-style-crop-marks:focus-within::after {
	opacity: 1;
}

/* Work photos (layout B, Ben 2026-10-06; 0.2.2): an Image block from the Media Library in
   each card, shown 4:3 (the exports are 4:3; cover keeps a stray size from distorting).
   Crop marks show when the pointer is anywhere on the card, caption included. */
.ote-portfolio-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ote-portfolio-card:hover .is-style-crop-marks::before,
.ote-portfolio-card:hover .is-style-crop-marks::after {
	opacity: 1;
}

/* "Show 3 more … jobs": core Details block under each service line's first three photos.
   The summary is a red link-style line with a round +/− icon drawn by CSS (no text, so
   screen readers read only the summary itself, which also announces open / closed).
   24px under the grid above it, 32px above the next service line; the opened grid sits
   24px under the summary. Focus: the 2px outline every focusable element gets. */
.ote-section .ote-portfolio-more {
	margin-block: var(--wp--preset--spacing--24) var(--wp--preset--spacing--32);
}

.ote-portfolio-more > summary {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	min-height: var(--wp--preset--spacing--24);
	list-style: none;
	cursor: pointer;
	color: var(--color-primary);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
}

.ote-portfolio-more > summary::-webkit-details-marker { display: none; }

.ote-portfolio-more > summary::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 2px solid currentColor;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
}

.ote-portfolio-more[open] > summary::before {
	background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat;
}

.ote-portfolio-more > summary:hover,
.ote-portfolio-more > summary:focus-visible {
	text-decoration: underline;
}

.ote-section .ote-portfolio-more > .ote-portfolio-grid {
	margin-block-start: var(--wp--preset--spacing--24);
}

/* CTA banner 48px below the content above it, in the same section (Work). */
.ote-section .ote-cta-banner-spaced { margin-block-start: var(--wp--preset--spacing--48); }

/* Banner text with a heading above the sentence (Canva guide closing). */
.is-style-cta-banner .ote-cta-banner__text > * + * { margin-block-start: var(--wp--preset--spacing--16); }

/* ---------------------------------------------------------------- */
/* Home: Find Us map (pattern find-us-map; drawn by functions.php and */
/* assets/js/find-us.js; task R, design/find-us-map/preview.html).    */
/* The page holds the sentence and the walk-time list; the theme puts */
/* the map in front of the list, and the script hides the list once   */
/* it has turned it into buttons. Theme colours only.                 */
/* ---------------------------------------------------------------- */

/* Sentence 16px under the address line, map 32px under the sentence (preview). */
.ote-section-heading + .ote-find-us { margin-block-start: var(--wp--preset--spacing--16); }
.ote-find-us > .ote-find-us__intro { margin-block: 0; }
.ote-find-us > .ote-find-us__layout,
.ote-find-us > .ote-find-us__walks { margin-block-start: var(--wp--preset--spacing--32); }

.ote-find-us__layout {
	display: grid;
	grid-template-columns: 4fr 1fr;
	grid-template-areas:
		"map landmarks"
		"walk .";
	column-gap: var(--wp--preset--spacing--24);
	align-items: start;
	max-width: 800px;
	margin-inline: auto;
}

.ote-find-us__map {
	grid-area: map;
	position: relative;
	aspect-ratio: 3 / 2;
	max-width: 100%;
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
	overflow: hidden;
	--ote-road-1: 7px;
	--ote-road-2: 5px;
	--ote-road-3: 3px;
}

.ote-find-us__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ote-find-us__art .ote-find-us__water-area { fill: var(--wp--custom--color--map-water); }
.ote-find-us__art .ote-find-us__structure { fill: var(--color-background); stroke: var(--color-hairline); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ote-find-us__art .ote-find-us__road {
	fill: none;
	stroke: var(--color-hairline);
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}
.ote-find-us__art .ote-find-us__road--1 { stroke-width: var(--ote-road-1); }
.ote-find-us__art .ote-find-us__road--2 { stroke-width: var(--ote-road-2); }
.ote-find-us__art .ote-find-us__road--3 { stroke-width: var(--ote-road-3); }
.ote-find-us__art .ote-find-us__route {
	fill: none;
	stroke: var(--color-text-secondary);
	stroke-width: 1.5px;
	stroke-dasharray: 6 4;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	transition: opacity 160ms ease-out;
}
.ote-find-us__art .ote-find-us__route.is-visible { opacity: 1; }

/* Text on the map: 12.8px with a white halo, so it reads over the street lines. */
.ote-find-us__street,
.ote-find-us__water,
.ote-find-us__anchor-label,
.ote-find-us__credit,
.ote-location-map__street {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	letter-spacing: normal;
}

.ote-find-us__street {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	line-height: 1;
	color: var(--color-text-secondary);
	white-space: nowrap;
	pointer-events: none;
	visibility: hidden;
	text-shadow: 0 0 2px var(--color-surface), 0 0 2px var(--color-surface), 0 0 4px var(--color-surface);
}

.ote-find-us__water {
	position: absolute;
	z-index: 1;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	white-space: nowrap;
	pointer-events: none;
}

/* Shop pin: the tip of the drop sits on the address. Label left of it; the script
   moves it right, below or above when the left side has no room. */
.ote-find-us__anchor { position: absolute; z-index: 3; transform: translate(-50%, -100%); line-height: 0; }
.ote-find-us__anchor svg { display: block; }
.ote-find-us__anchor svg path { fill: var(--color-primary); }
.ote-find-us__anchor-label {
	position: absolute;
	right: calc(100% + 6px);
	top: 2px;
	text-align: right;
	white-space: nowrap;
	line-height: 1.3;
	text-shadow: 0 0 2px var(--color-surface), 0 0 2px var(--color-surface), 0 0 4px var(--color-surface);
}
.ote-find-us__anchor-label.is-right { right: auto; left: calc(100% + 6px); text-align: left; }
.ote-find-us__anchor-label.is-below,
.ote-find-us__anchor-label.is-above { right: auto; left: 50%; transform: translateX(-50%); text-align: center; }
.ote-find-us__anchor-label.is-below { top: calc(100% + 4px); }
.ote-find-us__anchor-label.is-above { top: auto; bottom: calc(100% + 4px); }
.ote-find-us__anchor-label strong { display: block; font-weight: 700; color: var(--color-primary); }
.ote-find-us__anchor-label small { display: block; font-size: var(--wp--preset--font-size--xs); color: var(--color-text-secondary); }

.ote-find-us__pin {
	position: absolute;
	z-index: 2;
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background: var(--color-text-secondary);
	border: 1px solid var(--color-surface);
	transform: translate(-50%, -50%) scale(0.6);
	opacity: 0;
	transition: transform 160ms ease-out, opacity 160ms ease-out, background 120ms ease-out;
}
.ote-find-us__pin.is-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.ote-find-us__pin.is-active { background: var(--color-primary); }

/* Walk-time hint next to the pin (wide screens). */
.ote-find-us__hint {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 4;
	display: none;
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	color: var(--color-ink);
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-sm);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}
.ote-find-us__hint.is-visible { display: block; }

/* The line under the map: phones, and wide screens where a hint finds no free spot
   (the script reserves its height, so nothing moves). */
.ote-find-us__walk {
	grid-area: walk;
	display: none;
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	color: var(--color-ink);
}
.ote-find-us.has-walk-line .ote-find-us__walk { display: block; margin-block-start: var(--wp--preset--spacing--8); }

.ote-find-us__compass {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-pill);
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
}
.ote-find-us__compass svg { display: block; width: 100%; height: 100%; }
.ote-find-us__compass path { fill: var(--color-ink); }
.ote-find-us__compass text { fill: var(--color-ink); font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 9px; }

/* OpenStreetMap credit (ODbL): always shown with the map. A plain link, nothing loaded. */
.ote-find-us__map .ote-find-us__credit,
.ote-location-map .ote-find-us__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 2px 6px;
	line-height: 1.4;
	color: var(--color-text-secondary);
	background: var(--color-surface);
	border-top-left-radius: var(--radius-sm);
}
.ote-find-us__credit a { color: inherit; text-decoration: underline; }

/* Landmark buttons (right column; a wrapping row on phones). */
.ote-find-us__landmarks {
	grid-area: landmarks;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}
.ote-find-us__landmarks li { margin: 0; }
.ote-find-us__landmark-btn {
	display: block;
	width: 100%;
	margin: 0;
	text-align: left;
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-sm);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	line-height: 1.55;
	color: var(--color-text-secondary);
	background: var(--color-surface);
	cursor: pointer;
	transition: border-color 120ms ease-out, color 120ms ease-out;
}
.ote-find-us__landmark-btn:hover { border-color: var(--color-ink); }
.ote-find-us__landmark-btn[aria-pressed="true"] { border-color: var(--color-primary); color: var(--color-primary); }

/* Without the script (it positions these two): "Burrard Inlet" in the water at the top
   right, clear of the compass; on phones the shop label goes under the pin (below). */
.ote-find-us:not(.is-interactive) .ote-find-us__water { top: 18.8%; right: 10px; }

@media (max-width: 767px) {
	.ote-find-us__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"map"
			"walk"
			"landmarks";
	}
	.ote-find-us__walk { display: block; margin: var(--wp--preset--spacing--8) 0 var(--wp--preset--spacing--16); }
	.ote-find-us.has-walk-line .ote-find-us__walk { margin-block-start: var(--wp--preset--spacing--8); }
	.ote-find-us__landmarks { flex-direction: row; flex-wrap: wrap; gap: var(--wp--preset--spacing--8); }
	.ote-find-us__landmark-btn { width: auto; }
	.ote-find-us__map { --ote-road-1: 4px; --ote-road-2: 3px; --ote-road-3: 2px; }
	.ote-find-us__compass { top: 8px; right: 8px; width: 28px; height: 28px; }
	.ote-find-us:not(.is-interactive) .ote-find-us__anchor-label { right: auto; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ote-find-us__pin,
	.ote-find-us__art .ote-find-us__route,
	.ote-find-us__landmark-btn { transition: none; }
}

/* ---------------------------------------------------------------- */
/* About & Contact: Find Us panel (pattern contact-location)          */
/* Map and Getting Here share the top row (70:30), Contact takes the  */
/* full row below; phones stack Contact, Getting Here, map.           */
/* ---------------------------------------------------------------- */

.ote-section .ote-location-panel {
	grid-template-columns: 7fr 3fr;
	grid-template-areas:
		"map directions"
		"contact contact";
	align-items: start;
	gap: var(--wp--preset--spacing--32);
}

.ote-location-panel > * { min-width: 0; }

.ote-location-panel .ote-location-panel__map {
	grid-area: map;
	min-height: 320px;
}

.ote-location-panel__directions { grid-area: directions; }

/* The last line of each text column keeps its 16px bottom margin (prototype paragraphs). */
.ote-section .ote-location-panel__contact > :last-child,
.ote-section .ote-location-panel__directions > :last-child {
	margin-block-end: var(--wp--preset--spacing--16);
}

.ote-section .ote-location-panel__contact {
	grid-area: contact;
	margin-block-start: var(--wp--preset--spacing--16);
}

/* Contact facts: small mono label over the value (prototype dt / dd). */
.ote-section .ote-contact-fact > * { margin-block: 0; }

.ote-contact-fact__label {
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-secondary);
}

.ote-section .ote-contact-fact > .ote-contact-fact__value { margin-block-start: var(--wp--preset--spacing--4); }

/* Phone and e-mail stand alone on their line: no underline, as in the footer. */
.ote-contact-fact a {
	color: inherit;
	text-decoration: none;
}

.ote-contact-fact a:hover,
.ote-contact-fact a:focus-visible { text-decoration: underline; }

/* ---------------------------------------------------------------- */
/* About & Contact, option 1b (Ben 2026-10-04; pattern               */
/* contact-location from 0.2.1). One section, two columns of equal    */
/* height from 1024px: Contact (2×2 facts, profile link) and Getting   */
/* Here on the left (5fr), Find Us (two map links in a row, then the   */
/* map slot filling the rest) on the right (7fr), 48px apart. Below    */
/* 1024px one column in page order: Contact, Getting Here, Find Us.    */
/* The .ote-location-panel rules above stay for pages built before     */
/* 0.2.1.                                                              */
/* ---------------------------------------------------------------- */

.ote-section .ote-location-grid {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: stretch;
	gap: var(--wp--preset--spacing--48);
}

.ote-location-grid > * { min-width: 0; }

/* Getting Here starts a new group in the left column. */
.ote-section .ote-location-grid__contact > .ote-location-grid__subheading { margin-block-start: var(--wp--preset--spacing--32); }

/* Facts: label over value as before; Contact in a 2×2 grid (also on phones), Getting Here
   in one column. */
.ote-section .ote-contact-facts { gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24); }

.ote-section .ote-contact-facts-single { display: grid; }

.ote-section .ote-contact-facts > .ote-contact-fact { margin-block: 0; }

/* Find Us: the map slot takes the height left under the heading and the links. */
.ote-section .ote-location-grid__find {
	display: flex;
	flex-direction: column;
}

.ote-section .ote-map-links { gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--24); }

.ote-section .ote-map-links > .is-style-link-note { margin: 0; }

.ote-section .ote-location-grid__find > .ote-location-grid__map {
	flex: 1 1 auto;
	min-height: 280px;
}

/* ---------------------------------------------------------------- */
/* About & Contact: Find Us map (pattern contact-location; drawn by   */
/* functions.php, no script; task S, docs/about-map-plan.md). The     */
/* page holds a group (ote-location-map) with one line describing the  */
/* map; the theme replaces it with a static map centred on the shop:  */
/* 600 x 450 metres, north up, scaled like "cover" to fill the box.   */
/* Street names: three groups placed in advance for three box shapes  */
/* (assets/find-us/about-map-labels.json), one shown by container      */
/* queries: D, box width/height <= 1.4 (two columns, from 1024px), 6   */
/* names; W, wider and at least 560px, 7 names; S, wider and under     */
/* 560px (phones), 2 names. Browsers without container queries show    */
/* no street names. Drawing, pin, compass and credit as on Home.       */
/* ---------------------------------------------------------------- */

.ote-location-map {
	position: relative;
	overflow: hidden;
	padding: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
	container: ote-location-map / size;
	--ote-road-1: 7px;
	--ote-road-2: 5px;
	--ote-road-3: 3px;
	/* Pixels per metre: the larger of width / 600 m and height / 450 m (cover). */
	--ote-map-scale: max(100cqw / 600, 100cqh / 450);
}

/* In the editor (and if the theme cannot draw the map) the group shows its line of text. */
.ote-location-map > p {
	margin: 0;
	padding: var(--wp--preset--spacing--24);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--color-text-secondary);
}

.ote-location-map__canvas { position: absolute; inset: 0; }

.ote-location-map__streets { display: none; }

/* Centre of the name at its spot (metres from the shop), turned along the street. */
.ote-location-map__street {
	position: absolute;
	left: calc(50% + var(--x) * var(--ote-map-scale));
	top: calc(50% - var(--y) * var(--ote-map-scale));
	z-index: 1;
	transform: translate(-50%, -50%) rotate(var(--a));
	line-height: 1;
	color: var(--color-text-secondary);
	white-space: nowrap;
	pointer-events: none;
	text-shadow: 0 0 2px var(--color-surface), 0 0 2px var(--color-surface), 0 0 4px var(--color-surface);
}

/* Shop label: left of the pin (D, W); under it on phones (S, and phones without
   container queries). */
@media (max-width: 767px) {
	.ote-location-map { --ote-road-1: 4px; --ote-road-2: 3px; --ote-road-3: 2px; }
	.ote-location-map .ote-find-us__anchor-label { right: auto; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); text-align: center; }
}

@container ote-location-map (aspect-ratio <= 7 / 5) {
	.ote-location-map__streets--d { display: block; }
}

@container ote-location-map (aspect-ratio > 7 / 5) and (width >= 560px) {
	.ote-location-map__streets--w { display: block; }
}

@container ote-location-map (aspect-ratio <= 7 / 5) or (width >= 560px) {
	.ote-location-map .ote-find-us__anchor-label { right: calc(100% + 6px); left: auto; top: 2px; transform: none; text-align: right; }
}

@container ote-location-map (aspect-ratio > 7 / 5) and (width < 560px) {
	.ote-location-map__streets--s { display: block; }
	.ote-location-map .ote-find-us__anchor-label { right: auto; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); text-align: center; }
}

/* One column (below 1024px): the box is 3:2, at most 480px tall (two columns: it fills
   the column under the links, at least 280px, as in option 1b). */
@media (max-width: 1023px) {
	.ote-section .ote-location-grid__find > .ote-location-map.ote-location-grid__map {
		min-height: 0;
		aspect-ratio: 3 / 2;
		max-height: 480px;
	}
}

/* ---------------------------------------------------------------- */
/* File Prep: spec blocks (pattern spec-block-grid)                   */
/* Each block is a Group with the Surface style.                      */
/* ---------------------------------------------------------------- */

.ote-section .ote-spec-block-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--24);
}

.ote-spec-block-grid > * { min-width: 0; }

.ote-section .ote-spec-block > * { margin-block: 0; }

.ote-section .ote-spec-block h2,
.ote-section .ote-spec-block h3 {
	font-size: var(--wp--preset--font-size--base);
	margin-block-end: var(--wp--preset--spacing--8);
}

.ote-spec-block p {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--color-text-secondary);
}

.ote-section .ote-spec-block > .ote-spec-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	margin: 0 0 var(--wp--preset--spacing--16);
	padding: 0;
}

.ote-spec-list li {
	position: relative;
	padding-left: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--color-text-secondary);
}

.ote-spec-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 1px;
	background: var(--color-primary);
}

/* The block's action link (template download, WeTransfer): as in the prototype, the
   link is an inline block 8px under the text, on a line of the body size. */
.ote-section .ote-spec-block > p.is-style-link-note { font-size: var(--wp--preset--font-size--base); }

.ote-spec-block > p.is-style-link-note a {
	display: inline-block;
	margin-block-start: var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--xs);
}

/* ---------------------------------------------------------------- */
/* Canva guide: tip card and label (pattern canva-tip), diagram card  */
/* (pattern diagram-card). The two odd sizes (20px, 12px) come from   */
/* direction-b-canva-tip-component-proposal.md, as in the prototype.  */
/* ---------------------------------------------------------------- */

.ote-section .wp-block-group.is-style-canva-tip {
	border-left: 3px solid var(--color-text-secondary);
	padding: var(--wp--preset--spacing--16) 20px;
	margin-block: var(--wp--preset--spacing--24);
}

.ote-section .wp-block-group.is-style-canva-tip > * { margin-block: 0; }

.ote-section .wp-block-group.is-style-canva-tip > * + * { margin-block-start: var(--wp--preset--spacing--4); }

/* Label on its own above a section heading (CANVA-SPECIFIC). */
.is-style-canva-label + h2 { margin-block-start: var(--wp--preset--spacing--8); }

/* Real screenshot on a card; the red callout is drawn on top, never baked into the image. */
.ote-diagram-card {
	position: relative;
	overflow: hidden;
	line-height: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
}

.ote-diagram-card .wp-block-image { margin: 0; }

.ote-diagram-card img {
	display: block;
	width: 100%;
	height: auto;
}

/* Solid OTE red, 2px, so the callout reaches the 3:1 contrast for graphics against the
   screenshot (Ben 2026-10-04; the prototype used 1.5px at 60% opacity, about 2.8:1). */
.ote-diagram-card::after {
	position: absolute;
	border: 2px solid var(--color-primary);
	border-radius: var(--radius-sm);
	pointer-events: none;
}

/* Callout position for the Canva export screenshot (canva-export-menu.png, 939×1425):
   the "Print" button in the Presets row. Percentages of the card, so it follows any width. */
.ote-diagram-card-canva-export::after {
	content: "";
	left: 47.48%;
	top: 25.87%;
	width: 48.41%;
	height: 9.05%;
}

/* ---------------------------------------------------------------- */
/* Canva File Prep Guide: four drawn diagrams (0.3.4; functions.php,   */
/* ote_print_craft_guide_diagram). White card, hairline edge, ink and  */
/* secondary lines; dashed always means trim line. The drawing, the    */
/* colour blocks and the PNG are printed by the theme; the page holds  */
/* only the words. Labels are IBM Plex Mono capitals like the spec     */
/* tables. Card width is the grid column's (467px at 1470px wide).     */
/* ---------------------------------------------------------------- */

.ote-guide-diagram {
	margin: 0;
	padding: var(--wp--preset--spacing--24);
	/* 1.6 like the approved preview (the site's body text is 1.55), so card heights match it. */
	line-height: 1.6;
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
}

.ote-guide-diagram p { margin: 0; }

.ote-guide-diagram__pair {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	column-gap: var(--wp--preset--spacing--16);
	align-items: start;
}

.ote-guide-diagram__divider {
	align-self: stretch;
	background: var(--color-hairline);
}

.ote-guide-diagram__svg {
	display: block;
	width: 100%;
	height: auto;
}

.ote-guide-diagram__svg--crop {
	max-width: 340px;
	margin-inline: auto;
}

.ote-guide-diagram .ote-guide-diagram__title {
	margin-block-start: var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
	color: var(--color-ink);
}

.ote-guide-diagram .ote-guide-diagram__label {
	margin-block-start: var(--wp--preset--spacing--8);
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	text-align: center;
}

.ote-guide-diagram .ote-guide-diagram__note {
	margin-block-start: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
	color: var(--color-text-secondary);
}

.ote-guide-diagram__legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	margin-block-start: var(--wp--preset--spacing--16);
	padding-block-start: 12px;
	border-top: 1px solid var(--color-hairline);
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.ote-guide-diagram__key {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	white-space: nowrap;
}

/* RGB / CMYK: two blocks of the same red; the screen one is brightened by a filter. */
.ote-guide-diagram__swatch {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.ote-guide-diagram__swatch-fill {
	position: absolute;
	inset: 0;
	background: var(--color-primary);
}

.ote-guide-diagram__swatch-fill--screen { filter: brightness(1.08) saturate(1.15); }

.ote-guide-diagram__swatch-tag {
	position: absolute;
	top: var(--wp--preset--spacing--8);
	left: var(--wp--preset--spacing--8);
	font-family: var(--font-mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	color: var(--color-surface);
}

/* Vector / Raster: the same mark twice; the PNG is shown larger than its 40 pixels, with
   hard pixel edges (pixelated and crisp-edges both mean that; a browser that knows only
   one of the two keeps it). */
.ote-guide-diagram__mark {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-block: var(--wp--preset--spacing--8);
}

.ote-guide-diagram__logo {
	display: block;
	width: 150px;
	height: auto;
	max-width: 100%;
}

.ote-guide-diagram__logo--raster {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

/* ---------------------------------------------------------------- */
/* Forms: Get a Quote (Forminator) and Pay Online (ote-pay-online).   */
/* Look of the prototype's .form-grid: a white panel with a hairline  */
/* edge, small bold labels, paper-coloured inputs. Input edges use    */
/* the secondary colour, not the hairline, for 3:1 against the panel  */
/* (decision 14). Both forms keep the page title's left edge instead  */
/* of being centred by the constrained layout (the lead's rule).      */
/* No form ID is named: on the live site the IDs may differ.          */
/* ---------------------------------------------------------------- */

/* Forminator writes a stylesheet per form whose selectors carry the form's ID
   (#forminator-module-20 ...), which outweighs any class selector. ":not(#ote-forms)"
   matches every form (no element has that ID) and gives these rules the weight of one
   ID, so they win without naming a form. Written for Appearance > Style "Default" with
   "Use Theme Colors" and "Theme Fonts" (docs/theme-design.md appendix H). */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) {
	max-width: 720px;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
	padding: var(--wp--preset--spacing--32);
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
}

/* The Shortcode block leaves an empty paragraph before and after Forminator's form;
   they would add a block gap of space. */
p:empty:has(+ .forminator-custom-form),
.forminator-custom-form + p:empty {
	display: none;
}

/* Rows: the two fields of a row side by side, 24px apart, down to 768px
   (Forminator itself stacks them below 783px). */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-row {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--24);
	margin: 0 0 var(--wp--preset--spacing--24);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-row.forminator-no-margin { margin: 0; }

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-row-last {
	margin: var(--wp--preset--spacing--32) 0 0;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-col {
	flex: 1 1 0;
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-field {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-label {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--color-text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 1.55;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-required { color: var(--color-primary); }

/* Hints under the inputs (Deadline, File upload): the prototype's link note, with the
   16px bottom margin its paragraphs keep there. Their links sit inside a sentence, so
   they are underlined (decision 12); Forminator's 2px side margins on them are removed. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-description {
	display: block;
	margin: 0 0 var(--wp--preset--spacing--16);
	padding: 0;
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.55;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-description a,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-description a:hover,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-description a:focus {
	margin: 0;
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: underline;
}

/* Inputs, both forms. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-textarea,
.ote-pay-online .ote-pay-online__field input {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	margin: 0;
	padding: var(--wp--preset--spacing--16);
	color: var(--color-text);
	background: var(--color-background);
	border: 1px solid var(--color-text-secondary);
	border-radius: var(--radius-sm);
	box-shadow: none;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	line-height: normal;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input::placeholder,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-textarea::placeholder,
.ote-pay-online .ote-pay-online__field input::placeholder {
	color: var(--color-text-secondary);
	opacity: 1;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input:focus,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-textarea:focus,
.ote-pay-online .ote-pay-online__field input:focus {
	border-color: var(--color-primary);
	box-shadow: none;
}
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-textarea {
	min-height: var(--wp--preset--spacing--128);
	resize: vertical;
}

/* Deadline: Forminator's calendar icon inside the input, on the left. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input-with-icon { position: relative; }

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input-with-icon [class*="forminator-icon-"] {
	position: absolute;
	top: 50%;
	left: var(--wp--preset--spacing--16);
	transform: translateY(-50%);
	color: var(--color-text-secondary);
	pointer-events: none;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-input-with-icon .forminator-input {
	padding-left: var(--wp--preset--spacing--48);
}

/* File upload: "Choose File" is a secondary button, the file name a quiet note. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-file-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-file-upload > span {
	min-width: 0;
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
	overflow-wrap: anywhere;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-delete {
	margin: 0;
	padding: var(--wp--preset--spacing--4);
	color: var(--color-text-secondary);
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

/* Buttons: "Choose File" as the theme's secondary button, Submit as the primary. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-upload,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit,
.ote-pay-online .ote-pay-online__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-sm);
	box-shadow: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit,
.ote-pay-online .ote-pay-online__button {
	color: var(--color-surface);
	background: var(--color-primary);
}

/* As wide as its text, like the prototype (Pay Now is full width, below). */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit { align-self: flex-start; }

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit:hover,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit:focus-visible,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-submit:active,
.ote-pay-online .ote-pay-online__button:hover,
.ote-pay-online .ote-pay-online__button:focus-visible,
.ote-pay-online .ote-pay-online__button:active {
	color: var(--color-surface);
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-upload {
	color: var(--color-ink);
	background: transparent;
	border-color: var(--color-ink);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-upload:hover,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-upload:focus-visible,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-button-upload:active {
	color: var(--color-surface);
	background: var(--color-ink);
	border-color: var(--color-ink);
}

/* Field errors: red text under the field, red edge on the input (the message, not the
   colour alone, says what is wrong). Darker red for 4.5:1 at 12.8px. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-error-message,
.ote-pay-online .ote-pay-online__error {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--color-primary-hover);
	background: none;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 1.55;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-error-message::before { display: none; }

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-has_error .forminator-input,
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-has_error .forminator-textarea,
.ote-pay-online .ote-pay-online__field.has-error input {
	border-color: var(--color-primary);
}

/* Messages above the fields: success (thank-you) and form-level errors. The space below
   a message belongs to the fields that follow it, so with "Hide form" the message sits
   evenly in the panel. */
.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-response-message.forminator-show + .forminator-row {
	margin-top: var(--wp--preset--spacing--24);
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-response-message {
	margin: 0;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	border: 0;
	border-left: 3px solid var(--color-ink);
	border-radius: 0;
	box-shadow: none;
	color: var(--color-text);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.55;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-response-message p {
	margin: 0;
	color: inherit;
	font-size: inherit;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-response-message.forminator-success {
	background: var(--color-background);
	box-shadow: none;
}

.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-response-message.forminator-error,
.ote-pay-online .ote-pay-online__notice--error,
.ote-pay-online .ote-pay-online__summary {
	color: var(--color-text);
	background: var(--color-red-tint);
	border-left: 3px solid var(--color-primary);
	box-shadow: none;
}

/* Deadline calendar (jQuery UI date picker, outside the form in the page). Its colours
   come from Forminator's per-form stylesheet; the ID here is jQuery UI's own. */
#ui-datepicker-div.forminator-calendar--default {
	color: var(--color-text);
	font-family: var(--wp--preset--font-family--body);
}

#ui-datepicker-div.forminator-calendar--default::before {
	background: var(--color-surface);
	border: 1px solid var(--color-text-secondary);
	border-radius: var(--radius-md);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-header .ui-corner-all {
	color: var(--color-ink);
	background: transparent;
	border: 1px solid var(--color-text-secondary);
	border-radius: var(--radius-sm);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-header .ui-corner-all:hover {
	color: var(--color-surface);
	background: var(--color-ink);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-header .ui-datepicker-title select {
	color: var(--color-text);
	background-color: var(--color-background);
	border-color: var(--color-text-secondary);
	border-radius: var(--radius-sm);
	font-size: var(--wp--preset--font-size--xs);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar thead th {
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default,
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td.ui-state-disabled span {
	color: var(--color-text);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-size: var(--wp--preset--font-size--xs);
}

/* Past days cannot be chosen: faded (disabled controls have no contrast requirement). */
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td.ui-state-disabled span {
	color: var(--color-text-secondary);
	opacity: 0.5;
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default:hover,
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default.ui-state-hover {
	color: var(--color-primary-hover);
	background: var(--color-red-tint);
	border-color: var(--color-red-tint);
}

/* Keyboard / pointer marker in the calendar: the theme's focus outline colour (decision 11). */
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default:focus,
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default.ui-state-hover,
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-header select:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default.ui-state-highlight {
	color: var(--color-primary);
	background: transparent;
	border-color: var(--color-primary);
}

#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default:active,
#ui-datepicker-div.forminator-calendar--default .ui-datepicker-calendar tbody td a.ui-state-default.ui-state-active {
	color: var(--color-surface);
	background: var(--color-primary);
	border-color: var(--color-primary);
}

/* Pay Online (plugin markup: docs/theme-design.md section 8). The plugin's own sheet loads
   later, so every rule here has one class more than the plugin's. */
div.ote-pay-online,
.wp-block-group > p:has(~ .ote-pay-online) {
	max-width: 640px;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* Payment Status: the page body is the shortcode alone, so give it the lead's 16px under the title. */
div.ote-pay-online.ote-pay-online--result {
	max-width: 65ch;
	margin-top: var(--wp--preset--spacing--16);
}

.ote-pay-online .ote-pay-online__form {
	display: grid;
	gap: var(--wp--preset--spacing--24);
	margin: 0;
	padding: var(--wp--preset--spacing--32);
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-md);
}

.ote-pay-online .ote-pay-online__field {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	margin: 0;
}

.ote-pay-online .ote-pay-online__field label {
	margin: 0;
	color: var(--color-text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

.ote-pay-online .ote-pay-online__req {
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	opacity: 1;
}

.ote-pay-online .ote-pay-online__help,
.ote-pay-online .ote-pay-online__microcopy {
	margin: 0;
	color: var(--color-text-secondary);
	font-size: var(--wp--preset--font-size--xs);
	opacity: 1;
}

.ote-pay-online .ote-pay-online__microcopy { margin-top: var(--wp--preset--spacing--16); }

/* The help line keeps the prototype paragraph's 16px bottom margin. */
.ote-pay-online .ote-pay-online__help { margin-bottom: var(--wp--preset--spacing--16); }

.ote-pay-online .ote-pay-online__actions { margin-top: var(--wp--preset--spacing--8); }

.ote-pay-online .ote-pay-online__button { width: 100%; }

.ote-pay-online .ote-pay-online__button:disabled,
.ote-pay-online .ote-pay-online__button.is-busy {
	opacity: 0.5;
	cursor: wait;
}

/* Notices above the form: error (red tint, as above), cancelled (info) and test mode. */
.ote-pay-online .ote-pay-online__notice,
.ote-pay-online .ote-pay-online__summary {
	margin: 0 0 var(--wp--preset--spacing--24);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.55;
}

.ote-pay-online .ote-pay-online__notice--info,
.ote-pay-online .ote-pay-online__notice--test {
	color: var(--color-text);
	background: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-left: 3px solid var(--color-ink);
}

.ote-pay-online .ote-pay-online__notice--test { border-left-color: var(--color-text-secondary); }

.ote-pay-online .ote-pay-online__summary { padding-left: var(--wp--preset--spacing--48); }

.ote-pay-online .ote-pay-online__summary a { color: inherit; }

/* Payment Status page. */
.ote-pay-online .ote-pay-online__result { margin: 0; }

.ote-pay-online .ote-pay-online__back { margin: var(--wp--preset--spacing--16) 0 0; }

.ote-pay-online .ote-pay-online__back a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}

.ote-pay-online .ote-pay-online__back a:hover,
.ote-pay-online .ote-pay-online__back a:focus-visible { text-decoration: underline; }

/* Pay Online, option B (Ben 2026-10-04, 0.2.1), so Pay Now is on the first screen. The
   fields go two to a row in the plugin's order (Invoice # | Amount, Company name | Your
   name, Email | Pay Now); Pay Now is as tall as the inputs (same font, padding and line
   height) and sits level with the Email input: its top margin is the Email label's line
   (12.8px × 1.55) plus the 8px above the input, so it stays level when an error message
   appears under the input. One column on phones (below). */
.ote-pay-online .ote-pay-online__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ote-pay-online .ote-pay-online__actions {
	align-self: start;
	margin-top: calc(var(--wp--preset--font-size--xs) * 1.55 + var(--wp--preset--spacing--8));
}

.ote-pay-online .ote-pay-online__form .ote-pay-online__button { line-height: normal; }

/* From 1024px the two notes above the form become a left column beside it, 31 : 69, tops
   aligned, the pair as wide as the content (1152px) and on the page title's left edge.
   The plugin's "You'll be redirected…" line stays under the form: moving it into the left
   column would need display: contents on the plugin's wrapper, and the plugin's notices
   (test mode, cancelled, errors) would then share grid rows with the notes. Below 1024px the
   notes stay above the form, both 640px wide (0.2.0). */
@media (min-width: 1024px) {
	.ote-section:has(> div.ote-pay-online:not(.ote-pay-online--result)) {
		display: grid;
		grid-template-columns:
			calc((min(var(--wp--style--global--content-size), 100%) - var(--wp--preset--spacing--48)) * 0.31)
			calc((min(var(--wp--style--global--content-size), 100%) - var(--wp--preset--spacing--48)) * 0.69);
		grid-template-rows: auto 1fr;
		justify-content: center;
		align-items: start;
		column-gap: var(--wp--preset--spacing--48);
	}

	.ote-section:has(> div.ote-pay-online:not(.ote-pay-online--result)) > p {
		grid-column: 1;
		max-width: none;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.ote-section:has(> div.ote-pay-online:not(.ote-pay-online--result)) > div.ote-pay-online {
		grid-column: 2;
		grid-row: 1 / span 2;
		max-width: none;
		margin: 0 !important;
	}
}

/* ---------------------------------------------------------------- */
/* Responsive: the prototype uses exactly two breakpoints.            */
/* ---------------------------------------------------------------- */

@media (max-width: 1023px) {
	.brand-logo { height: var(--wp--preset--spacing--32); }

	/* Logo and menu button share the first row; the two header buttons wrap below on
	   phones (below about 540px). */
	.site-header .site-header__inner { flex-wrap: wrap; }

	.ote-section .ote-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ote-section .ote-service-entry { grid-template-columns: 1fr; }
	.ote-service-entry > .wp-block-image,
	.ote-service-entry > .ote-guide-diagram,
	.ote-service-entry > .ote-diagram-card { max-width: 600px; }
	.ote-service-entry > .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; }
	.ote-section .ote-trust-list { grid-template-columns: 1fr; }
	.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
	.ote-section .ote-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ote-section .ote-industry-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--wp--preset--spacing--24); }

	/* About (option 1b): one column, Contact, Getting Here, Find Us; 32px apart, as above
	   Getting Here. */
	.ote-section .ote-location-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--32);
	}
}

@media (max-width: 767px) {
	html { scroll-padding-top: 152px; }

	.ote-hero .ote-hero__grid { grid-template-columns: 1fr; }
	.ote-hero .wp-block-image { max-width: 480px; }
	.ote-hero .wp-block-image img { aspect-ratio: 4 / 5; }
	.ote-section .ote-card-grid { grid-template-columns: 1fr; }
	.site-footer .footer-grid { grid-template-columns: 1fr; }
	.ote-section .ote-portfolio-grid { grid-template-columns: 1fr; }
	.ote-section .ote-spec-block-grid { grid-template-columns: 1fr; }
	.ote-section .ote-industry-tags { grid-template-columns: minmax(0, 1fr); }
	.ote-section .ote-industry-tags li { padding: 14px 0 16px; }

	.ote-section .ote-location-panel {
		grid-template-columns: 1fr;
		grid-template-areas:
			"contact"
			"directions"
			"map";
	}

	.ote-section .ote-location-panel__contact { margin-block-start: 0; }

	.ote-section .wp-block-group.is-style-canva-tip { padding: 12px var(--wp--preset--spacing--16); }

	/* Canva guide diagrams: smaller card padding and mark on phones. */
	.ote-guide-diagram { padding: var(--wp--preset--spacing--16); }
	.ote-guide-diagram__logo { width: 120px; }

	/* Forms: one column, smaller panel padding (prototype). */
	.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) { padding: var(--wp--preset--spacing--24); }
	.forminator-ui.forminator-custom-form[data-design]:not(#ote-forms) .forminator-row { flex-direction: column; }
	.ote-pay-online .ote-pay-online__form {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--wp--preset--spacing--24);
	}

	.ote-pay-online .ote-pay-online__actions { margin-top: var(--wp--preset--spacing--8); }

	.is-style-callout,
	.is-style-cta-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Hero H1 (unchanged). */
	:root h1 { font-size: var(--wp--preset--font-size--xxl); }

	/* Option B on phones (Ben 2026-10-04): h2 25px, h3 20px, page title 31.25px. The h2 and
	   h3 rules carry only the element's weight, like theme.json's own (this sheet loads after
	   it), so headings with a size of their own (card H3, spec-block titles, callout heading,
	   Services subgroup H3) keep it. */
	h2 { font-size: var(--wp--preset--font-size--lg); }
	h3 { font-size: var(--wp--preset--font-size--md); }

	.ote-page-header h1,
	.ote-page-header .wp-block-post-title { font-size: var(--wp--preset--font-size--xl); }
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
