/* ==========================================================================
   UPS Battery Monitoring: component styles
   Tokens come from theme.json presets. Block style variations are registered
   in inc/block-styles.php and styled here. Loaded on the front end and in the editor.
   ========================================================================== */

:root {
	--navy: var(--wp--preset--color--navy);
	--navy-deep: var(--wp--preset--color--navy-deep);
	--navy-line: var(--wp--preset--color--navy-line);
	--sky: var(--wp--preset--color--sky);
	--sky-ink: var(--wp--preset--color--sky-ink);
	--sky-wash: var(--wp--preset--color--sky-wash);
	--ink: var(--wp--preset--color--ink);
	--text: var(--wp--preset--color--text);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--line);
	--surface: var(--wp--preset--color--surface);
	--on-dark: var(--wp--preset--color--on-dark);
	--on-dark-muted: #9FB0C2;
	--ok: var(--wp--preset--color--ok);
	--warn: var(--wp--preset--color--warn);
	--crit: var(--wp--preset--color--crit);
	--f-label: var(--wp--preset--font-family--poppins);
	--f-mono: var(--wp--preset--font-family--mono);
	--section: var(--wp--preset--spacing--section);
	--utility-h: 34px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
.wp-block-heading mark { background: transparent; }
img { max-width: 100%; height: auto; }

/* Coloured sections butt together: remove the global block gap between top-level regions */
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + *,
main > .alignfull + .alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }

/* ---------- Header ---------- */
.site-header-part { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--utility-h)); z-index: 50; }
.site-header-part > * + * { margin-block-start: 0; }
.utility-bar { background: var(--navy-deep); color: var(--on-dark-muted); font-size: var(--wp--preset--font-size--xs); }
.utility-bar__inner { min-height: var(--utility-h); gap: 16px; }
.utility-bar p { margin: 0; }
.utility-bar a { color: var(--on-dark); text-decoration: none; }
.utility-bar a:hover { color: var(--sky); text-decoration: underline; }
.utility-bar strong { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.utility-bar__contact { display: flex; gap: 20px; font-family: var(--f-mono); }
@media (max-width: 700px) {
	.utility-bar__contact a + a { display: none; }
	/* V3: one line on phones, parent name only ("Part of" hidden) and an unbroken phone number */
	.utility-bar__parent a { font-size: 0; }
	.utility-bar__parent strong { font-size: 0.6875rem; }
	.utility-bar__contact, .utility-bar__parent { white-space: nowrap; }
}

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 76px; gap: 24px; }
.brand { gap: 12px; flex-shrink: 0; }
.wp-block-site-title { margin: 0; line-height: 1.1; }
.wp-block-site-title a { text-decoration: none; }
/* Logo (1.2.2): sized by height so the 3.05 : 1 artwork keeps its proportions. Black on the white header, white in the dark footer. */
.wp-block-ubm-logo { margin: 0; line-height: 0; }
.wp-block-ubm-logo a { display: inline-block; }
.wp-block-ubm-logo img { display: block; width: auto; height: 48px; max-width: none; }
.site-footer .wp-block-ubm-logo img { height: 56px; }
.ubm-logo__text { font-family: var(--f-label); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: var(--navy); }
.site-footer .ubm-logo__text { color: #fff; }
.site-nav { margin-left: auto; }
.site-nav .wp-block-navigation-item__content { padding: 10px 11px; white-space: nowrap; color: var(--navy); }
.site-nav .wp-block-navigation-item__content:hover { color: var(--sky-ink); }
.site-nav .wp-block-navigation__container { gap: 2px; }
.header-cta { flex-shrink: 0; }
/* Collapse to the menu button below 1100px (core switches at 600px by default) */
@media (max-width: 1100px) {
	.site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.site-nav { order: 3; margin-left: 0; }
	.header-cta { margin-left: auto; }
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--wp--style--root--padding-right, 16px); background: #fff; }
.site-nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.site-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--surface); }
.site-nav .is-menu-open .wp-block-navigation-item__content { padding: 16px 4px; font-size: 0.875rem; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); }
@media (max-width: 420px) { .wp-block-site-title { font-size: 0.75rem !important; } .header-cta .wp-block-button__link { padding-inline: 14px; } }
/* Phones (V3 correction): the site name wraps to two lines and the controls tighten so the row fits from 360px up */
@media (max-width: 520px) {
	.site-header__inner { gap: 10px; }
	.brand { gap: 10px; flex-shrink: 1; min-width: 0; }
	.brand .wp-block-site-logo img { width: 32px !important; height: auto; }
	.site-header .wp-block-ubm-logo img { height: 36px; }
	.wp-block-site-title { font-size: 0.75rem !important; line-height: 1.2; max-width: 7.5rem; }
	.header-cta .wp-block-button__link { padding-inline: 14px; font-size: 0.75rem; min-height: 44px; }
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-small .wp-block-button__link { padding: 0.5rem 1.125rem; min-height: 40px; display: inline-flex; align-items: center; }
.wp-block-button .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.is-style-navy .wp-block-button__link { background: var(--navy); border-color: var(--navy); color: #fff; }
.wp-block-button.is-style-navy .wp-block-button__link:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }

/* ---------- Sections (core/group styles) ---------- */
.is-style-section, .is-style-section-surface, .is-style-section-navy, .is-style-section-deep { padding-block: var(--section); }
.is-style-section { background: #fff; }
.is-style-section-surface { background: var(--surface); }
.is-style-section-navy { background: var(--navy); }
.is-style-section-deep { background: var(--navy-deep); }
.is-style-hero { background: var(--navy); position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 88px); }
.is-style-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.is-style-hero > * { position: relative; }
.is-style-hero h1 { max-width: 14ch; }

/* Text on dark sections */
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero, .site-footer, .page-head) { color: var(--on-dark); }
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero, .site-footer, .page-head) :is(h1, h2, h3, h4) { color: #fff; }
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero, .page-head) a:not(.wp-element-button) { color: var(--sky); }
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero) .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.55); color: #fff; }
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero) .is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--navy); }
:is(.is-style-section-navy, .is-style-section-deep) .wp-element-caption { color: var(--on-dark-muted); }

