/*
Theme Name: Osmicro Console
Theme URI: https://osmicro.com.au/
Author: Osmicro Networks
Description: Lean, dark, terminal-flavoured theme for osmicro.com.au. No jQuery, no icon fonts, no web fonts. Block editor for content, PHP templates for chrome.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osmicro
*/

/* ---------------------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------------------- */
:root {
	--bg: #0b0e14;
	--bg-2: #0f131a;
	--surface: #11161e;
	--surface-2: #161c26;
	--line: #222a36;
	--line-2: #2c3645;
	--text: #e7ebf1;
	--text-2: #c7cfda;
	--muted: #9aa5b4;
	--dim: #6b7788;
	--red: #e0343f;
	--red-2: #ff5a63;
	--red-btn: #d1202c;
	--red-soft: rgba(224, 52, 63, 0.14);
	--green: #2fd27a;
	--amber: #f5b142;
	--blue: #5b9cff;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 10px;
	--radius-s: 6px;
	--container: 1180px;
	--gutter: 20px;
	--header-h: 60px;
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
	color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   2. Base
--------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { color: var(--muted); }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.18em; }
a:hover { color: var(--red-2); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--text);
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong, b { font-weight: 650; color: var(--text); }
em { color: var(--text-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--red); color: var(--text-2); font-style: italic; }

code, kbd, pre, samp { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.1em 0.4em; color: var(--text-2); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.2rem; overflow: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--red); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); font-family: var(--mono); font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

/* ---------------------------------------------------------------------------
   3. Type helpers
--------------------------------------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.5em;
	font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 0.9rem;
}
.eyebrow::before { content: "//"; color: var(--red-2); letter-spacing: 0; }
.eyebrow--plain::before { content: none; }

.lede { font-size: 1.2rem; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   4. Buttons
--------------------------------------------------------------------------- */
.btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font-family: var(--mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
	padding: 0.8em 1.25em; border-radius: var(--radius-s); border: 1px solid transparent;
	text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }

.btn-primary,
.wp-block-button__link,
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link {
	background: var(--red-btn); color: #fff; border-color: var(--red-btn);
}
.btn-primary:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, 0.03); }

