/*
Theme Name: COL
Theme URI: https://coversureonline.co.uk
Author: Coversure Hull (Getaquote Limited)
Description: Lightweight block theme for coversureonline.co.uk. Core blocks only; no page builder. Brand: Coversure brand guidelines v1 (12/2020).
Version: 0.9.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: col
*/

/* Most styling lives in theme.json. This file holds only what theme.json can't express. */

/* Until Brandon Text has loaded, text shows in Arial scaled to Brandon's width and line height, so nothing moves when
   the font swaps in (Construction's hero jumped on phones: CLS 0.13, speed check 4 Nov). Widths measured on the site's
   own text in the browser (bold on its headings, erring narrow so full lines don't wrap); heights from the font files.
   Phones without Arial use Roboto, which is close. */
@font-face { font-family: "Brandon Text Fallback"; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Roboto"); size-adjust: 96.8%; ascent-override: 110.23%; descent-override: 33.37%; line-gap-override: 0%; }
@font-face { font-family: "Brandon Text Fallback"; font-weight: 500; src: local("Arial"), local("ArialMT"), local("Roboto"); size-adjust: 97.2%; ascent-override: 109.77%; descent-override: 33.23%; line-gap-override: 0%; }
@font-face { font-family: "Brandon Text Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 89.5%; ascent-override: 119.22%; descent-override: 36.09%; line-gap-override: 0%; }

body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Decorations that hang past the edge (hero chevron, watermarks) are cut off at the page edge: on body alone the
   clip passes to the window, which can still be nudged sideways on phones. */
.wp-site-blocks { overflow-x: clip; }
/* On short pages (thank-you, 404, search) the footer sits at the bottom of the window, not above a white band. */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
strong, b { font-weight: 700; }

/* Header, main and footer, and the full-width sections inside a page, sit flush against each other. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Header ---------- */
.col-topbar { font-size: var(--wp--preset--font-size--small); }
.col-topbar p { margin: 0; }
.col-topbar a { color: var(--wp--preset--color--white); text-decoration: none; }
.col-topbar a:hover, .col-topbar a:focus-visible { text-decoration: underline; }
.col-topbar .col-portal { padding-left: 1.2em; background: url(assets/img/customer-login.svg) no-repeat left center / 0.85em; }
.col-topbar .col-sep { margin: 0 0.75em; opacity: 0.6; }
.col-topbar .col-phone { color: var(--wp--preset--color--green); font-weight: 700; }
.col-header { border-bottom: 1px solid var(--wp--preset--color--grey); position: relative; z-index: 50; }
.col-header-row { gap: 1.5rem; }
.col-logo { margin: 0; flex-shrink: 0; }
.col-logo img { width: 180px; height: auto; display: block; }
.col-nav { flex: 1 1 auto; font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.col-nav a { text-decoration: none; }
.col-nav .wp-block-navigation__container { gap: 1.75rem; }
.col-nav .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: 0 8px 24px rgba(12, 35, 64, 0.15); border-radius: 6px; padding: 0.4rem 0; min-width: 240px !important; font-weight: 400; }
.col-nav .wp-block-navigation__submenu-container a { padding: 0.45rem 1rem !important; }
.col-nav .wp-block-navigation-item a:hover { color: var(--wp--preset--color--dark-green); }
.col-header-cta .wp-block-button__link { padding: 0.6em 1.3em; }
@media (max-width: 781px) {
	.col-topbar .col-hours, .col-topbar .col-help { display: none; }
	.col-topbar .wp-block-group { justify-content: center !important; }
	.col-logo img { width: 140px; }
	.col-header-cta .wp-block-button__link { padding: 0.5em 1em; font-size: 0.9rem; white-space: nowrap; }
	.col-header-row { gap: 0.75rem; }
}
/* The full menu needs about 1000px; below that it folds into the menu button (core folds only below 600px). */
@media (max-width: 1023px) {
	.col-nav { flex: 0 0 auto; }
	.col-header-row > .col-nav { margin-left: auto; }
	.col-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.col-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.col-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; font-size: 1.15rem; }
	.col-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; padding-left: 1rem; }
}

/* ---------- Sections ---------- */
.has-blue-background-color :is(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }
.has-blue-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--white); }
.col-eyebrow { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.2rem; color: var(--wp--preset--color--green-text); margin-bottom: 0.5rem; }
/* Small green labels are the brand's dark green everywhere, on light and on navy, as live (Andy 19 Oct: "the greens are wrong"). */
.has-blue-background-color .col-eyebrow, .col-hero .col-eyebrow { color: var(--wp--preset--color--green-text); }
/* Links inside the text are vibrant green, underlined, on every background, as live. */
.wp-block-post-content :is(p, li:not(.wp-block-post)) a:not(.wp-element-button), .wp-block-post-content :is(p, li:not(.wp-block-post)) a:not(.wp-element-button):hover { color: var(--wp--preset--color--green); text-decoration-color: currentColor; }
.col-intro { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Buttons: green "Get a Quote" and the underlined "Request a Callback" link */
.wp-block-button.is-style-underline .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--blue); border-radius: 0;
	border-bottom: 3px solid currentColor; padding: 0.35em 0;
}
.wp-block-button.is-style-underline .wp-block-button__link:hover { color: var(--wp--preset--color--dark-green); background: transparent; }
:is(.has-blue-background-color, .col-hero, .col-cta) .wp-block-button.is-style-underline .wp-block-button__link { color: var(--wp--preset--color--white); }
:is(.has-blue-background-color, .col-hero, .col-cta) .wp-block-button.is-style-underline .wp-block-button__link:hover { color: var(--wp--preset--color--green); }
.wp-block-buttons { gap: 1.5rem; align-items: center; }

/* Hero (Cover block). The navy chevron panel sits over the left of the photo, as on the old site. */
.col-hero { min-height: 620px; align-items: flex-end; padding-top: 1rem; padding-bottom: 4rem; }
.col-hero.col-hero--chevron::before {
	content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 60%; z-index: 1; opacity: 0.85;
	background: url(assets/img/hero-chevron.svg) no-repeat right center / cover;
}
.col-hero .wp-block-cover__inner-container { z-index: 2; }
.col-hero h1 { color: var(--wp--preset--color--white); font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.08; margin: 0; }
.col-hero-text { max-width: 540px; }
.col-hero-text p { margin: 1rem 0 0; }
.col-hero-text a:not(.wp-element-button) { color: var(--wp--preset--color--green); }
.col-hero .wp-block-buttons { margin-top: 1.75rem; }
.col-hero-row { align-items: flex-end !important; }
.col-hero-award { margin: 0; flex-shrink: 0; }
.col-hero-award img { width: 150px; height: auto; }
.col-crumbs { font-size: 15px; margin: 0 0 3.5rem; }
.col-crumbs, .col-crumbs a { color: var(--wp--preset--color--white); text-decoration: none; }
.col-crumbs a:hover { text-decoration: underline; }
@media (max-width: 781px) {
	.col-hero { min-height: 0 !important; padding-top: 0.75rem; padding-bottom: 2.5rem; }
	.col-crumbs { margin-bottom: 1.5rem; }
	.col-hero:not(:has(.col-crumbs)) { padding-top: 2.25rem; } /* home: the H1 doesn't sit tight under the header */
}
/* Side by side (782px and up), the shaped photos run out to the edge of the window, as on the old site: a photo in the
   left column (shape pointing right) to the left edge, one in the right column to the right edge. The gap to cover is
   the side margin outside the 1240px content width, or the page padding on narrower screens. */
