/*
Theme Name: Guruwebdevelopers
Text Domain: guruwebdev-drafi
Version: 1.0.11
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Description: Theme for guruwebdevelopers.com.
*/

/* Colour scheme (light and dark, follows the visitor's system) and design tokens: written by the theme maker. */
:root { --r: 6px; color-scheme: dark; }


::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 4px; }
img { height: auto; max-width: 100%; }

.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.site-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--contrast); border: 0; padding: 0.35rem; }
.site-header .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.wp-block-search__input { border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: var(--wp--preset--color--base); color: inherit; padding: 0.55rem 0.8rem; font-size: 1rem; }

/* Post cards. */
.cards { list-style: none; margin: 0; padding: 0; }
.cards > li { margin-block-start: 0 !important; } /* flow layout adds a top gap to every card but the first */
.card .wp-block-post-featured-image { overflow: hidden; margin: 0 0 0.9rem; background: var(--wp--preset--color--surface); }
.card .wp-block-post-featured-image img { display: block; width: 100%; }
.card-body > * { margin-block: 0 0.45rem; }
.card .wp-block-post-title { line-height: 1.25; }
.card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.card .wp-block-post-excerpt__more-text { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.card .wp-block-post-featured-image img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
	.card:hover .wp-block-post-featured-image img { transform: scale(1.035); }
}

/* Design pieces for this site (header, layout, cards, footer, links, buttons). */
/* Header for the company sites: plain bar, brand left, links and one action right. The menu is plain HTML (a checkbox opens it on a phone), so it needs no script. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--wp--preset--color--base); padding-block: 0.9rem; }
.co-brand { align-items: center; gap: 0.7rem; }
.co-logo { width: 2.4rem; height: 2.4rem; flex: none; display: block; }
.co-logo .a { fill: var(--wp--preset--color--accent); }
.co-logo .b { fill: var(--wp--preset--color--on-accent); }
.co-logo .c { fill: var(--wp--preset--color--accent-2, var(--wp--preset--color--accent)); }
.ft-company .co-logo { width: 3rem; height: 3rem; margin-bottom: 0.9rem; }
.hd-company .wp-block-site-title { font-family: var(--wp--preset--font-family--heading, inherit); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.hd-company .wp-block-site-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.co-nav { position: relative; }
.co-nav-t { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-burger { display: none; cursor: pointer; font-weight: 700; padding: 0.55rem 1rem; border-radius: max(4px, var(--r)); background: var(--wp--preset--color--surface); }
.co-links { display: flex; align-items: center; gap: 0.25rem; }
.co-links a { text-decoration: none; color: var(--wp--preset--color--contrast); padding: 0.55rem 0.9rem; font-weight: 600; border-radius: max(4px, var(--r)); }
.co-links a:hover { background: var(--wp--preset--color--surface); }
.co-links a.co-nav-cta { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); margin-left: 0.5rem; padding-inline: 1.2rem; }
.co-links a.co-nav-cta:hover { filter: brightness(1.08); background: var(--wp--preset--color--accent); }
.co-nav-t:focus-visible + .co-burger { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (max-width: 820px) {
	.co-burger { display: inline-block; }
	.co-links { display: none; position: absolute; right: 0; top: calc(100% + 0.6rem); flex-direction: column; align-items: stretch; min-width: 15rem; padding: 0.6rem; gap: 0.15rem; background: var(--wp--preset--color--surface); border-radius: max(6px, var(--r)); box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.35); }
	.co-nav-t:checked ~ .co-links { display: flex; }
	.co-links a.co-nav-cta { margin: 0.35rem 0 0; text-align: center; }
}

/* Layout: columns (newspaper page: lead across the top, then text columns split by rules). */
.layout-columns .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--wp--preset--color--contrast); }
.layout-columns .cards > li { padding: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line); }
.layout-columns .cards > li:nth-child(3n + 2) { padding-left: 0; border-left: 0; }
body:not(.paged) .layout-columns .cards > li:first-child { grid-column: 1 / -1; padding-inline: 0; border-left: 0; }
body:not(.paged) .layout-columns .cards > li:first-child .card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; }
body:not(.paged) .layout-columns .cards > li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.05; }
.layout-columns .cards > li:not(:first-child) .wp-block-post-featured-image { aspect-ratio: 3 / 2 !important; }
@media (max-width: 860px) { .layout-columns .cards { grid-template-columns: 1fr; } .layout-columns .cards > li:nth-child(n) { padding-inline: 0; border-left: 0; } body:not(.paged) .layout-columns .cards > li:first-child .card { grid-template-columns: 1fr; gap: 1rem; } }

