/* Agent 3 -> Agent 1: block-markup adapter for option-b.html CSS.
   Load AFTER the ported option-b design CSS. Maps Gutenberg wrapper markup
   (wp-block-* wrappers, flow-layout margins, button wrappers, list blocks)
   onto the mockup's class names used in _ace_new_content of page 147 and the
   synced patterns. Icons that were <use href="#i-..."> in the mockup are CSS
   masks here so editors cannot strip them. */

:root{
  --ace-i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  --ace-i-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ace-i-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

/* Full-bleed sections inside Blocksy's entry content */
.home .entry-content > .alignfull, .ace-front .entry-content > .alignfull{margin-top:0;margin-bottom:0}
/* Kill flow-layout block-gap margins inside the mockup's grid / flex containers */
:where(.hero__grid,.proof__grid,.logos__row,.svc-head,.svc-groups,.svc,.why__grid,.why__item,.cov__grid,.testi__grid,.quotes,.who,.faq__grid,.cta .wrap,.cta__actions,.sla,.related) > *{margin-block:0}
:where(.svc__body,.why__body,.fig,.ph) > *{margin-block:0}
.wp-block-list{margin-top:0}

/* Hero */
.hero__title{margin-bottom:0}
.hero__sub{font:500 clamp(1.05rem,2.1vw,1.7rem)/1.35 var(--sans);color:var(--slate);margin:14px 0 18px;max-width:40ch}
.assure li::before,.areas li::before{content:"";width:18px;height:18px;flex:none;background:var(--brand);-webkit-mask:var(--ace-i-check) center/contain no-repeat;mask:var(--ace-i-check) center/contain no-repeat}
.areas li::before{-webkit-mask-image:var(--ace-i-pin);mask-image:var(--ace-i-pin)}
.hero__visual .ph{margin:0}
.sla__head{margin:0 0 12px}
.sla .wp-block-list{list-style:none;margin:0;padding:0;font-size:.88rem;color:var(--ink)}

/* Buttons: class sits on .wp-block-button wrapper; style the link */
.wp-block-buttons.hero__actions{display:flex;gap:14px;flex-wrap:wrap;margin:30px 0 26px}
:is(.btn--primary,.btn--ghost,.btn--light).wp-block-button{background:none;border:0;padding:0}
:is(.btn--primary,.btn--ghost,.btn--light) > .wp-block-button__link{display:inline-flex;align-items:center;gap:10px;font:600 .98rem/1 var(--sans);text-decoration:none;padding:15px 22px;border-radius:4px;border:1.5px solid transparent;transition:background .2s,color .2s,border-color .2s}
.btn--primary > .wp-block-button__link{background:var(--brand);color:#fff}
.btn--primary > .wp-block-button__link:hover{background:var(--navy-900);color:#fff}
.btn--ghost > .wp-block-button__link{border-color:var(--brand);color:var(--brand);background:transparent}
.btn--ghost > .wp-block-button__link:hover{background:var(--brand-50);color:var(--navy-900)}
.btn--light > .wp-block-button__link{background:#fff;color:var(--navy-900)}
.btn--light > .wp-block-button__link:hover{background:var(--brand-50);color:var(--navy-900)}
:is(.btn--primary,.btn--light) > .wp-block-button__link::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--ace-i-arrow) center/contain no-repeat;mask:var(--ace-i-arrow) center/contain no-repeat}

/* Proof figures (label/desc are <p> instead of <span>) */
.fig__num{margin:0}
.fig__label{margin:12px 0 0;font-weight:600;color:var(--ink)}
.fig__desc{font-size:.92rem;margin:4px 0 0}

/* "Trusted by" row: industries list instead of logo placeholders */
.logos__title{margin:0}
.logos__list--industries{list-style:none;margin:0;padding:0}
.logos__list--industries li{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:6px 10px;border:1px solid var(--line);background:var(--mist);font:500 .74rem/1.3 var(--mono);text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}

/* Services rows: .svc is a group (icon html + .svc__body); whole row clickable via stretched link */
.svc{position:relative}
.svc__body{min-width:0}
.svc__t,.svc__d,.svc .tag{margin:0}
.svc__t a{color:inherit;text-decoration:none}
.svc__t a::after{content:"";position:absolute;inset:0}
.svc::after{content:"";width:20px;height:20px;margin-top:4px;background:#8C97A4;-webkit-mask:var(--ace-i-arrow) center/contain no-repeat;mask:var(--ace-i-arrow) center/contain no-repeat;transition:transform .2s}
.svc:hover::after{transform:translateX(4px);background:var(--brand)}
.svc--feature::after{background:var(--amber)}
.svc--feature:hover::after{background:var(--amber)}
.svc:focus-within{outline:3px solid var(--amber);outline-offset:2px}
.svc-group > h3{margin-bottom:6px}

/* Why list: groups instead of <ol><li> */
.why__list{counter-reset:w}
.why__item{display:grid;grid-template-columns:64px 1fr;gap:20px;padding:28px 0;border-top:1px solid var(--line)}
.why__item:last-child{border-bottom:1px solid var(--line)}
.why__item::before{counter-increment:w;content:"0" counter(w);font:600 1.9rem/1 var(--serif);color:var(--amber-ink)}
.why__item h3{font-size:1.18rem;margin-bottom:6px}
.why__item p{margin:0}
.why__note p{margin:0;font-size:.93rem}
.why__note p:first-child{margin-bottom:6px}
.why__note strong{display:block;font:600 1.6rem/1.1 var(--serif);color:var(--navy-700)}
.chips li{border-top:1px solid var(--line)}

/* Coverage */
.areas{list-style:none}
.map{margin:0}

/* Testimonials */
.testi .wp-block-quote{border:0;margin:0;padding:0;font-style:normal;background:none}
.testi .wp-block-quote.quote-lg{padding:0 0 0 32px;border-left:3px solid var(--amber)}
.testi__main .who{padding-left:32px}
.quotes > .wp-block-quote{padding:22px 0;border-top:1px solid rgba(255,255,255,.14)}
.quotes > .wp-block-quote:last-child{border-bottom:1px solid rgba(255,255,255,.14)}
.quotes cite{font:500 .76rem/1.3 var(--mono);font-style:normal;color:#AFC0D6;letter-spacing:.04em}
.who p{margin:0}
.testi__foot{margin-top:40px;font-size:.92rem}
.testi__foot a{color:#fff}

/* FAQ: core/details puts <p> straight after <summary> */
.faq .wp-block-details > :not(summary){padding-right:40px;margin:0 0 22px}
@media (max-width:640px){.faq .wp-block-details > :not(summary){padding-right:28px}}

/* CTA band pattern */
.cta__text > *{margin-block:0}
.cta__text h2{margin-bottom:10px}
.cta__phone{margin:0}
.cta__phone a{font:600 1.5rem/1 var(--serif);color:#fff;text-decoration:none}
.cta__phone a:hover{color:#fff;text-decoration:underline}

/* Related services pattern (ul is a core/list) */
.related .wp-block-list{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
@media (max-width:960px){.related .wp-block-list{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.related .wp-block-list{grid-template-columns:1fr}}

/* Placeholder panels outside the hero (e.g. on inner pages) */
.ph{min-height:220px}
.hero__visual .ph{min-height:0}

@media (max-width:640px){.why__item{grid-template-columns:44px 1fr;gap:12px}.why__item::before{font-size:1.4rem}}