/* Section heading row */
.section-head { margin-bottom: var(--wp--preset--spacing--40); gap: var(--wp--preset--spacing--50); }
.section-head .wp-block-column > * + * { margin-block-start: 16px; }
.section-head .is-style-lede { max-width: 58ch; }

/* ---------- Paragraph styles ---------- */
.is-style-eyebrow { font-family: var(--f-label); font-weight: 600; font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-ink); display: flex; align-items: center; gap: 10px; }
.is-style-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; flex-shrink: 0; }
:is(.is-style-section-navy, .is-style-section-deep, .is-style-hero, .page-head) .is-style-eyebrow { color: var(--sky); }
.is-style-lede { font-size: var(--wp--preset--font-size--md); line-height: 1.6; max-width: 62ch; }
.is-style-meta { font-family: var(--f-mono); font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.is-style-chip, .chip--ok, .chip--info, .chip--warn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip--ok { color: #1F7A49; border-color: #BFE3CE; background: #EEF8F2; }
.chip--info { color: var(--sky-ink); border-color: #B7E3F8; background: var(--sky-wash); }
.chip--warn { color: #8A5B00; border-color: #F1D49A; background: #FDF6E6; }
.chip--ok::before, .chip--info::before, .chip--warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-style-confirm { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; background: #FFF4C9; color: #5A4A00 !important; padding: 2px 7px; border: 1px dashed #C9AE4B; display: inline-block; }
.is-style-confirm::before { content: "CONFIRM: "; }
.textlink a { font-family: var(--f-label); font-weight: 600; font-size: var(--wp--preset--font-size--sm); text-decoration: none; }
.textlink a::after { content: " →"; }

/* ---------- List styles ---------- */
:is(.is-style-ticks, .is-style-checks, .is-style-points, .is-style-proof, .is-style-battery-string, .is-style-battery-row) { list-style: none; padding-left: 0; }
.is-style-ticks { border-top: 1px solid var(--line); }
.is-style-ticks li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.is-style-ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 12px; border: 2px solid var(--sky-ink); border-radius: 2px; }
.is-style-checks { border-top: 1px solid var(--navy-line); }
.is-style-checks li { padding: 11px 0 11px 28px; position: relative; border-bottom: 1px solid var(--navy-line); }
.is-style-checks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,158,98,.25); }
.is-style-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--navy-line); }
.is-style-points li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--navy-line); position: relative; font-family: var(--f-label); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.is-style-points li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; background: var(--sky); }
@media (max-width: 480px) { .is-style-points { grid-template-columns: 1fr; } }
.is-style-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: var(--wp--preset--spacing--50); padding-top: 16px; border-top: 1px solid var(--navy-line); }
.is-style-proof li { display: flex; align-items: center; gap: 10px; font-family: var(--f-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.is-style-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,158,98,.25); }