.card .wp-block-post-featured-image { border-radius: var(--r); }

/* Footer for the company sites: a closing call to action, then name, links and the small print on the deep colour. */
.site-footer { margin-top: 0 !important; padding: clamp(3rem, 7vw, 5.5rem) 1rem 2rem !important; background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast)) !important; color: var(--wp--preset--color--on-deep, var(--wp--preset--color--base)); }
.site-footer a { color: inherit !important; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ft-big { font-family: var(--wp--preset--font-family--heading, inherit); font-size: clamp(2rem, 1rem + 4vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0; max-width: 16ch; }
.site-footer .ft-cta { display: inline-block; padding: 1rem 1.8rem; border-radius: max(4px, var(--r)); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent) !important; font-weight: 700; }
.site-footer .ft-cta:hover { text-decoration: none !important; filter: brightness(1.08); }
.ft-cols { gap: 2rem; }
.ft-brand { font-family: var(--wp--preset--font-family--heading, inherit); font-size: 1.6rem; font-weight: 800; margin: 0 0 0.4rem; }
.ft-tag { opacity: 0.75; margin: 0; max-width: 24rem; }
.ft-head { font-weight: 700; margin: 0 0 0.8rem; opacity: 0.75; }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer .footer-copy { margin: clamp(2rem, 5vw, 3.5rem) 0 0; opacity: 0.6; font-size: 0.85rem; }

.article-body a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

:where(.wp-element-button, .wp-block-button__link) { border-radius: max(4px, var(--r)); }


/* Company pages (SEO and web company sites). ASSUMED: one look per site, made by hand.
   Big type, whole fields of colour (base, surface, deep, accent), no hairlines, no gradients, no resting shadows.
   All colours come from the palette, so each site keeps its own look and the dark scheme works. */
.co-main { overflow-x: clip; padding-top: 0 !important; }
.co-main > .wp-block-post-content > * + * { margin-block-start: 0; }
.co-sec { margin-inline: calc(50% - 50vw); padding: clamp(3.5rem, 8vw, 7rem) 1.25rem; box-sizing: border-box; }
.co-in { max-width: 1200px; margin-inline: auto; }
.co-sec.tint { background: var(--wp--preset--color--surface); }
.co-sec.deep { background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast)); color: var(--wp--preset--color--on-deep, var(--wp--preset--color--base)); }
.co-sec.band { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.co-sec :is(h1, h2, h3, p, li, summary, a:not(.wp-block-button__link)) { color: inherit; }
.co-sec h2 { font-family: var(--wp--preset--font-family--heading, inherit); font-size: clamp(1.9rem, 1rem + 3.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1rem; max-width: 20ch; }
.co-sec h3 { font-family: var(--wp--preset--font-family--heading, inherit); font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.co-sec p { margin: 0 0 1rem; }
.co-main { --co-soft: color-mix(in srgb, var(--wp--preset--color--contrast) 90%, var(--wp--preset--color--base)); }
.co-lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--wp--preset--color--contrast); max-width: 36rem; }
.deep .co-lead, .band .co-lead { color: inherit; opacity: 0.94; }
.co-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.co-head .co-lead { margin-bottom: 0; }

/* Buttons */
.co-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.8rem; }
.co-actions .wp-block-button__link { display: inline-block; padding: 1rem 1.7rem; border-radius: max(4px, var(--r)); font-weight: 700; text-decoration: none; background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--on-accent) !important; box-shadow: none !important; border: 2px solid var(--wp--preset--color--accent); }
.co-actions .wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: inherit !important; border-color: currentColor; }
.co-actions .wp-block-button__link:hover { filter: brightness(1.08); }
.band .co-actions .wp-block-button__link { background: var(--wp--preset--color--on-accent) !important; color: var(--wp--preset--color--accent) !important; border-color: var(--wp--preset--color--on-accent); }