@media (min-width: 782px) {
	:root { --col-bleed: max((100vw - 1240px) / 2, var(--wp--style--root--padding-left, 20px)); }
	.wp-block-column > .col-shape-right { margin-left: calc(-1 * var(--col-bleed)) !important; }
	.wp-block-column > .col-shape-left { margin-right: calc(-1 * var(--col-bleed)) !important; }
	/* the "How much does … cost?" panel too: its photo runs to the left edge, its words stay on the page's left line */
	.col-cost .wp-block-column:first-child > .col-cost-panel { margin-left: calc(-1 * var(--col-bleed)) !important;
		padding-left: calc(var(--col-bleed) + 2.5rem) !important; border-top-left-radius: 0; border-bottom-left-radius: 0; }
}
/* Tablet, single column: the shaped photos would otherwise fill the whole width and stand ~550px tall. */
@media (min-width: 600px) and (max-width: 781px) {
	.col-shape-left, .col-shape-right { max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
}

/* Image masks: the brand's chevron-ended shapes (moved from Impreza's Custom CSS) */
.col-shape-left, .col-shape-right { position: relative; margin: 0; }
.col-shape-left img, .col-shape-right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-shape-left { -webkit-mask: url(assets/img/shape-left.svg?v=2) no-repeat center / 100% 100%; mask: url(assets/img/shape-left.svg?v=2) no-repeat center / 100% 100%; }
.col-shape-right { -webkit-mask: url(assets/img/shape-right.svg?v=2) no-repeat center / 100% 100%; mask: url(assets/img/shape-right.svg?v=2) no-repeat center / 100% 100%; }
.col-shape-left.col-tinted::after, .col-shape-right.col-tinted::after { content: ""; position: absolute; inset: 0; background: rgba(12, 35, 64, 0.5); pointer-events: none; }

/* Cards: service cards and benefit cards */
.col-card { background: var(--wp--preset--color--white); border-radius: 10px; box-shadow: 0 2px 8px rgba(12, 35, 64, 0.12); padding: 1.25rem; color: var(--wp--preset--color--body-text); }
.wp-block-column > .col-card:only-child { height: 100%; } /* cards in a row line up; stacked cards keep their own height */
.wp-block-column > .col-card + .col-card { margin-top: 1.25rem; }
.col-card > * { margin-top: 0; margin-bottom: 0; }
.col-card > * + * { margin-top: 0.6rem; }
.col-card h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.col-card h3 a { color: inherit; text-decoration: none; }
.col-card h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.col-card:has(h3 a) { position: relative; transition: box-shadow 0.15s, transform 0.15s; }
.col-card:has(h3 a):hover { box-shadow: 0 6px 18px rgba(12, 35, 64, 0.2); transform: translateY(-2px); }
.col-card-icon { margin: 0; }
.col-card-icon img { width: 44px; height: 44px; object-fit: contain; }
.col-card--service { text-align: center; }
.col-card--service .col-card-icon img { width: 64px; height: 64px; margin: 0 auto; }
.col-card-title { display: flex; align-items: center; gap: 0.6rem; }
.col-card-title::before { content: ""; flex: 0 0 26px; height: 26px; background: url(assets/img/chevron-mark.svg) no-repeat center / contain; }
.col-card-title--icon::before { display: none; } /* the card has its own icon from live (Andy, 20 Oct) */
.col-card-title--icon img { flex: 0 0 26px; width: 26px !important; height: 26px; object-fit: contain; margin: 0; }
.col-why p { font-weight: 700; color: var(--wp--preset--color--blue); }
.col-why img { width: 44px; height: 44px; object-fit: contain; }
.col-columns-cards { gap: 1.25rem !important; }

/* Chevron lists */
ul.is-style-chevron { list-style: none; padding-left: 0; }
ul.is-style-chevron li { position: relative; padding-left: 1.6rem; margin: 0 0 0.8rem; }
ul.is-style-chevron li ul { list-style: none; padding-left: 0; margin: 0.6rem 0 0; } /* sub-lists keep the chevron only */
ul.is-style-chevron li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 10px; height: 16px; background: url(assets/img/chevron.svg) no-repeat center / contain; }

ul.is-style-tick { list-style: none; padding-left: 0; }
ul.is-style-tick li { position: relative; padding-left: 1.7rem; margin: 0 0 0.6rem; }
ul.is-style-tick li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.1rem; height: 1.1rem; background: url(assets/img/tick.svg) no-repeat center / contain; }

/* Icon lists (an icon beside a short line, e.g. the vehicle types a fleet policy covers) */
.col-iconlist { gap: 0.75rem; margin-block: 1rem; }
.col-iconrow { gap: 0.75rem 2rem; margin-block: 1rem 0; }
.col-iconrow > .col-iconlist, .col-iconrow + .col-iconlist { margin-block: 0; }
/* as live (Andy, 20 Oct "some of the spacings are out"): a row's items sit side by side, two to a row, and the
   list after the row keeps the same 15px gap */
.col-iconrow > .col-iconlist { flex-direction: row; flex-wrap: nowrap; gap: 15px 1.5rem; width: 100%; }
.col-iconrow > .col-iconlist > .col-iconitem { flex: 0 1 auto; min-width: 0; }
.col-iconrow + .col-iconlist { margin-top: 15px; }
@media (max-width: 1024px) { .col-iconrow > .col-iconlist { flex-direction: column; gap: 12px; } .col-iconrow + .col-iconlist { margin-top: 12px; } }
.col-iconitem { gap: 0.75rem; }
.col-iconitem > * { margin: 0 !important; }
.col-iconitem p { font-weight: 700; color: var(--wp--preset--color--blue); }
.has-blue-background-color .col-iconitem p { color: var(--wp--preset--color--white); }
.col-iconitem-img { flex: 0 0 40px; }
.col-iconitem-img img { width: 40px !important; height: 40px; object-fit: contain; }