/* Battery string (hero) */
.is-style-string-panel { background: var(--navy-deep); border: 1px solid var(--navy-line); }
.is-style-string-panel > * { margin: 0; }
.string-panel__head { padding: 14px 20px; border-bottom: 1px solid var(--navy-line); }
.string-panel__head p { margin: 0; }
.string-panel__title { font-family: var(--f-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.string-panel__head .is-style-chip { border-color: var(--navy-line); color: var(--on-dark-muted); }
.is-style-battery-string { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; padding: 28px 24px 24px !important; margin: 0; }
.is-style-battery-string li { position: relative; aspect-ratio: 1.15; border: 2px solid #2F4D6B; background: #12273C; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; font-size: 0.8125rem; color: var(--on-dark-muted); }
.is-style-battery-string li::before { content: ""; position: absolute; top: -7px; left: 18%; right: 18%; height: 5px; border-left: 12px solid #2F4D6B; border-right: 12px solid #2F4D6B; box-sizing: border-box; }
.is-style-battery-string li::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.is-style-battery-string li.is-attention { border-color: var(--warn); background: rgba(229,160,25,.16); color: var(--warn); font-family: inherit; font-weight: 800; font-size: 1.25rem; animation: ubm-pulse 2.4s ease-out infinite; }
.is-style-battery-string li.is-attention::before { border-color: var(--warn); }
.is-style-battery-string li.is-attention::after { background: var(--warn); }
@keyframes ubm-pulse { 0% { box-shadow: 0 0 0 0 rgba(229,160,25,.5); } 100% { box-shadow: 0 0 0 12px rgba(229,160,25,0); } }
.string-panel__foot { padding: 16px 20px; border-top: 1px solid var(--navy-line); background: rgba(229,160,25,.07); gap: 16px; }
.string-panel__foot p { margin: 0; }
.string-panel__alert { display: grid; grid-template-columns: 40px auto; column-gap: 16px; align-items: center; color: var(--warn); font-family: var(--f-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.string-panel__alert::before { content: "!"; grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; background: var(--warn); color: var(--navy-deep); font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; font-size: 1.25rem; letter-spacing: 0; }
.string-panel__alert strong { display: block; color: #fff; font-family: var(--wp--preset--font-family--montserrat); font-size: var(--wp--preset--font-size--md); letter-spacing: 0; text-transform: none; }
.string-panel__tally { font-family: var(--f-mono); font-size: 0.75rem; color: var(--on-dark-muted); text-align: right; line-height: 1.6; }
@media (max-width: 480px) { .is-style-battery-string { gap: 14px 8px; padding: 22px 14px 18px !important; } .is-style-battery-string li { font-size: 0.6875rem; } .string-panel__tally { display: none; } }

/* Before / after monitoring */
.states { gap: 24px; }
.is-style-state-panel, .is-style-state-panel-on { border: 1px solid var(--line); padding: 24px; background: #fff; height: 100%; }
.is-style-state-panel-on { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--sky); }
:is(.is-style-state-panel, .is-style-state-panel-on) > * + * { margin-block-start: 16px; }
.is-style-state-panel-on .is-style-meta { color: var(--navy); display: flex; align-items: center; gap: 10px; }
:is(.is-style-state-panel, .is-style-state-panel-on) p:last-child { font-size: var(--wp--preset--font-size--sm); color: var(--muted); }
:is(.is-style-state-panel, .is-style-state-panel-on) p:last-child strong { display: block; font-size: var(--wp--preset--font-size--md); color: var(--ink); line-height: 1.4; }
.is-style-battery-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; padding-top: 8px !important; }
.is-style-battery-row li { position: relative; aspect-ratio: .8; border: 2px solid #B9C4D0; background: #EEF2F6; display: grid; place-items: center; font-weight: 800; color: #9AA8B8; }
.is-style-battery-row li::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 4px; background: #B9C4D0; }
.is-style-state-panel-on .is-style-battery-row li { border-color: #7FC9A0; background: #EEF8F2; }
.is-style-state-panel-on .is-style-battery-row li::before { background: #7FC9A0; }
.is-style-battery-row li.is-attention { border-color: var(--warn) !important; background: #FDF2DA !important; color: #8A5B00; font-size: 1.25rem; }
.is-style-battery-row li.is-attention::before { background: var(--warn) !important; }

/* Benefits */
.benefits { margin-top: var(--wp--preset--spacing--50); gap: var(--wp--preset--spacing--40); }
.benefits .wp-block-image img { max-width: 220px; width: 100%; }
.benefits h3 { font-size: var(--wp--preset--font-size--md); margin-top: 8px; }
.benefits p { font-size: var(--wp--preset--font-size--sm); margin-top: 8px; }
@media (max-width: 781px) {
	.benefits .wp-block-column { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 18px; align-items: start; }
	.benefits .wp-block-image { grid-row: 1 / span 2; margin: 0; }
	.benefits h3 { margin-top: 0; }
}

/* Photos with captions */
.photos { margin-top: var(--wp--preset--spacing--50); gap: 24px; }

/* CTA row */
.is-style-cta-row { margin-top: var(--wp--preset--spacing--50); padding: 24px 32px; border: 1px solid var(--line); background: #fff; gap: 16px 24px; align-items: center; }
.is-style-cta-row p { margin: 0; color: var(--muted); font-size: var(--wp--preset--font-size--sm); }
.is-style-cta-row p strong { display: block; font-weight: 800; font-size: var(--wp--preset--font-size--lg); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 2px; }
:is(.is-style-section-navy, .is-style-section-deep) .is-style-cta-row { background: rgba(25,181,254,.08); border-color: #23506F; }
:is(.is-style-section-navy, .is-style-section-deep) .is-style-cta-row p { color: var(--on-dark-muted); }
:is(.is-style-section-navy, .is-style-section-deep) .is-style-cta-row p strong { color: #fff; }
@media (max-width: 560px) { .is-style-cta-row { padding: 20px; } .is-style-cta-row .wp-block-buttons, .is-style-cta-row .wp-block-button, .is-style-cta-row .wp-block-button__link { width: 100%; } }

/* Solutions */
.is-style-solution-card { background: #fff; border-bottom: 3px solid var(--navy); padding-bottom: 24px; }
.is-style-solution-card > * { margin: 0; }
.is-style-solution-card > *:not(.wp-block-image) { padding-inline: 24px; }
.is-style-solution-card > * + * { margin-top: 10px; }
.is-style-solution-card .is-style-meta { margin-top: 18px; }
.is-style-solution-card h3 { font-size: var(--wp--preset--font-size--lg); }
.is-style-solution-card p:last-child { font-size: var(--wp--preset--font-size--sm); }
@media (max-width: 600px) {
	.is-style-solution-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; padding: 14px; border-bottom-width: 2px; }
	.is-style-solution-card .wp-block-image { grid-row: 1 / span 3; }
	.is-style-solution-card .wp-block-image img { aspect-ratio: 1 !important; }
	.is-style-solution-card > *:not(.wp-block-image) { padding-inline: 0; }
	.is-style-solution-card > * + * { margin-top: 2px; }
	.is-style-solution-card .is-style-meta { margin-top: 0; }
	.is-style-solution-card h3 { font-size: var(--wp--preset--font-size--md); }
}

/* Applications */
.is-style-app-tile > * + * { margin-top: 12px; }
.app-tile__media { position: relative; }
.app-tile__media .wp-block-image { margin: 0; }
.is-style-tag { position: absolute; left: 0; bottom: 0; margin: 0 !important; background: var(--navy); color: #fff; font-family: var(--f-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 14px; }
.is-style-app-tile > p { font-size: var(--wp--preset--font-size--sm); }
@media (max-width: 600px) {
	.wp-block-group.apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px; }
	.is-style-app-tile .wp-block-image img { aspect-ratio: 4 / 3 !important; }
	.is-style-tag { font-size: 0.625rem; padding: 7px 9px; letter-spacing: 0.08em; }
}

/* Tablet (1.2.1): four tiles or cards sit 2 × 2 instead of 3 + 1. Each range covers only the widths
   where the grid would otherwise fall to three columns, plus room for a desktop scrollbar. Desktop and phone rules are unchanged. */
@media (min-width: 601px) and (max-width: 990px) {
	.wp-block-group.apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 601px) and (max-width: 1120px) {
	.wp-block-group.solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* FAQs + resources */
.faq-resources { gap: clamp(32px, 5vw, 72px); }
.faq-resources h2 { margin-block: 16px 24px; }
.faq-resources h3 { margin-block: 16px 20px; }
.wp-block-post-template.is-style-compact { list-style: none; padding: 0; border-top: 2px solid var(--navy); }
.wp-block-post-template.is-style-compact > li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.wp-block-post-template.is-style-compact .wp-block-post-featured-image { margin: 0; background: repeating-linear-gradient(135deg, #E7ECF1 0 8px, #EEF2F6 8px 16px); aspect-ratio: 1; }
.wp-block-post-template.is-style-compact .wp-block-post-terms { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 4px; }
.wp-block-post-template.is-style-compact .wp-block-post-title { font-size: 0.9375rem; line-height: 1.35; margin: 0; }

/* Demo + form card */
.demo-columns { gap: clamp(32px, 5vw, 80px); }
.demo-columns > .wp-block-column:first-child > * + * { margin-block-start: 20px; }
.is-style-form-card { background: #fff; color: var(--text); padding: clamp(20px, 3vw, 36px); border-top: 4px solid var(--sky); }
.is-style-form-card h3 { color: var(--ink) !important; }
.is-style-form-card a { color: var(--sky-ink) !important; }
.form-card__note { font-size: var(--wp--preset--font-size--sm); color: var(--muted); margin-top: 6px; }

/* Gravity Forms (gravity-theme markup) */
.is-style-form-card .gform_wrapper { margin-top: 20px; }
.is-style-form-card .gform_fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px !important; }
.is-style-form-card .gfield--width-full, .is-style-form-card .gfield--type-textarea, .is-style-form-card .gfield--type-consent { grid-column: 1 / -1; }
.is-style-form-card .gfield_label { font-family: var(--f-label); font-weight: 600 !important; font-size: 0.75rem !important; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 6px !important; }
.is-style-form-card .gfield_required { color: var(--crit); }
.is-style-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { font: inherit; font-size: 1rem !important; color: var(--ink); background: #fff; border: 1px solid #A9B5C2 !important; border-radius: 4px; padding: 11px 12px !important; min-height: 48px; width: 100%; }
.is-style-form-card textarea { min-height: 96px !important; height: 96px; }
.is-style-form-card :is(input, select, textarea):focus-visible { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--navy) !important; }
.is-style-form-card .gfield_error :is(input, select, textarea) { border-color: var(--crit) !important; box-shadow: inset 3px 0 0 var(--crit); }
.is-style-form-card .validation_message, .is-style-form-card .gform_validation_errors { color: #A92F1C; font-size: 0.8125rem; }
.is-style-form-card .gfield--type-consent { font-size: 0.8125rem; color: var(--muted); }
.is-style-form-card .gform_footer { margin-top: 8px; padding: 0; }
.is-style-form-card .gform_button { font-family: var(--f-label) !important; font-weight: 600; font-size: 0.8125rem !important; letter-spacing: 0.08em; text-transform: uppercase; background: var(--navy) !important; color: #fff !important; border: 0; border-radius: 999px !important; padding: 14px 32px !important; min-height: 48px; min-width: 220px; cursor: pointer; }
.is-style-form-card .gform_button:hover { background: var(--navy-deep) !important; }
.is-style-form-card .gform_confirmation_message { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .is-style-form-card .gform_fields { grid-template-columns: 1fr; } .is-style-form-card .gform_button { width: 100%; } }
.ubm-form-fallback { border: 1px dashed var(--line); padding: 16px; font-size: var(--wp--preset--font-size--sm); color: var(--muted); }

/* Callout */
.is-style-callout { padding: 24px; background: var(--surface); border-top: 3px solid var(--sky); }
.is-style-callout > * + * { margin-block-start: 12px; }

/* Framed image */
.is-style-frame img { border: 1px solid var(--line); }

/* ---------- Tables ---------- */
.wp-block-table:is(.is-style-data, .is-style-comparison) table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--sm); border: 1px solid var(--line); background: #fff; }
.wp-block-table:is(.is-style-data, .is-style-comparison) :is(th, td) { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table:is(.is-style-data, .is-style-comparison) thead { border-bottom: 2px solid var(--navy); }
.wp-block-table:is(.is-style-data, .is-style-comparison) thead th { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wp-block-table.is-style-comparison td:first-child { font-weight: 700; color: var(--ink); }
.wp-block-table.is-style-comparison td:last-child { background: #F6FBFE; color: var(--ink); font-weight: 500; }
.wp-block-table.is-style-comparison thead th:last-child { color: var(--navy); background: var(--sky-wash); }
@media (max-width: 640px) {
	.wp-block-table.is-style-comparison thead { display: none; }
	.wp-block-table.is-style-comparison :is(table, tbody, tr, td) { display: block; }
	.wp-block-table.is-style-comparison tr { padding: 14px; border-bottom: 1px solid var(--line); }
	.wp-block-table.is-style-comparison td { padding: 0 0 6px; border: 0; background: none !important; }
}

/* ---------- Archive and cards ---------- */
.page-head { background: var(--navy); padding-block: clamp(40px, 5vw, 64px); }
.page-head > * + * { margin-block-start: 16px; }
.page-head .wp-block-term-description { color: var(--on-dark); max-width: 62ch; }
.filters { border-bottom: 1px solid var(--line); padding-block: 14px; }
.wp-block-categories.is-style-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wp-block-categories.is-style-pills a { display: inline-block; font-family: var(--f-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.wp-block-categories.is-style-pills a:hover, .wp-block-categories.is-style-pills .current-cat a { background: var(--navy); border-color: var(--navy); color: #fff; }
.wp-block-post-template.is-style-cards { gap: 48px 32px; }
.wp-block-post-template.is-style-cards > li { border-top: 3px solid var(--navy); }
.wp-block-post-template.is-style-cards .wp-block-post-featured-image { margin: 0 0 20px; background: repeating-linear-gradient(135deg, #E7ECF1 0 10px, #EEF2F6 10px 20px); }
.card__meta { gap: 6px 14px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card__meta > * { margin: 0; }
.wp-block-post-template.is-style-cards .wp-block-post-title { font-size: var(--wp--preset--font-size--md); line-height: 1.3; margin-top: 10px; }
.wp-block-post-template.is-style-cards .wp-block-post-title a:hover { color: var(--sky-ink); text-decoration: underline; }
.wp-block-post-template.is-style-cards .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--sm); color: var(--muted); margin-top: 8px; }
@media (max-width: 960px) { .wp-block-post-template.is-style-cards.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wp-block-post-template.is-style-cards.is-layout-grid { grid-template-columns: 1fr; } }
.wp-block-query-pagination { margin-top: 64px; font-family: var(--f-mono); gap: 6px; }
.wp-block-query-pagination :is(a, span.current) { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.wp-block-query-pagination span.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Breadcrumbs */
.ubm-breadcrumbs { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.ubm-breadcrumbs a { color: inherit; }
.page-head .ubm-breadcrumbs, .page-head .ubm-breadcrumbs a { color: var(--on-dark-muted); }

/* ---------- Single article ---------- */
.article__head { padding-block: clamp(32px, 4vw, 56px) 32px; }
.article__head > * + * { margin-block-start: 16px; }
.article__head .wp-block-post-terms { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.article__standfirst { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; font-weight: 500; max-width: 64ch; }
.article__byline { padding-top: 16px; border-top: 1px solid var(--line); gap: 14px 28px; font-size: var(--wp--preset--font-size--sm); }
.article__byline .wp-block-post-date { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.article__image img { width: 100%; }
.article__layout { gap: clamp(32px, 5vw, 80px); padding-block: 48px var(--section); }
.article__aside { position: sticky; top: 100px; align-self: start; }
.article__aside > * + * { margin-block-start: 32px; }
@media (max-width: 781px) { .article__aside { position: static; order: -1; } .aside-cta { display: none; } }
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 760px; }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-block-start: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: var(--wp--preset--font-size--md); margin-block-start: 1.6em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sky-ink); }
.prose strong { color: var(--ink); }
.article__author { margin-top: 48px; padding: 24px; border: 1px solid var(--line); font-size: var(--wp--preset--font-size--sm); }
.ubm-toc h2 { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ubm-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.ubm-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--wp--preset--font-size--sm); color: var(--text); text-decoration: none; line-height: 1.4; }
.ubm-toc a:hover { color: var(--sky-ink); border-left-color: var(--sky-ink); }
@media (max-width: 781px) { .ubm-toc { border: 1px solid var(--line); padding: 16px; } }

/* ---------- Closing CTA band ---------- */
.cta-band { background: var(--sky); color: var(--navy); padding-block: var(--wp--preset--spacing--50); }
.cta-band h2 { color: var(--navy); }
.cta-band p { font-weight: 500; }
.cta-band .is-style-outline .wp-block-button__link { border-color: var(--navy); color: var(--navy); font-family: var(--f-mono); letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); font-size: var(--wp--preset--font-size--sm); padding-block: 64px 32px; }
.site-footer .wp-block-site-title a { color: #fff; }
.site-footer__grid { gap: 48px; }
.site-footer__title { font-family: var(--f-label); font-size: var(--wp--preset--font-size--xs) !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer__legal { border-top: 1px solid var(--navy-line); margin-top: 48px !important; padding-top: 24px; font-size: var(--wp--preset--font-size--xs); gap: 12px 32px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal-links { display: flex; gap: 24px; }

/* ---------- Editor only ---------- */
.editor-styles-wrapper .is-style-confirm { display: inline-block; }