/* Filled buttons on dark fields use the second accent so they stay visible */
.co-sec.deep .co-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link, .co-hero.v-deep .co-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--accent-2, var(--wp--preset--color--accent)) !important; color: var(--wp--preset--color--deep, #0b0d10) !important; border-color: var(--wp--preset--color--accent-2, var(--wp--preset--color--accent)); }

/* Hero */
.co-hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.co-hero h1 { font-family: var(--wp--preset--font-family--heading, inherit); font-size: clamp(2rem, 8.6vw - 0.1rem, 6.4rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0; max-width: 21ch; color: inherit; }
.co-herorow { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(1.75rem, 4vw, 3.25rem); }
.co-hero.v-split .co-herorow { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.co-hero.v-center .co-in { text-align: center; }
.co-hero.v-center h1 { max-width: 23ch; margin-inline: auto; }
.co-hero.v-center .co-herorow { justify-items: center; }
.co-hero.v-center .co-lead { margin-inline: auto; }
.co-hero.v-center .co-actions { justify-content: center; }
.co-hero .co-actions { margin-top: 1.6rem; }
.co-hero.v-deep { background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast)); color: var(--wp--preset--color--on-deep, var(--wp--preset--color--base)); }
.co-hero.v-deep .co-lead { color: inherit; opacity: 0.94; }

/* Example fragments in the hero (always labelled "Example") */
.fx { background: var(--wp--preset--color--surface); border-radius: max(8px, calc(var(--r) * 1.4)); padding: clamp(1rem, 2.5vw, 1.6rem); display: grid; gap: 0.65rem; text-align: left; width: 100%; box-sizing: border-box; color: var(--wp--preset--color--contrast); }
.v-deep .fx { background: rgb(255 255 255 / 0.08); color: inherit; }
.v-deep .fx-row { background: rgb(255 255 255 / 0.1); color: inherit; }
.v-deep .fx-pill { background: rgb(255 255 255 / 0.18); color: inherit; }
.v-deep .fx-row.on { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.fx-tag { font-size: 0.85rem; font-weight: 700; opacity: 0.7; margin: 0 0 0.2rem !important; }
.fx-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-radius: max(6px, var(--r)); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font-weight: 700; margin: 0; }
.fx-row small { display: block; font-weight: 500; opacity: 0.7; font-size: 0.85rem; }
.fx-row.on { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.fx-pill { font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); white-space: nowrap; }
.fx-row.on .fx-pill { background: var(--wp--preset--color--on-accent); color: var(--wp--preset--color--accent); }
.fx-pill.hi { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.fx-browser { padding: 0; overflow: hidden; max-width: 56rem; }
.fx-bar { display: flex; gap: 0.4rem; padding: 0.8rem 1rem; background: var(--wp--preset--color--line); }
.fx-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--wp--preset--color--muted); opacity: 0.6; }
.fx-cap { padding: 0.9rem clamp(1rem, 3vw, 2rem) 0; }
.fx-page { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 0.8rem; }
.fx-page span { display: block; border-radius: max(4px, var(--r)); background: var(--wp--preset--color--line); height: 0.8rem; }
.fx-page .w60 { width: fit-content; max-width: 100%; height: auto; padding: 0.35rem 0.8rem; font-weight: 700; font-size: 1.15rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.fx-page .w40 { width: 40%; }
.fx-page .w80 { width: fit-content; max-width: 100%; height: auto; padding: 0.35rem 0; font-size: 0.95rem; background: none; color: var(--wp--preset--color--muted); }
.fx-page .btnx { width: fit-content; height: auto; padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 700; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.fx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.fx-tiles span { height: auto !important; padding: 1.4rem 0.8rem 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--contrast); }

/* Trust strip */
.co-strip { background: var(--wp--preset--color--surface); }
.co-strip.co-sec { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.co-strip .co-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem 2.5rem; }
.co-strip p { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.co-strip p span { display: block; font-weight: 500; font-size: 0.95rem; color: var(--co-soft); margin-top: 0.2rem; }

.wp-site-blocks:has(.co-main) > footer, .wp-site-blocks:has(.co-main) > .wp-block-template-part + .wp-block-template-part { margin-block-start: 0; }

/* Services: rows or tiles */
.svc-rows { display: grid; gap: 0.75rem; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0.75rem 3rem; padding: clamp(1.25rem, 3vw, 2.1rem); background: var(--wp--preset--color--surface); border-radius: max(8px, var(--r)); align-items: start; }
.tint .svc-row, .tint .svc-tile { background: var(--wp--preset--color--base); }
.svc-row h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin: 0; }
.svc-row p { color: var(--co-soft); margin: 0 0 0.9rem; }
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-list li { margin: 0; font-size: 0.9rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--wp--preset--color--base); }
.tint .svc-list li { background: var(--wp--preset--color--surface); }
.svc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.svc-tile { background: var(--wp--preset--color--surface); border-radius: max(8px, var(--r)); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.4rem; }
.svc-tile h3 { font-size: 1.45rem; }
.svc-tile p { color: var(--co-soft); margin: 0 0 0.9rem; }
.svc-tile .svc-list { margin-top: auto; }
.svc-tile:last-child:nth-child(6) { grid-column: 1 / -1; }
.svc-tile:first-child { grid-column: span 2; background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--on-accent); }
.svc-tile:first-child :is(h3, p) { color: inherit; }
.svc-tile:first-child h3 { font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem); }
.svc-tile:first-child .svc-list li { background: rgb(255 255 255 / 0.18); color: inherit; }