/* "Call us today" strip */
.col-callstrip p { margin: 0; font-weight: 700; color: var(--wp--preset--color--blue); }
.col-callstrip p::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.6em; vertical-align: -0.15em; background: url(assets/img/phone.svg) no-repeat center / contain; }
.col-callstrip a, .wp-block-post-content .col-callstrip p a:not(.wp-element-button) { color: var(--wp--preset--color--green-text); text-decoration: none; }

/* Cost block: photo panel with the heading over it */
.col-cost-panel { border-radius: 0 10px 10px 0; }
.col-cost-panel .wp-block-cover__inner-container > * { max-width: 520px; }

/* Customer reviews (synced pattern) */
.col-reviews { position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 50% 100%, 0 calc(100% - 70px)); padding-bottom: calc(var(--wp--preset--spacing--60) + 70px) !important; }
.col-quote { background: var(--wp--preset--color--white); color: var(--wp--preset--color--body-text); border-radius: 10px; padding: 1.5rem; height: 100%; }
.col-quote > * { margin: 0; }
.col-quote > * + * { margin-top: 0.9rem; }
.col-quote .col-stars { height: 20px; background: url(assets/img/star.svg) repeat-x left center / 20px 20px; width: 100px; }
.col-quote cite, .col-quote .col-quote-author { font-style: normal; font-weight: 700; color: var(--wp--preset--color--blue); }
.col-rating-big { font-size: 1.25rem; margin: 0.4rem 0 0; }
.col-reviews .col-rating p { margin: 0.4rem 0; }
.col-reviews .col-rating figure { margin: 0.5rem 0; }

/* FAQ accordion (core Accordion block) */
.col-faq .wp-block-accordion-item { background: var(--wp--preset--color--white); border: 1px solid #E3E6EA; }
.col-faq .wp-block-accordion-item + .wp-block-accordion-item { border-top: 0; }
.col-faq .wp-block-accordion-heading { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.col-faq .wp-block-accordion-heading__toggle { padding: 1rem 1.25rem; color: var(--wp--preset--color--blue); gap: 1rem; }
.col-faq .wp-block-accordion-heading__toggle-icon { font-size: 1.4rem; font-weight: 400; }
.col-faq .wp-block-accordion-panel { padding: 0 1.25rem 1.1rem; }
.col-faq .wp-block-accordion-panel p { margin: 0; }

/* Call to action band and the three-ticks strip (synced pattern) */
.col-cta { border-radius: 10px; overflow: hidden; min-height: 380px; background-color: var(--wp--preset--color--blue); } /* navy until the photo loads */
.col-cta { padding: 2.5rem 2.5rem !important; }
.col-cta .wp-block-cover__inner-container > * { max-width: 44%; margin-left: 0 !important; margin-right: 0 !important; }
.col-cta h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; color: var(--wp--preset--color--white); }
.col-ticks { background: rgba(91, 165, 10, 0.1); }
.col-ticks p { margin: 0; font-size: 0.875rem; padding-left: 1.6rem; position: relative; }
.col-ticks p::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 1rem; height: 1rem; background: url(assets/img/tick.svg) no-repeat center / contain; }
@media (max-width: 781px) {
	.col-cta { min-height: 0; }
	.col-cta .wp-block-cover__image-background { object-position: 20% center; }
	.col-cta .wp-block-cover__background { background: var(--wp--preset--color--blue) !important; opacity: 0.85 !important; }
	.col-cta .wp-block-cover__inner-container > * { max-width: none; }
}

/* Blog cards (Query Loop) */
.col-posts .wp-block-post-featured-image img { border-radius: 10px; }
.col-posts .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--body-text); font-weight: 600; }
.col-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--dark-green); }
/* blog cards as live: category in bold body text, date in the dark green, "16th October 2026" (functions.php) */
.col-posts .wp-block-post-terms a { font-size: 0.875rem; font-weight: 700; text-decoration: none; color: var(--wp--preset--color--body-text); }
.col-posts .wp-block-post-date { color: var(--wp--preset--color--green-text); font-size: 1rem; }

/* Watermark (the faint chevron behind some sections) */
.col-watermark { position: relative; }
.col-watermark { isolation: isolate; }
/* live's big faint logo (Logo-watermark-dark.svg, 4% navy), centred behind the section, sized to fit it */
.col-watermark::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(1300px, 100%); background: url(assets/img/watermark.svg) no-repeat center / contain; pointer-events: none; z-index: -1; }
/* in the FAQ, live has it off to the right, past the content (seen only on wide screens) */
.col-faq-section::after { left: calc(50% + 770px); transform: none; width: 400px; height: 450px; top: 60px; bottom: auto; }

/* ---------- Single post ---------- */
.col-post-hero h1 { color: var(--wp--preset--color--white); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.1; }
.col-post-meta, .col-post-meta a { color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--small); text-decoration: none; }
.col-post-body { font-size: 1rem; } /* live: 16px body text at every width */
.col-post-body img { border-radius: 8px; height: auto; }
.col-post-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; margin-top: 2.25rem; }
.col-post-body h3 { font-size: 1.35rem; margin-top: 1.75rem; }
/* posts whose section headings were H3/H4 under the title were lifted to H2/H3 (consistency check, 20 Oct); they keep
   the look they had */
.col-post-body h2.col-h3 { font-size: 25px !important; font-weight: 700; line-height: 1.1 !important; margin-top: 28px; text-transform: capitalize; }
.col-post-body h3.col-h4 { font-size: 20px !important; font-weight: 700; line-height: 1.1 !important; margin-top: 24px; text-transform: none !important; }
.col-post-body table { border-collapse: collapse; width: 100%; }
.col-post-body td, .col-post-body th { border: 1px solid var(--wp--preset--color--grey); padding: 0.5rem 0.75rem; vertical-align: top; }
.col-post-featured img { border-radius: 10px; }