.btn-sm { font-size: 0.74rem; padding: 0.6em 0.9em; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button .wp-block-button__link { width: auto; }

/* ---------------------------------------------------------------------------
   5. Header
--------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(11, 14, 20, 0.82);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.brand__text { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; font-size: 1rem; color: var(--text); }
.brand__text::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 3px solid var(--red); border-radius: 50%; margin-right: 8px; vertical-align: -1px; }

.nav { display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav li { position: relative; margin: 0; }
.nav a {
	display: inline-flex; align-items: center; gap: 0.35em;
	font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
	color: var(--text-2); text-decoration: none; padding: 0.55rem 0.7rem; border-radius: var(--radius-s);
}
.nav a:hover, .nav a:focus-visible, .nav > ul > li:hover > a { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_parent > a { color: var(--text); }
/* Thin red underline: on hover (kept while the pointer is inside the submenu) and on the current item plus its parent. */
.nav > ul > li:hover > a, .nav > ul > li:focus-within > a, .nav > ul > li.current-menu-item > a, .nav > ul > li.current-menu-ancestor > a, .nav > ul > li.current_page_parent > a,
.nav .sub-menu a:hover, .nav .sub-menu a:focus-visible, .nav .sub-menu .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.nav .menu-item-has-children > a .chev { width: 10px; height: 10px; opacity: 0.6; }

.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px; margin-top: 6px;
	display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Invisible bridge so the pointer can travel from the link down into the menu. */
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .sub-menu a { display: block; text-transform: none; letter-spacing: 0; font-size: 0.86rem; padding: 0.5rem 0.7rem; color: var(--text-2); }
.nav .sub-menu a::before { content: "└"; color: var(--muted); display: inline-block; margin-right: 0.35em; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { color: var(--text); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.open > .sub-menu { display: flex; }
.nav li.li--wide > .sub-menu { min-width: 560px; grid-template-columns: 1fr 1fr; }
.nav li.li--wide:hover > .sub-menu, .nav li.li--wide:focus-within > .sub-menu, .nav li.li--wide.open > .sub-menu { display: grid; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-phone { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); text-decoration: none; padding: 0.5rem 0.4rem; white-space: nowrap; }
.header-phone:hover { color: var(--text); }

.nav-toggle {
	display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
	background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--text); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
body.nav-open .nav-toggle .ico-open { display: none; }
body.nav-open .nav-toggle .ico-close { display: block; }

@media (max-width: 1080px) {
	.header-phone { display: none; }
	.nav a { padding: 0.55rem 0.5rem; font-size: 0.76rem; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-actions .btn-ghost { display: none; }
	/* The panel hangs off the header (its backdrop blur makes the header the
	   containing block even for fixed children, so anchor to it explicitly)
	   and fills the rest of the viewport. */
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
		height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch;
		padding: 1rem var(--gutter) 6rem; border-top: 1px solid var(--line);
	}
	body.nav-open .nav { display: block; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
	body.nav-open .osm-staging-badge { display: none; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav > ul > li { border-bottom: 1px solid var(--line); }
	.nav a { font-size: 1rem; padding: 0.9rem 0.25rem; justify-content: space-between; border-radius: 0; }
	.nav .menu-item-has-children > a .chev { width: 14px; height: 14px; transition: transform 0.15s; }
	.nav li.open > a .chev { transform: rotate(180deg); }
	.nav .sub-menu, .nav li.li--wide > .sub-menu {
		position: static; display: none; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 0.5rem 0.75rem; grid-template-columns: 1fr;
	}
	.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.li--wide:hover > .sub-menu, .nav li.li--wide:focus-within > .sub-menu { display: none; }
	.nav li.open > .sub-menu, .nav li.li--wide.open > .sub-menu { display: flex; flex-direction: column; }
	.nav .sub-menu a { font-size: 0.95rem; padding: 0.55rem 0.25rem; }
	.nav-cta { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 0 0; }
	.nav-cta .btn { width: 100%; }
}
@media (min-width: 961px) { .nav-cta { display: none; } }
/* Hidden where block columns stack (phones and small tablets). */
@media (max-width: 781px) { .hide-mobile { display: none !important; } }

/* ---------------------------------------------------------------------------
   6. Sections and layout helpers
--------------------------------------------------------------------------- */
.section { padding: clamp(3rem, 5vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 3vw, 3rem) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 2.25rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: 0.4em; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } .grid-4 .card { padding: 1rem 0.9rem; } .grid-4 .card p { font-size: 0.86rem; } .grid-4 .card h3 { font-size: 1rem; } }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------------------------------------------------------------------------
   7. Cards, chips, lists
--------------------------------------------------------------------------- */
.card {
	position: relative; display: flex; flex-direction: column; gap: 0.5rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem;
	transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card--link:hover { transform: translateY(-2px); border-color: rgba(224, 52, 63, 0.6); }
.card__k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); }
.card__k::before { content: "~/"; color: var(--red-2); }
.card__n { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--red-2); }
.card h3 { font-size: 1.12rem; margin: 0.15rem 0 0.1rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.card > a.card__cover { position: absolute; inset: 0; border-radius: inherit; z-index: 1; text-decoration: none; }
.card > a.card__cover:focus-visible { outline-offset: 0; }
.card__arrow { margin-top: auto; padding-top: 0.6rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.card:hover .card__arrow { color: var(--red-2); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chip {
	display: inline-flex; align-items: center; gap: 0.45em;
	font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
	padding: 0.4em 0.75em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); text-decoration: none; background: var(--surface);
}
a.chip:hover { color: var(--text); border-color: var(--text-2); }
.chip--on { border-color: var(--red); color: var(--text); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 210, 122, 0.18); }
.chip .dot--red { background: var(--red); box-shadow: 0 0 0 3px rgba(224, 52, 63, 0.18); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.6em; margin-bottom: 0.55em; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; font-family: var(--mono); color: var(--green); font-weight: 700; }
.checks--red li::before { content: "›"; color: var(--red); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.kv > div { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.85rem 1rem; background: var(--surface); }
.kv b { display: block; font-family: var(--mono); font-size: 1.35rem; color: var(--text); letter-spacing: -0.02em; }
.kv span { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.5rem; }
/* Client logo row: real logos as light silhouettes, wordmarks where no logo file exists yet */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos > .strip__label { flex-basis: 100%; margin: 0; }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; list-style: none; margin: 0; padding: 0; width: 100%; }
.logos__item { display: inline-flex; align-items: center; min-height: 40px; opacity: 0.72; text-decoration: none; transition: opacity 0.15s ease; }
.logos__item:hover { opacity: 1; }
.logos__item img { height: 40px; width: auto; display: block; }
.logos__item img.is-wide { height: 20px; }
.logos__item img.is-tall { height: 56px; }
.logos__item img.is-long { height: 28px; } /* long wordmarks, e.g. Ajaka & Co. */
.logos__word { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
@media (max-width: 600px) {
	.logos { padding: 1rem 0 1.1rem; }
	.logos__list { justify-content: center; gap: 0.9rem 0.5rem; }
	.logos__list > li { flex: 0 0 calc(33.333% - 0.34rem); display: flex; justify-content: center; }
	.logos__item { min-height: 44px; }
	.logos__item img { height: 30px; }
	.logos__item img.is-tall { height: 44px; }
	.logos__item img.is-long { height: 20px; }
	.logos__word { font-size: 0.95rem; }
}

a.card { text-decoration: none; color: inherit; }
a.card h3 { color: var(--text); }
.grid.is-layout-flow > *, .grid.is-layout-flow > * + *, .grid > * + *, .chips > * + *, .checks > * + *, .wp-block-buttons > * + * { margin-block-start: 0; }
.page-blocks > .is-layout-flow > * + * { margin-block-start: 0; }

/* ---------------------------------------------------------------------------
   8. Terminal window
--------------------------------------------------------------------------- */
.term {
	background: #0a0d12; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
	font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; color: var(--text-2); overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.term__dots { display: inline-flex; gap: 6px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4352; display: block; }
.term__dots i:nth-child(1) { background: #ff5f57; }
.term__dots i:nth-child(2) { background: #febc2e; }
.term__dots i:nth-child(3) { background: #28c840; }
.term__title { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; margin-left: auto; }
.term__body { padding: 1rem 1.1rem 1.1rem; overflow-x: auto; white-space: normal; }
.term__line { display: block; min-height: 1.6em; white-space: pre; }
.term__line--wrap { white-space: pre-wrap; }
@media (max-width: 600px) { .term { font-size: 0.78rem; } .term__line { white-space: pre-wrap; word-break: break-word; } }
.term__line.is-hidden { visibility: hidden; }
.term .p { color: var(--red-2); }
.term .c { color: var(--text); font-weight: 600; }
.term .ok { color: var(--green); }
.term .warn { color: var(--amber); }
.term .k { color: var(--blue); }
.term .d { color: var(--muted); }
.term .cursor { display: inline-block; width: 0.6em; height: 1.1em; background: var(--text-2); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.wp-block-html .term { margin: 0; }

/* ---------------------------------------------------------------------------
   9. Hero
--------------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
	border-bottom: 1px solid var(--line);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 20%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 60% 20%, #000 20%, transparent 75%);
	opacity: 0.6;
}
.hero::after {
	content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18vw; top: -30vw; pointer-events: none;
	background: radial-gradient(closest-side, rgba(224, 52, 63, 0.22), transparent 70%);
}
.hero { isolation: isolate; }
.hero > .container, .hero .wp-block-columns, .hero .wp-block-group { position: relative; z-index: 2; }
.hero::before, .hero::after { z-index: 1; }
.hero__bg {
	position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0.55;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
.hero.has-bg::before { opacity: 0.25; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { margin-bottom: 1.6rem; }
/* Service pages keep the original keyword H1 as a small eyebrow; the big headline is a paragraph. */
.hero h1.eyebrow { font-size: 0.78rem; line-height: 1.4; letter-spacing: 0.08em; font-weight: 600; text-wrap: initial; margin: 0 0 0.9rem; }
.hero__title { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; margin: 0 0 0.5em; }
.hero__logo { margin: -0.25rem 0 1.5rem; }
.hero__logo img { height: 56px; width: auto; display: block; }
.section__note { margin-top: 1.5rem; color: var(--text-2); max-width: 70ch; }
.section__actions { margin-top: 1.75rem; }
.card .checks { margin-top: 0.5rem; font-size: 0.94rem; }
.card .checks li { color: var(--muted); margin-bottom: 0.4em; }
.hero .wp-block-columns { align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero--simple { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero--simple h1 { max-width: 20ch; }

/* ---------------------------------------------------------------------------
   10. CTA band, FAQ, misc blocks
--------------------------------------------------------------------------- */
.cta-band {
	position: relative; overflow: hidden; text-align: center;
	border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem);
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(224, 52, 63, 0.18), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.cta-band .wp-block-buttons { justify-content: center; margin-top: 1.25rem; }
.cta-band ul { display: inline-block; text-align: left; margin: 0.5rem auto 0; color: var(--text-2); }

.faq { max-width: 820px; }
.faq details, .wp-block-details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); margin: 0 0 0.6rem; padding: 0; }
.faq summary, .wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.75rem;
	padding: 0.95rem 1.1rem; font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.faq summary::before, .wp-block-details summary::before { content: ">"; font-family: var(--mono); color: var(--red); transition: transform 0.15s; }
details[open] > summary::before { transform: rotate(90deg); }
.faq details > :not(summary), .wp-block-details > :not(summary) { padding: 0 1.1rem 1rem 2.45rem; color: var(--text-2); }
.faq details > p:last-child, .wp-block-details > p:last-child { padding-bottom: 1.1rem; }
.wp-block-details > p + p { padding-top: 0; }

.note { border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--radius-s); background: var(--surface); padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--text-2); }
.note > :last-child { margin-bottom: 0; }
.meta-line { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--text); }

/* Printable guides: A4 preview cards and the per-guide checklist pages */
.guide-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 1023px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 679px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
.guide-card { padding: 0; overflow: hidden; }
.guide-card__img { aspect-ratio: 99 / 140; background: #fff; border-bottom: 1px solid var(--line); }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.05rem 1.05rem; }
.guide-card h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.guide-card h3 a { text-decoration: none; }
.guide-card p { font-size: 0.88rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.25rem 0 0; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.1rem 2.6rem; color: var(--text-2); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--red-2); letter-spacing: 0.04em; }
.steps strong { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 0.2rem; }
.guide-recovery { border-color: rgba(224, 52, 63, 0.55); }
.guide-recovery h2 { font-size: 1.2rem; color: var(--red-2); margin: 0 0 0.6rem; }
.guide-recovery ul { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.guide-recovery li { margin: 0.35rem 0; }
.guide-preview figure { margin: 0 0 1.25rem; }
.guide-preview img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.guide-preview figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 0.6rem; }
.guide-preview h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.guide-preview p { color: var(--muted); font-size: 0.95rem; }
.guide-stack > * + * { margin-top: 1.25rem; }
.guide-stack h2 { margin-top: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { position: relative; padding: 0.45rem 0 0.45rem 1.3rem; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; padding-top: 0; }
.link-list li::before { content: "›"; position: absolute; left: 0; top: 0.45rem; font-family: var(--mono); color: var(--red); font-weight: 700; }
.link-list li:first-child::before { top: 0; }
.link-list a { color: var(--text-2); text-decoration-color: var(--line-2); }
.link-list a:hover { color: var(--text); text-decoration-color: var(--red); }

.contact-card { display: grid; gap: 0.9rem; }
.contact-card a { text-decoration: none; }
.contact-card .row { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-card .row svg { width: 18px; height: 18px; flex: none; margin-top: 0.2em; color: var(--red); }

.mobile-cta { display: none; }
@media (max-width: 720px) {
	body:not(.admin-bar) .mobile-cta,
	body.admin-bar .mobile-cta {
		display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
		background: rgba(11, 14, 20, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
	}
	.mobile-cta .btn { width: 100%; }
	body.nav-open .mobile-cta { display: none; }
	body { padding-bottom: 72px; }
	.osm-staging-badge { bottom: 84px !important; }
}

/* ---------------------------------------------------------------------------
   11. Posts, cards for posts, prose
--------------------------------------------------------------------------- */
.post-card { padding: 0; overflow: hidden; }
.post-card__img { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.03em; }
.post-card__meta .cat { color: var(--red-2); text-decoration: none; position: relative; z-index: 2; }
.post-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.post-card h3 a { text-decoration: none; }
.post-card p { font-size: 0.93rem; }

.crumbs { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin: 0 0 1.25rem; letter-spacing: 0.02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .breadcrumb_last { color: var(--text-2); }

.article-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.article-head h1 { max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }
.article-meta .cat { text-decoration: none; color: var(--red-2); }
.article-hero { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 0; }
.article-hero img { width: 100%; }

.prose { font-size: 1.07rem; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose ul, .prose ol { color: var(--text-2); }
.prose a { color: var(--text); text-decoration-color: var(--red); }
.prose img, .prose figure { margin: 1.5rem 0; border-radius: var(--radius-s); }
.prose figure img { margin: 0; }
.prose figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 0.5rem; }
.prose iframe { max-width: 100%; }
/* Long registry paths, URLs and wide comparison tables must never widen the page on a phone. */
.prose :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .btn, .prose a.btn { max-width: 100%; white-space: normal; }
.prose .wp-block-image img { border: 1px solid var(--line); }
.prose > .alignwide, .prose > .wp-block-group.alignwide { max-width: var(--container); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2.5rem 0 0; font-family: var(--mono); font-size: 0.84rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.7rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); text-decoration: none; color: var(--text-2); }
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--text); color: var(--text); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a { display: block; text-decoration: none; }
.post-nav .card__k::before { content: none; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   12. Core block tweaks
--------------------------------------------------------------------------- */
.wp-block-columns { gap: 1.5rem; }
/* Core sets align-items:normal!important on columns and only honours "center"
   via a class on each column, so centre the children directly: the graphic
   sits mid-way down the text beside it instead of hanging off the top. */
.wp-block-columns.are-vertically-aligned-center > .wp-block-column,
.hero .wp-block-columns > .wp-block-column { align-self: center; }
.wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-card, .wp-block-column.is-style-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.wp-block-group.is-style-terminal { background: #0a0d12; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-family: var(--mono); font-size: 0.9rem; color: var(--text-2); }
.wp-block-group.is-style-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wp-block-list.is-style-checks { list-style: none; padding: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 1.6em; color: var(--text-2); }
.wp-block-list.is-style-checks li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; font-family: var(--mono); color: var(--green); font-weight: 700; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wp-block-heading.has-text-align-center { text-align: center; }
.has-text-align-center { text-align: center; }
.wp-block-image img { border-radius: var(--radius-s); }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-table table { font-size: 0.95rem; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide { width: min(100vw - 2 * var(--gutter), var(--container)); max-width: none; margin-left: calc(50% - min(100vw - 2 * var(--gutter), var(--container)) / 2); }

/* Flattened legacy page content (pages not yet rebuilt) */
.legacy-content h1 { font-size: 1.9rem; }
.legacy-content h2 { font-size: 1.45rem; margin-top: 2rem; }
.legacy-content h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legacy-content a:not([href]), .legacy-content a[href=""] { display: none; }
.legacy-content img { margin: 1rem 0; border-radius: var(--radius-s); max-width: 420px; }
.single-liquid-portfolio .legacy-content img { max-width: min(420px, 100%); height: auto; } /* case-study logos: same 420px cap on desktop, never wider than the column on a phone */
.legacy-content iframe { max-width: 100%; }
.legacy-content ul { color: var(--text-2); }
.legacy-content > a[href], .legacy-content p.legacy-btn > a[href] { display: inline-flex; margin: 0.25rem 0.5rem 1rem 0; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.8em 1.25em; border-radius: var(--radius-s); background: var(--red); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------------------
   13. Footer
--------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: clamp(3rem, 6vw, 5rem); }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.statusbar .prompt { color: var(--text-2); }
.statusbar .prompt b { color: var(--red-2); font-weight: 600; }
.statusbar .chips { margin-left: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.75rem 0 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 600; }
.footer-grid h2::before { content: "# "; color: var(--red-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 0.45rem; font-size: 0.95rem; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-grid ul a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.footer-about p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-about .brand, .footer-about .custom-logo-link { display: inline-block; margin: 0 0 1.5rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-2); }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 0.25em; color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--text-2); }
.social svg { width: 16px; height: 16px; }
.social:hover { border-color: var(--text); color: var(--text); }

/* ---------------------------------------------------------------------------
   14. 404 and search
--------------------------------------------------------------------------- */
.search-form { display: flex; gap: 0.5rem; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-width: 0; font: inherit; font-family: var(--mono); font-size: 0.95rem; padding: 0.7rem 0.9rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-s); }
.search-form input[type="search"]::placeholder { color: var(--muted); }

/* ---------------------------------------------------------------------------
   14b. Graphics: icons, illustrations, tiles
--------------------------------------------------------------------------- */
.ico { width: 26px; height: 26px; color: var(--red-2); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card .ico { margin-bottom: 0.2rem; }
.icon-row { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0 0 1rem; }
.icon-row .ico { margin-top: 0.15rem; }
.icon-row b { display: block; color: var(--text); font-weight: 600; }
.icon-row span { color: var(--muted); font-size: 0.95rem; }
.icon-row p { margin: 0; }

.art { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 0.6rem; box-shadow: var(--shadow); }
.art svg { width: 100%; height: auto; display: block; }
/* On phones the columns stack; keep the text above its graphic whichever side it sits on desktop. */
@media (max-width: 781px) { .wp-block-columns > .wp-block-column:has(> .art, > .wp-block-shortcode .art, .art:only-child) { order: 2; } }
.art .a-l { stroke: var(--line-2); fill: none; stroke-width: 1.5; }
.art .a-l2 { stroke: var(--muted); fill: none; stroke-width: 1.5; }
.art .a-r { stroke: var(--red-2); fill: none; stroke-width: 1.5; }
.art .a-rf { fill: var(--red-2); }
.art .a-glow { filter: drop-shadow(0 0 5px rgba(255, 90, 99, 0.7)); }
.art .a-glowbox { filter: drop-shadow(0 0 10px rgba(255, 90, 99, 0.25)); }
.art .a-gf { fill: var(--green); }
.art .a-af { fill: var(--amber); }
.art .a-f { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.art .a-box { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; }
.art .a-t { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; }
.art .a-t2 { fill: var(--text-2); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.art .a-ok { fill: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.art .a-dash { stroke-dasharray: 4 4; }
.art .a-tr { fill: var(--red-2); }
.art .a-ta { fill: var(--amber); }
.art .a-arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.art .a-arc--g { stroke: var(--green); }
.art .a-arc--a { stroke: var(--amber); }
.art .a-arc--r { stroke: var(--red-2); }
.art .a-flow { stroke-dasharray: 5 9; animation: a-flow 1.4s linear infinite; }
.art .a-led { animation: a-blink 1.6s steps(1) infinite; }
.art .a-delay-1 { animation-delay: 0.55s; }
.art .a-delay-2 { animation-delay: 1.1s; }
.art .a-pulse-ring { transform-box: fill-box; transform-origin: center; animation: a-pulse 2.6s ease-out infinite; }
.art .a-sweep { transform-box: view-box; transform-origin: 240px 160px; animation: a-sweep 4s linear infinite; }
.art .a-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: a-draw 2.2s ease-out forwards; }
@keyframes a-flow { to { stroke-dashoffset: -28; } }
@keyframes a-blink { 50% { opacity: 0.25; } }
@keyframes a-pulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes a-sweep { to { transform: rotate(360deg); } }
@keyframes a-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .art .a-draw { stroke-dashoffset: 0; } .art .a-pulse-ring { opacity: 0.35; } }

.tile { width: 100%; height: 100%; display: block; background: var(--surface-2); }
.tile .a-l { stroke: var(--line-2); fill: none; stroke-width: 1.5; }
.tile__t { fill: var(--text); font-family: var(--mono); font-size: 46px; font-weight: 700; letter-spacing: -0.02em; }
.tile__k { fill: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }

.chips--spaced { margin-top: 1.5rem; }
.chips--lead { gap: 0.6rem; }
.chips--lead .chip { font-size: 0.86rem; padding: 0.55em 0.9em; }

/* ---------------------------------------------------------------------------
   14b. Landing pages (page-landing.php): no navigation, testimonial cards
--------------------------------------------------------------------------- */
.site-header--landing .custom-logo { height: 26px; width: auto; max-width: none; } /* nothing beside the logo to squeeze it, so size it like the main header */
.site-footer--landing { margin-top: 0; }
.site-footer--landing .footer-bottom { border-top: 0; }
.landing-hero .wp-block-columns { align-items: flex-start; }
.landing-form { padding: 0.5rem; scroll-margin-top: 1.5rem; } /* keeps the card's charcoal surface */
.landing-form .osm-form-placeholder ~ .osm-form-placeholder { display: none; } /* staging only: the guard swaps both the form and its resize script for a notice; show one */
.landing-form iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-s); }
.landing-note { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.quote-card { display: grid; gap: 0.9rem; align-content: start; }
.quote-card blockquote { margin: 0; color: var(--text-2); }
.quote-card figcaption { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   14c. Enquiry forms (inc/forms.php, assets/forms.js)
--------------------------------------------------------------------------- */
.osm-form { display: grid; gap: 1.05rem; padding: 0.9rem 0.95rem 0.7rem; min-width: 0; text-align: left; }
.card .osm-form p { margin: 0; }
.osm-form .osm-form__req, .osm-form .osm-field__hint, .osm-form .osm-form__fine { color: var(--muted); font-size: 0.84rem; }
.osm-field { display: grid; gap: 0.35rem; min-width: 0; margin: 0; }
.osm-field > label, .osm-field > legend { font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 0; }
.osm-req { color: var(--red-2); }
.osm-field input[type="text"], .osm-field input[type="email"], .osm-field input[type="tel"], .osm-field input[type="number"], .osm-field textarea {
	width: 100%; min-width: 0; font: inherit; font-size: 1rem; line-height: 1.4; padding: 0.7rem 0.85rem;
	background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-s);
}
.osm-field textarea { resize: vertical; min-height: 8rem; }
.osm-field input:focus-visible, .osm-field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.osm-field.is-invalid input, .osm-field.is-invalid textarea { border-color: var(--red-2); }
.card .osm-form .osm-field__err { color: var(--red-2); font-size: 0.86rem; font-weight: 600; }
.osm-field__err::before { content: "! "; font-family: var(--mono); }
fieldset.osm-field { border: 0; padding: 0; }
.osm-choices { display: grid; gap: 0.45rem; }
.osm-form[data-osm-form^="quote"] .osm-choices { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.osm-choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--bg-2); color: var(--text-2); cursor: pointer; line-height: 1.35; }
.osm-choice input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; margin: 0.1rem 0 0; flex: none; }
.osm-choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--text); }
.osm-choice:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.osm-field.is-invalid .osm-choice { border-color: var(--red-2); }
.osm-support { border-left: 3px solid var(--red); background: var(--bg-2); padding: 0.7rem 0.9rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.card .osm-form .osm-support p { color: var(--text-2); font-size: 0.93rem; }
.osm-form__errors, .osm-form__fail { border: 1px solid var(--red); background: var(--red-soft); border-radius: var(--radius-s); padding: 0.75rem 0.9rem; }
.osm-form__fail { border-color: var(--amber); background: rgba(245, 177, 66, 0.1); }
.card .osm-form .osm-form__errors p, .card .osm-form .osm-form__fail p { color: var(--text); font-weight: 600; }
.osm-form__errors ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.osm-form__errors a, .osm-form__fail a { color: var(--text); }
.osm-form__errors:focus, .osm-form__fail:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.osm-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.osm-form__actions .btn { min-width: 11rem; min-height: 44px; }
.osm-form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }
.card .osm-form .osm-form__status { font-size: 0.82rem; color: var(--muted); }
.osm-form__errors, .osm-form__fail, .osm-field { scroll-margin-top: calc(var(--header-h) + 16px); }
.osm-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
	.osm-form { padding: 0.6rem 0.45rem 0.45rem; }
	.osm-form__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   15. Editor niceties (loaded via add_editor_style)
--------------------------------------------------------------------------- */
.editor-styles-wrapper .term { white-space: pre-wrap; }