/* Process: filled steps, on the deep field when the section is deep */
.co-steps { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.co-step { background: rgb(255 255 255 / 0.07); border-radius: max(8px, var(--r)); padding: clamp(1.25rem, 3vw, 1.75rem); margin: 0 !important; }
.co-step h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); margin-bottom: 0.6rem; }
.co-step p { margin: 0; opacity: 0.82; }
.co-sec:not(.deep) .co-step { background: var(--wp--preset--color--surface); }
.co-sec:not(.deep) .co-step p { color: var(--co-soft); opacity: 1; }
@media (min-width: 900px) { .co-step:not(:last-child) h3::after { content: " \2192"; color: var(--wp--preset--color--accent); } }

/* Why us: big words left, a panel of facts right */
.co-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.co-panel { background: var(--wp--preset--color--surface); border-radius: max(8px, var(--r)); padding: clamp(1.4rem, 3vw, 2.2rem); }
.tint .co-panel { background: var(--wp--preset--color--base); }
.co-panel h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.co-checks { list-style: none; margin: 0; padding: 0; }
.co-checks li { position: relative; padding-left: 2rem; margin: 0 0 0.9rem; line-height: 1.45; font-weight: 600; }
.co-checks li:last-child { margin-bottom: 0; }
.co-checks li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--wp--preset--color--accent); }
.co-checks li::after { content: ""; position: absolute; left: 0.4rem; top: 0.42em; width: 0.42rem; height: 0.22rem; border-left: 2px solid var(--wp--preset--color--on-accent); border-bottom: 2px solid var(--wp--preset--color--on-accent); transform: rotate(-45deg); }

/* Fit cards on the About page */
.co-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.co-card { background: var(--wp--preset--color--base); border-radius: max(8px, var(--r)); padding: clamp(1.4rem, 3vw, 2rem); }
.co-card h3 { font-size: 1.5rem; }
.co-card p { color: var(--co-soft); margin: 0; }

/* FAQ: filled rows */
.co-split.faqs { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.co-faq { display: grid; gap: 0.6rem; }
.co-faq details { background: var(--wp--preset--color--surface); border-radius: max(8px, var(--r)); padding: 1.15rem 1.4rem; }
.tint .co-faq details { background: var(--wp--preset--color--base); }
.co-faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--wp--preset--color--accent); }
.co-faq details[open] summary::after { content: "\2212"; }
.co-faq details p { margin: 0.8rem 0 0; color: var(--co-soft); }