/* ---------- Footer ---------- */
.col-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.col-footer .col-footer-links a:not(.wp-element-button) { color: #8791A0; } /* live's footer link grey */
.col-footer .col-footer-links a:not(.wp-element-button):hover { color: var(--wp--preset--color--green); text-decoration: none; }
/* the green Get a Quote button keeps its navy words (white on green is too faint to read) */
.col-footer .wp-block-button:not(.is-style-underline) > .wp-block-button__link { color: var(--wp--preset--color--blue); }
.col-footer a:hover { text-decoration: underline; }
.col-footer h2 { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--white); }
.col-footer ul { list-style: none; padding-left: 0; margin: 0; }
.col-footer li + li { margin-top: 0.35rem; }
.col-footer-top { padding-bottom: var(--wp--preset--spacing--50); gap: 1.5rem 2.5rem; }
.col-footer-top > .wp-block-group { gap: 1rem 2.5rem; }
.col-footer-logo { margin: 0; }
.col-footer-help { margin: 0; }
.col-footer-links { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); border-top: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.col-footer-links h2 { margin: 0 0 0.75rem; }
.col-footer-bottom { padding-top: var(--wp--preset--spacing--40); }
@media (max-width: 781px) { .col-footer-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.col-footer .col-phone { color: var(--wp--preset--color--green); font-weight: 700; }
.col-legal { font-size: var(--wp--preset--font-size--small); opacity: 0.9; }

/* Forminator: same green button as the old Formidable forms (moved from Impreza Custom CSS) */
.forminator-ui.forminator-custom-form .forminator-button-submit {
	background: #97d700 !important;
	color: #0c2340 !important;
	border-radius: 8px !important;
}
.forminator-ui.forminator-custom-form .forminator-button-submit:hover {
	color: #fff !important;
}

/* Cookie policy table (moved from Impreza Custom CSS) */
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 20px; }
.cookie-table thead { background-color: #d8dee9; }
.cookie-table th, .cookie-table td { border: 1px solid #e2e8f0; padding: 12px 16px; text-align: left; vertical-align: top; }
.cookie-table tbody tr:nth-child(even) { background-color: #f9fafb; }
.cookie-table th { font-weight: 600; }

/* Single post: hero band and crumbs */
.col-post-hero .col-crumbs { margin-bottom: 1.5rem; }
.col-post-hero .wp-block-post-title { margin-top: 0.5rem; }
.col-post-hero .wp-block-post-terms a { background: var(--wp--preset--color--green); color: var(--wp--preset--color--blue); padding: 0.2em 0.6em; border-radius: 4px; font-weight: 700; }

/* Hero copy width (keeps the H1 to two or three lines, as live) */
.col-hero-copy { flex: 1 1 480px; max-width: 620px; }
/* Light cover panels: dark text (core Cover defaults to white text) */
.col-cost-panel, .col-cost-panel h2 { color: var(--wp--preset--color--blue); }
.col-cost-panel p { color: var(--wp--preset--color--body-text); }
@media (max-width: 781px) { .col-cost-panel { min-height: 0 !important; padding: 2rem 1.25rem !important; } }
@media (max-width: 781px) {
	/* Service cards two to a row on phones */
	.col-columns-cards:has(.col-card--service) { flex-wrap: wrap !important; gap: 0.75rem !important; }
	.col-columns-cards:has(.col-card--service) > .wp-block-column { flex-basis: calc(50% - 0.375rem) !important; flex-grow: 0; }
	.col-columns-cards:has(.col-card--service) + .col-columns-cards { margin-top: 0.75rem; }
	.col-card--service { padding: 1rem 0.75rem; }
	.col-card--service h3 { font-size: 1rem; }
}

/* ---------------------------------------------------------------- Phase 3 pages (0.4.0) */
/* Photo band on the non-service pages (About, Testimonials, FAQ, Contact, Blog, Search) */
.col-hero--page { padding-bottom: 3rem; }
.col-hero--page h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.col-hero-text--wide { max-width: 780px; }
.col-hero .col-search { max-width: 560px; margin-top: 1.75rem; }
.col-hero .has-text-align-center + .col-search { margin-left: auto; margin-right: auto; }
.col-search .wp-block-search__input { border-radius: 40px 0 0 40px; border: 0; padding: 0.7rem 1.1rem; }
.col-search .wp-block-search__button { border-radius: 0 40px 40px 0; margin-left: 0; background: var(--wp--preset--color--green); color: var(--wp--preset--color--blue); border: 0; }
.col-page-band h1 { color: var(--wp--preset--color--white); margin: 0; }
.col-page-title { color: var(--wp--preset--color--blue); font-size: clamp(2rem, 1.3rem + 2vw, 3.1rem); line-height: 1.1; margin-top: 0.25rem; }
.col-watermark > .col-crumbs, .col-text-page .col-crumbs { color: var(--wp--preset--color--blue); }

/* About: award badge over the photo; reviews you scroll sideways; photo cards */
.col-about-photo { position: relative; }
.col-about-photo .col-about-award { position: absolute; right: 8%; bottom: -24px; margin: 0; z-index: 2; }
.col-quote-scroll { overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.25rem; padding-bottom: 0.9rem; scrollbar-color: var(--wp--preset--color--green) rgba(255, 255, 255, 0.15); }
.col-quote-scroll > .col-quote { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; height: auto; margin: 0; }
.col-quote-scroll > .col-quote { margin-block-start: 0 !important; }
.col-photo-card { border-radius: 10px; overflow: hidden; height: 100%; align-items: flex-end; padding: 1.75rem 1.5rem !important; }
.col-photo-card h3 { color: var(--wp--preset--color--white); margin: 0 0 0.5rem; font-size: 1.35rem; }
.col-photo-card p { color: var(--wp--preset--color--white); margin: 0 0 1.25rem; }
@media (max-width: 781px) {
	.col-quote-scroll > .col-quote { flex-basis: 85%; }
	.col-about-photo .col-about-award { display: none; }
	.col-photo-card { min-height: 260px !important; }
}

/* Testimonials grid */
.col-quotes + .col-quotes { margin-top: 1.5rem; }
.col-quotes .col-quote { box-shadow: 0 4px 18px rgba(12, 35, 64, 0.06); }
.col-feefo-badge { margin: 0; }

/* Insurance FAQ: jump links to the four sections */
.col-faq-tabs { gap: 0.5rem 1.75rem; margin-bottom: 0.5rem; }
.col-faq-page h2[id] { scroll-margin-top: 140px; margin-top: 2.75rem; margin-bottom: 1.25rem; }

/* Contact */
.col-contact-phone a { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.35rem; color: var(--wp--preset--color--dark-green); text-decoration: none; padding-left: 1.75rem; background: url(assets/img/phone.svg) no-repeat left center / 1.15rem; }
.col-contact-panel { border-radius: 10px; overflow: hidden; padding: 2.5rem 2.25rem !important; align-items: flex-start; }
.col-contact-panel h2 { color: var(--wp--preset--color--white); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.15; }
.col-contact-panel .is-style-tick li { color: var(--wp--preset--color--white); }
.col-contact-logo { margin: 0 0 1rem; }
.col-form { background: var(--wp--preset--color--white); border-radius: 10px; padding: 1.75rem 2rem; }
.col-contact-form .col-form { border: 1px solid #E3E6EA; height: 100%; }
@media (max-width: 781px) { .col-contact-panel { min-height: 0 !important; padding: 2rem 1.25rem !important; } .col-form { padding: 1.25rem 1rem; } }

/* Policy pages and messages */
.col-text-page h1 { color: var(--wp--preset--color--blue); font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); }
.col-text-page h2, .col-text-page h3, .col-text-page h4, .col-text-page h5 { color: var(--wp--preset--color--blue); margin-top: 2rem; }
.col-legal-dates { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--body-text); margin: 0.25rem 0; }
.wp-block-table.cookie-table table { width: 100%; border-collapse: collapse; }
.wp-block-table.cookie-table thead { border-bottom: 0; }
.col-message { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.col-message h1 { color: var(--wp--preset--color--blue); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.6rem); }

/* Blog list, search results and archives */
.col-cat-filter { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 2rem; }
.col-cat-filter select { padding: 0.5rem 0.75rem; border: 1px solid #C9CED6; border-radius: 6px; font: inherit; }
.col-posts .wp-block-query-pagination { margin-top: 2.5rem; gap: 0.75rem; }
.col-posts .wp-block-query-pagination a, .col-posts .wp-block-query-pagination .current { color: var(--wp--preset--color--blue); text-decoration: none; padding: 0.25rem 0.6rem; border-radius: 4px; }
.col-posts .wp-block-query-pagination .current { background: var(--wp--preset--color--green); }
/* 0.4.0 fixes after the first look */
.col-watermark > .col-crumbs a, .col-text-page .col-crumbs a { color: var(--wp--preset--color--blue); }
.col-watermark > .col-crumbs { margin-bottom: 1.5rem; }
.col-hero--page .wp-block-cover__inner-container > .col-hero-text, .col-hero--page .wp-block-cover__inner-container > .col-search { margin-left: 0 !important; }
.col-hero--page .col-hero-text p { text-align: left; }
.col-hero--page .has-text-align-center ~ .col-search { margin-left: auto !important; margin-right: auto !important; }
.col-cat-filter { justify-content: flex-start; }
.col-cat-filter label { width: auto; margin: 0; font-weight: 700; color: var(--wp--preset--color--blue); }
.col-text-page h4, .col-text-page h5, .col-text-page h6 { font-size: 1.25rem; line-height: 1.3; }

/* Forminator keeps each form hidden until its script runs, so the page jumped (CLS 0.3–0.5 on the form pages, live
   too). While the form is hidden, hold its space: heights measured on COL Rebuild, 19 Oct (3618 Get a Quote,
   3617 Contact, 3619 Request a Callback). */
.col-form:has(> form.forminator-custom-form[style*="display: none"])::after { content: ""; display: block; height: var(--col-form-h, 500px); }
.col-form:has(> #forminator-module-3618) { --col-form-h: 604px; }
.col-form:has(> #forminator-module-3617) { --col-form-h: 504px; }
.col-form:has(> #forminator-module-3619) { --col-form-h: 323px; }
@media (max-width: 781px) {
	.col-form:has(> #forminator-module-3618) { --col-form-h: 584px; }
	.col-form:has(> #forminator-module-3617) { --col-form-h: 474px; }
	.col-form:has(> #forminator-module-3619) { --col-form-h: 486px; }
}

/* ---------- Motion, as on the old site (Andy 19 Oct: "some animations are missing") ---------- */
/* Header stays pinned at the top and gets slimmer once you scroll (live: 120px → 100px). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.col-header { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.col-scrolled .col-header { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; box-shadow: 0 2px 12px rgba(12, 35, 64, 0.08); }
html { scroll-padding-top: 140px; } /* jump links (FAQ) land below the pinned header */

/* Scroll-in motion: live's keyframes (Impreza afl/afr/afb/fade/bounce), 0.6s, with live's delays. */
@keyframes col-afl { from { opacity: 0; transform: translateX(-5rem); } to { opacity: 1; transform: none; } }
@keyframes col-afr { from { opacity: 0; transform: translateX(5rem); } to { opacity: 1; transform: none; } }
@keyframes col-afb { from { opacity: 0; transform: translateY(5rem); } to { opacity: 1; transform: none; } }
@keyframes col-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes col-bounce { 0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 20% { transform: scale3d(1.1, 1.1, 1.1); }
	40% { transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
	80% { transform: scale3d(0.97, 0.97, 0.97); } 100% { opacity: 1; transform: none; } }
.col-anim :is(main .wp-block-button, .col-footer-top .wp-block-button, .col-hero-award, .col-about-award, .col-rating > *,
	.col-why > .wp-block-column, .col-footer-bottom .wp-block-image):not(.col-in) { opacity: 0; }
.col-anim .col-in { animation: col-afl 0.6s ease 1s both; }                                   /* Get a Quote */
.col-anim .wp-block-button.is-style-underline.col-in { animation-delay: 0.5s; }               /* Request a Callback */
.col-anim :is(.col-hero-award, .col-footer-bottom .wp-block-image).col-in { animation-name: col-afr; animation-delay: 1s; }
.col-anim .col-about-award.col-in { animation-name: col-bounce; animation-delay: 0.5s; }
.col-anim .col-rating > .col-rating-big.col-in { animation-name: col-afl; animation-delay: 1s; }
.col-anim .col-rating > p:not(.col-rating-big).col-in { animation-name: col-afr; animation-delay: 1.2s; }
.col-anim .col-rating > figure.col-in { animation-name: col-bounce; animation-delay: 1.5s; }
.col-anim .col-rating > .wp-block-buttons.col-in { animation-name: col-afb; animation-delay: 1.8s; }
.col-anim .col-why > .wp-block-column.col-in { animation-name: col-fade; animation-delay: 0.5s; }
.col-anim .col-why > .wp-block-column:nth-child(2).col-in { animation-delay: 1s; }
.col-anim .col-why > .wp-block-column:nth-child(3).col-in { animation-delay: 1.5s; }
.col-anim .col-why > .wp-block-column:nth-child(4).col-in { animation-delay: 2s; }
.col-anim .col-rating > .wp-block-buttons .wp-block-button { opacity: 1; animation: none; } /* moves with its row */

/* The floating green call button, bottom right, on every page (live's phone-icon-mob). */
.col-callfab { position: fixed; right: 20px; bottom: 20px; z-index: 90; margin: 0 !important; width: 40px; height: 40px; line-height: 0; }
.col-callfab img { display: block; width: 40px; height: 40px; }
.col-callfab a:hover img { transform: scale(1.08); transition: transform 0.2s; }

/* ---------- Carousels (Andy 19 Oct: "bring back the sliding carousels"), driven by col.js ---------- */
/* The track: one row of cards that slides; 3 cards from 1025px, 2 from 701px, 1 below (live's settings). */
.col-track { display: flex !important; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; gap: 1.25rem !important; padding-bottom: 0 !important; }
.col-track::-webkit-scrollbar { display: none; }
.col-track > * { flex: 0 0 100% !important; scroll-snap-align: start; margin: 0 !important; min-width: 0; }
@media (min-width: 701px) { .col-track > * { flex-basis: calc((100% - 1.25rem) / 2) !important; } }
@media (min-width: 1025px) { .col-track > * { flex-basis: calc((100% - 2.5rem) / 3) !important; } }
.col-track:focus-visible { outline: 2px solid var(--wp--preset--color--green); outline-offset: 4px; }
/* Arrows on the reviews (live: green circle, from 701px; none at the start / end). */
.col-has-arrows { position: relative; }
.col-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
	border: 0; border-radius: 50%; padding: 0; cursor: pointer; z-index: 2; background: var(--wp--preset--color--green); }
.col-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
	border: solid var(--wp--preset--color--blue); border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.col-arrow--prev::before { transform: translateX(2px) rotate(135deg); }
.col-arrow--prev { left: -17px; }
.col-arrow--next { right: -17px; }
@media (min-width: 701px) { .col-arrow { display: block; } }
.col-at-start > .col-arrow--prev, .col-at-end > .col-arrow--next { display: none; }
.col-arrow:focus-visible { outline: 2px solid var(--wp--preset--color--white); outline-offset: 2px; }
/* Blog cards as live: the category sits on the photo in a white tag. */
.col-posts .wp-block-post { position: relative; }
.col-posts .wp-block-post-featured-image img { border-radius: 8px; }
.col-posts .wp-block-post-terms { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1; margin: 0; }
.col-posts .wp-block-post-terms a { background: var(--wp--preset--color--white); color: var(--wp--preset--color--blue); padding: 0.25em 0.6em; border-radius: 4px; }

/* Home: live's green arrow by "Which insurance policies do we offer?", pointing down into the photo: placed as live
   does, 32px left of the photo's edge and a third of the way down it; bounces in; hidden when the columns stack. */
.wp-block-column:has(> .col-pointer) { position: relative; }
.wp-block-column > .col-pointer { position: absolute; left: -32px; top: 33%; width: 164px; margin: 0 !important; z-index: 2; pointer-events: none; }
/* phone: live swaps in its downward mobile-arrow.png under the words, 41px from the right, dipping into the first card */
@media (max-width: 599px) {
	.wp-block-columns:has(> .wp-block-column > .col-pointer) { position: relative; padding-bottom: 80px; }
	.wp-block-columns > .wp-block-column:has(> .col-pointer) { position: static; }
	.wp-block-column > .col-pointer { left: auto; top: auto; right: 41px; bottom: -20px; width: 61px; height: 100px;
		background: url(/wp-content/uploads/2024/11/mobile-arrow.png) no-repeat center / contain; }
	.wp-block-column > .col-pointer img { display: none; }
}
.col-anim .col-pointer:not(.col-in) { opacity: 0; }
.col-anim .col-pointer.col-in { animation: col-bounce 0.6s ease 0.5s both; }

/* ---------- Type matched to live, 20 Oct (measured element by element with vis4.py / probe4.py) ---------- */
/* Buttons: live's are 17px medium, slimmer (37px tall), fully rounded; hero buttons regular weight. */
.wp-block-button:not(.is-style-underline) > .wp-block-button__link { font-size: 17px; font-weight: 500; line-height: 1.15; padding: 0.5em 1.2em; border-radius: 50px; }
.col-hero--chevron .wp-block-button:not(.is-style-underline) > .wp-block-button__link { font-size: 14px; font-weight: 400; } /* service-page heroes */
/* Small green labels: 16px, as live. */
.col-eyebrow { font-size: 1rem; font-weight: 400; }
.home .col-eyebrow { font-weight: 700; } /* Home's labels are bold on live, the others regular */
/* Cover and benefit card titles: bold, Each Word Capitalised (live styles them so; the words are unchanged). */
.col-card--benefit h3.col-card-title { font-weight: 700; text-transform: capitalize; }
/* Service cards (hubs, Home): titles in body colour, regular weight. */
.col-card:not(.col-card--benefit) h3, .col-card:not(.col-card--benefit) h3 a { color: var(--wp--preset--color--body-text); font-weight: 400; }
/* Reviews: the name in plain body text. */
.col-quote .col-quote-author { font-weight: 400; color: var(--wp--preset--color--body-text); }
/* "Latest from the Blog" and the hubs' "Find the insurance that's right for you": 35px semi-bold, body colour. */
.col-blog > h2, .col-service-grid > h2 { font-size: 35px; font-weight: 600; color: var(--wp--preset--color--body-text); }
/* Intro sentences under section headings, and policy page text: navy, as live. */
.col-watermark:not(.col-faq-section) > p:not(.col-eyebrow), .page-id-1897 .col-text-page :is(p, li) { color: var(--wp--preset--color--blue); } /* privacy text navy; cookie/complaints body colour, as live */
/* Policy pages (cookies, privacy, complaints): big vibrant-green title, as live. */
.col-text-page h1 { font-size: 60px; color: var(--wp--preset--color--green); text-transform: capitalize; line-height: 1.08; }
/* Blog posts: headings inside the article sized and capitalised as live. */
.single-post .wp-block-post-content h2 { font-size: 50px; text-transform: capitalize; }
.single-post .wp-block-post-content h3 { font-size: 25px; text-transform: capitalize; }
.single-post .wp-block-post-content :is(h4, h5, h6) { font-size: 20px; }
/* Blog post header: the category as plain dark-green text. */
.col-post-hero .wp-block-post-terms a { background: none; color: var(--wp--preset--color--green-text); padding: 0; font-weight: 400; }
/* Insurance FAQ page: questions 20px, capitalised, as live's tabs. */
.col-faq-page .wp-block-accordion-heading { font-size: 20px; text-transform: capitalize; }
/* round 2 (20 Oct) */
.col-iconitem p, .col-why p, .col-callstrip p { color: var(--wp--preset--color--body-text); }
.col-ticks p { font-size: 13px; }
.col-posts .wp-block-post-date { font-size: 1rem !important; }
.col-posts .wp-block-post-terms a { color: var(--wp--preset--color--body-text); }
.col-card--benefit p { font-size: 14.67px; }
.col-faq .wp-block-accordion-heading { font-weight: 400; }
.col-faq-page .wp-block-accordion-heading { font-weight: 600; }
.col-cta h2 { font-weight: 600; }
.col-faq-tabs a { color: var(--wp--preset--color--body-text); }
.col-text-page :is(h2, h3) { text-transform: capitalize; }

/* ---------- Layout matched to live, 20 Oct ---------- */
/* Headings over card grids, and "Why choose Coversure for …", are centred on live. */
.col-watermark:not(.col-faq-section) > :is(h2, p:not(.col-eyebrow)) { text-align: center; }
.col-callstrip + .wp-block-group.alignfull > .wp-block-columns > .wp-block-column:first-child > h2.wp-block-heading:first-child { text-align: center; }
/* The FAQ's opening paragraph runs full width, left aligned. */
.col-faq-section .col-intro { text-align: left; max-width: none; }
/* Lists inside page text: live's plain dots, slightly smaller, dark grey. */
.page .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) { list-style: disc; padding-left: 1.4em; }
.page .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) li { font-size: 14.67px; color: var(--wp--preset--color--body-text); margin-bottom: 0.35em; }
.page .wp-block-post-content .has-blue-background-color ul.wp-block-list:not([class*="is-style-"]) li { color: inherit; }
/* Navy "who needs / how to get cheaper / what does it cover" sections: live shows a traffic photo behind the right
   half under a 90% navy veil. */
.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color:has(> .wp-block-columns > .wp-block-column:last-child > ul.is-style-chevron) { position: relative; isolation: isolate; }
.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color:has(> .wp-block-columns > .wp-block-column:last-child > ul.is-style-chevron)::before {
	content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 50%; z-index: -1; pointer-events: none;
	background: linear-gradient(rgba(12, 35, 64, 0.9), rgba(12, 35, 64, 0.9)),
		url(/wp-content/uploads/2024/12/day-traffic-traffic-jam-city-highway-cars-transport-concept-city-traffic-metropolis-view-landscape.png) no-repeat 100% 50% / cover; }
@media (max-width: 781px) { .wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color::before { display: none; } }
/* Live's green arrow and squiggle beside some headings (Fleet, Plant, Hired-in Plant, Taxi), bouncing in. */
.wp-block-column:has(> .col-deco), .wp-block-cover__inner-container:has(> .col-deco) { position: relative; }
.col-deco { position: absolute; margin: 0 !important; pointer-events: none; z-index: 2; }
.col-deco--arrow { left: 90%; top: 95px; width: 120px; }
.col-deco--squiggle { left: 88%; top: 244px; width: 101px; }
.col-deco img { width: 100%; height: auto; }
@media (max-width: 599px) { .col-deco { display: none; } }
.col-anim .col-deco:not(.col-in) { opacity: 0; }
.col-anim .col-deco.col-in { animation: col-bounce 0.6s ease 0.5s both; }
/* Reviews: live's faded photo circle behind the top left of the reviews row. */
.col-reviews > .wp-block-columns { position: relative; isolation: isolate; }
.col-reviews > .wp-block-columns::before { content: ""; position: absolute; top: 0; left: 0; width: 500px; height: 500px; z-index: -1; pointer-events: none;
	background: url(/wp-content/uploads/2024/10/quote-image.png) no-repeat 0 0 / cover; }
@media (max-width: 781px) { .col-reviews > .wp-block-columns::before { display: none; } }
/* phone, as live: the review cards first, then the rating as one compact centred row (same words as desktop) */
@media (max-width: 599px) {
	.col-reviews > .wp-block-columns > .wp-block-column:has(.col-quote-scroll) { order: -1; }
	.col-reviews .col-rating { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 1rem; text-align: center; }
	.col-reviews .col-rating > * { margin: 0 !important; }
	.col-reviews .col-rating > figure:first-child { order: 1; }
	.col-reviews .col-rating > figure:last-of-type { order: 2; }
	.col-reviews .col-rating > p:not(.col-rating-big) { order: 3; flex-basis: 100%; }
	.col-reviews .col-rating > .wp-block-buttons { order: 4; flex-basis: 100%; justify-content: center; margin-top: 0.75rem !important; }
}
/* Footer: Facebook and LinkedIn as icons, as on live's pages. */
.col-footer .col-social { gap: 0.9rem; margin-top: 0.5rem; }
.col-footer .col-social a:hover { opacity: 0.8; }
.page-id-1877 h1, .page-id-1883 h1 { color: var(--wp--preset--color--body-text); } /* thank-you and 404 headings, as live */

/* ---------- Tablet and phone matched to live, 20 Oct (vis4.py at 768 and 390) ---------- */
/* Tablet (600–781px): live keeps two-column sections side by side and its desktop type sizes. Cards go two to a
   row (live squeezes three, one or two words a line). The reviews row stays stacked. */
@media (min-width: 600px) and (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile):not(.col-columns-cards):has(> .wp-block-column:nth-child(2):last-child):not(.col-reviews *):not(:has(.col-form, .col-contact-panel)) { flex-wrap: nowrap !important; }
	.wp-block-columns:not(.is-not-stacked-on-mobile):not(.col-columns-cards):has(> .wp-block-column:nth-child(2):last-child):not(.col-reviews *):not(:has(.col-form, .col-contact-panel)) > .wp-block-column { flex: 1 1 0 !important; }
	.col-columns-cards { flex-wrap: wrap !important; }
	.col-columns-cards > .wp-block-column { flex: 0 0 calc(50% - 0.75em) !important; }
	.col-hero h1 { font-size: 60px; }
	main h2.wp-block-heading { font-size: 50px; }
	.home main .wp-block-column h2.wp-block-heading { font-size: 30px; } /* Home's side-by-side headings; service pages keep 50 */
	.col-cta h2 { font-size: 35px; }
	.wp-block-column > .col-pointer { width: 120px; }
}
/* Phone (under 600px). */
@media (max-width: 599px) {
	/* the photo of a two-column section comes first, as live */
	.wp-block-column:has(> .col-shape-left, > .col-shape-right) { order: -1; }
	/* type sizes as live's phone */
	.col-hero h1, .col-text-page h1, .page-id-1849 h1, .page-id-1877 h1, .page-id-1883 h1, .col-hero--page h1 { font-size: 40px; }
	main h2.wp-block-heading { font-size: 30px; }
	.col-cta h2 { font-size: 30px; }
	.col-cta { padding: 2rem 1.5rem !important; } /* keeps its two buttons on one line, as live */
	.home .col-cta h2 { font-size: 35px; }
	.col-blog > h2, .col-service-grid > h2 { font-size: 30px; }
	.col-hero--chevron .wp-block-button:not(.is-style-underline) > .wp-block-button__link { font-size: 17px; }
	/* hero: the photo as a band on top with the award badge and a curved edge, the words on navy below */
	.col-hero.col-hero--chevron, .home .col-hero { padding-top: calc(var(--col-band) + 1.5rem) !important; }
	.col-hero.col-hero--chevron { --col-band: 250px; }
	.home .col-hero { --col-band: 170px; }
	:is(.col-hero--chevron, .home .col-hero) > .wp-block-cover__image-background { height: var(--col-band); bottom: auto; }
	:is(.col-hero--chevron, .home .col-hero) > .wp-block-cover__background { top: calc(var(--col-band) - 30px); background: var(--wp--preset--color--blue) !important; opacity: 1 !important; }
	:is(.col-hero--chevron, .home .col-hero) > .wp-block-cover__background::before { content: ""; position: absolute; left: -10%; right: -10%; top: -30px; height: 60px; background: var(--wp--preset--color--blue); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
	.col-hero.col-hero--chevron::before { display: none; }
	:is(.col-hero--chevron, .home .col-hero) .col-hero-award { display: block; position: absolute; left: 0; top: calc(-1 * var(--col-band) + var(--col-band) * 0.35); z-index: 3; }
	.col-hero-award img { width: 80px; }
	:is(.col-hero--chevron, .home .col-hero) .wp-block-cover__inner-container { position: relative; }
	/* navy list sections: words, then a bouncing arrow, then the list, then the buttons (live's phone order) */
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color:has(> .wp-block-columns > .wp-block-column:last-child > ul.is-style-chevron) > .wp-block-columns { display: flex; flex-direction: column; }
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color:has(> .wp-block-columns > .wp-block-column:last-child > ul.is-style-chevron) > .wp-block-columns > .wp-block-column { display: contents; }
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color > .wp-block-columns > .wp-block-column > .wp-block-buttons { order: 3; margin-top: 1.5rem; }
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color > .wp-block-columns > .wp-block-column > ul.is-style-chevron { order: 2; position: relative; padding-top: 70px; }
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color > .wp-block-columns > .wp-block-column > ul.is-style-chevron::before {
		content: ""; position: absolute; top: 0; right: 1rem; width: 50px; height: 60px; background: url(/wp-content/uploads/2024/12/arrow-mob.svg) no-repeat center / contain; }
	.col-anim .wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color > .wp-block-columns > .wp-block-column > ul.is-style-chevron:not(.col-in)::before { opacity: 0; }
	.col-anim .wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color > .wp-block-columns > .wp-block-column > ul.is-style-chevron.col-in::before { animation: col-bounce 0.6s ease 0.5s both; }
}
.col-anim .has-blue-background-color ul.is-style-chevron.col-in { animation: none; } /* only its phone arrow bounces */
@media (min-width: 600px) and (max-width: 781px) { .col-hero-copy, .col-hero--chevron .col-hero-text { max-width: 48%; } }
@media (min-width: 600px) and (max-width: 781px) { main :is(.col-blog > h2, .col-service-grid > h2, .col-cta h2).wp-block-heading { font-size: 35px; } } /* as live at tablet */

/* long web addresses in page text wrap instead of running past the edge on phones */
main :is(p, li) a { overflow-wrap: anywhere; }

/* ---------- Section spacing as live (Andy, 20 Oct: "some of the spacings are out"; measured with spacing4.py/inner4.py) ----------
   Live pads its sections 64px on desktop, 40px on tablets, 24px on phones; the rebuild's sections use the XL spacing
   preset, which WordPress was printing as 36px. Card sections (a centred heading, intro, cards, buttons) also leave
   44px above the heading, ~88px between the intro and the cards, and 35px above the buttons. */
:root:root { --wp--preset--spacing--60: 64px; }
@media (max-width: 1024px) { :root:root { --wp--preset--spacing--60: 40px; } }
@media (max-width: 599px) { :root:root { --wp--preset--spacing--60: 24px; } }
.wp-block-group.alignfull:has(> .col-columns-cards) > h2:first-child { margin-top: 44px; }
.wp-block-group.alignfull > p + .col-columns-cards { margin-block-start: 88px; }
.wp-block-group.alignfull > .col-columns-cards + .wp-block-buttons { margin-block-start: 35px; }
@media (max-width: 1024px) { .wp-block-group.alignfull > p + .col-columns-cards { margin-block-start: 72px; } }
@media (max-width: 599px) {
	.wp-block-group.alignfull:has(> .col-columns-cards) > h2:first-child { margin-top: 0; }
	.wp-block-group.alignfull > p + .col-columns-cards { margin-block-start: 32px; }
}
@media (min-width: 1025px) {
	.col-hero.col-hero--chevron { padding-top: 128px !important; padding-bottom: 128px !important; } /* live's service hero */
	/* live's photo-and-list sections have no padding of their own, only the room inside their columns */
	.wp-block-post-content > .wp-block-group.alignfull.has-blue-background-color:has(ul.is-style-chevron) { padding-top: 44px !important; padding-bottom: 44px !important; }
	.wp-block-post-content > .col-cost { padding-top: 44px !important; padding-bottom: 44px !important; }
}
@media (min-width: 782px) { .col-cta { min-height: 420px !important; } } /* live's CTA box: 460 with its margins */

/* ---------- Related insurance (consistency check, 20 Oct): the other pages in the hub, as a row of links ---------- */
.col-related-links h2.wp-block-heading { font-size: 35px; }
.page .wp-block-post-content ul.wp-block-list.col-related-list, ul.col-related-list { list-style: none; padding: 0; margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; max-width: 1000px; }
.page .wp-block-post-content ul.wp-block-list.col-related-list li, ul.col-related-list li { margin: 0; font-size: 16px; }
.wp-block-post-content ul.col-related-list li a, ul.col-related-list a { display: inline-block; padding: 0.55rem 1.1rem; border: 2px solid var(--wp--preset--color--green); border-radius: 50px; color: var(--wp--preset--color--blue) !important; font-weight: 500; text-decoration: none; line-height: 1.2; transition: background-color 0.15s, color 0.15s; }
.wp-block-post-content ul.col-related-list li a:hover, .wp-block-post-content ul.col-related-list li a:focus-visible { background: var(--wp--preset--color--green); color: var(--wp--preset--color--blue) !important; }
@media (max-width: 599px) { .col-related-links h2.wp-block-heading { font-size: 30px; } ul.col-related-list { gap: 0.5rem; } ul.col-related-list a { padding: 0.45rem 0.9rem; font-size: 15px; } }