/* Blog row */
.co-posts { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.co-posts li { margin: 0; background: var(--wp--preset--color--surface); border-radius: max(8px, var(--r)); overflow: hidden; }
.tint .co-posts li { background: var(--wp--preset--color--base); }
.co-posts .wp-block-latest-posts__featured-image { margin: 0; }
.co-posts .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.co-posts .wp-block-latest-posts__post-title { display: block; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 700; font-size: 1.2rem; padding: 1.1rem 1.25rem 0.3rem; text-decoration: none; line-height: 1.25; }
.co-posts .wp-block-latest-posts__post-date { display: block; padding: 0 1.25rem 1.25rem; font-size: 0.85rem; color: var(--co-soft); }

/* Closing call to action */
.co-bandrow { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 3rem; align-items: end; }
.band h2 { font-size: clamp(2.1rem, 1rem + 4.6vw, 4.6rem); line-height: 1; max-width: 16ch; }
.band .co-lead { margin-bottom: 0; }
.band .co-actions { margin: 0; }

/* Inner page heading */
.co-pagehead { padding-block: clamp(1rem, 3vw, 2.5rem); }
.co-pagehead .co-lead { max-width: 36rem; }
.co-pagehead h1 { font-family: var(--wp--preset--font-family--heading, inherit); font-size: clamp(2.2rem, 0.8rem + 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 1.4rem; max-width: 18ch; color: inherit; }

/* Contact form */
.co-main form { display: grid; gap: 0.2rem; }
.co-main form p { margin: 0 0 0.9rem; }
.co-main form label { font-weight: 700; }
.co-main form :is(input[type="text"], input[type="email"], input:not([type]), textarea) { width: 100%; box-sizing: border-box; margin-top: 0.35rem; padding: 0.9rem 1rem; font: inherit; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface); border: 2px solid transparent; border-radius: max(6px, var(--r)); }
.co-main form :is(input, textarea):focus { outline: none; border-color: var(--wp--preset--color--accent); }
.co-main form button { padding: 1rem 1.8rem; font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: max(4px, var(--r)); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.co-main form button:hover { filter: brightness(1.08); }

@media (max-width: 900px) {
	.co-hero.v-split .co-herorow, .co-split, .co-split.faqs, .co-bandrow { grid-template-columns: minmax(0, 1fr); }
	.svc-row { grid-template-columns: minmax(0, 1fr); }
	.svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.svc-tiles { grid-template-columns: minmax(0, 1fr); }
	.svc-tile:first-child { grid-column: auto; }
	.co-actions .wp-block-button, .co-actions .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
}

/* Motion: parts rise in as they enter the screen (transform and opacity only; off when the visitor asks for less motion) */
@media (prefers-reduced-motion: no-preference) {
	.co-hero h1, .co-hero .co-text, .co-hero .fx { animation: co-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.co-hero .co-text { animation-delay: 0.12s; }
	.co-hero .fx { animation-delay: 0.24s; }
	@supports (animation-timeline: view()) {
		.co-head, .svc-row, .svc-tile, .co-step, .co-faq details, .co-panel, .co-card, .co-strip p, .co-bandrow { animation: co-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
	}
	.svc-row, .svc-tile, .co-step, .co-faq details, .co-card, .co-links a { transition: background-color 0.25s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
	.svc-row:hover, .svc-tile:hover, .co-step:hover, .co-card:hover { transform: translateY(-3px); }
}
@keyframes co-reveal { from { opacity: 0.4; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes co-rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

/* Article page. */
.article .article-deck { color: var(--wp--preset--color--muted); line-height: 1.5; margin-top: 0.75rem; }
.article .article-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem;
	color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.article-meta .byline { color: var(--wp--preset--color--contrast); font-weight: 600; }
.article-meta .sep { opacity: 0.6; }

/* Key takeaways and the contents list: the publisher writes them at the top of the post. */
.article-body :is(.key-points, .toc) { background: var(--wp--preset--color--surface); border-radius: var(--r, 10px);
	padding: 1.25rem 1.5rem; font-size: 0.95em; line-height: 1.55; }
.article-body .key-points { border-left: 4px solid var(--wp--preset--color--accent); }
.article-body :is(.key-points, .toc) .box-title { margin: 0 0 0.6rem; font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 0.8em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.article-body :is(.key-points, .toc) :is(ul, ol) { margin: 0; }
.article-body .toc { background: transparent; border: 1px solid var(--wp--preset--color--line); }
.article-body .toc ol { padding-left: 1.25rem; }
.article-body .toc li + li { margin-top: 0.3rem; }
.article-body .toc a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.article-body .toc a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; }
.article-body h2[id] { scroll-margin-top: 5rem; }

/* Author box at the end of a post. */
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: var(--wp--preset--spacing--60, 3rem);
	padding: 1.25rem 1.5rem; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.author-mark { flex: 0 0 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent, #fff); }
.author-box p { margin: 0; }
.author-name { font-weight: 700; }
.author-bio { color: var(--wp--preset--color--muted); margin-top: 0.25rem !important; font-size: 0.95em; }
/* Reading rhythm, like the big tech magazines: a larger body size, wide gaps above a heading, a small gap
   below it, so each heading clearly belongs to the text under it. */
.article-body { font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem); line-height: 1.72; }
.article-body > * + * { margin-block-start: 1.35em; }
.article-body h2 { margin-block: 3.25rem 0.9rem !important; line-height: 1.18; }
.article-body h3 { margin-block: 2.4rem 0.6rem !important; line-height: 1.25; }
.article-body :is(h2, h3) + * { margin-block-start: 0 !important; }
.article-body :where(ul, ol) { padding-left: 1.25rem; }
.article-body li + li { margin-top: 0.5rem; }
.article-body .wp-block-image { margin-block: 2.5rem !important; }
.article-body .wp-block-image img { border-radius: var(--r, 8px); width: 100%; }
.article-body figcaption { margin-top: 0.6rem; text-align: left; color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small); line-height: 1.45; }
.article-body a { text-underline-offset: 0.18em; }

/* Old boxes some older posts carry (and an old footer from the previous site set-up): the theme prints
   its own picture, footer and more-to-read list, so these never show. */
.wd-footer, .wd-single-featured, .article-body :is(.site-author, .fleet-related) { display: none !important; }
html body footer.site-footer { display: block !important; } /* the old set-up hides every footer.site-footer */

/* The more-to-read row sits outside the article column: give it the page side gap and the wide width. */
.more { box-sizing: border-box; max-width: var(--wp--style--global--wide-size, 1280px); margin-inline: auto !important;
	padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2.5rem)); }

/* More to read: three even cards in a row, every picture the same shape. */
.more .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.more .cards > li { grid-column: auto !important; grid-row: auto !important; }
.more .card .wp-block-post-featured-image { aspect-ratio: 16 / 10 !important; }
.more .card .wp-block-post-featured-image img { height: 100% !important; object-fit: cover; }
.more .card .wp-block-post-title { font-size: var(--wp--preset--font-size--large) !important; }
.more .card .wp-block-post-excerpt { display: none; }
.card .wp-block-post-featured-image:not(:has(img)) { display: none; }
@media (max-width: 860px) { .more .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more .cards { grid-template-columns: 1fr; } }
.article-body table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--small); }
.article-body .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.65rem 0.75rem; text-align: left; }
.article-body .wp-block-table thead { border-bottom: 0; }
.article-body .wp-block-table th { font-weight: 600; color: var(--wp--preset--color--muted); border-bottom: 2px solid var(--wp--preset--color--line); }
.article-tags { margin-top: var(--wp--preset--spacing--50); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags a { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); padding: 0.3rem 0.75rem; border-radius: 999px; font-size: var(--wp--preset--font-size--x-small); text-decoration: none; }
.article-tags .wp-block-post-terms__separator { display: none; }

/* Footer. */
.site-footer .wp-block-categories, .site-footer .wp-block-page-list { list-style: none; padding: 0; margin: 0; }
.site-footer :where(.wp-block-categories, .wp-block-page-list) li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--accent); }

/* Main heading for search engines and screen readers on the post list page; the header shows the name. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
