/* Phase 8A: shared tokens; components opt in via .gem-design and .gem-shell-header. */
:root{--gem-bg:#090f17;--gem-section:#0e1722;--gem-card:#121e2b;--gem-elevated:#192838;--gem-text:#f4f6f8;--gem-muted:#b2bfcc;--gem-amber:#f5b640;--gem-amber-hover:#ffd077;--gem-red:#c94843;--gem-border:#2b3b4d;--gem-shadow:0 16px 40px rgba(0,0,0,.18);--gem-radius:18px;--gem-radius-sm:10px;--gem-width:1280px;--gem-space-1:8px;--gem-space-2:16px;--gem-space-3:24px;--gem-space-4:32px;--gem-space-5:48px;--gem-space-6:64px;--gem-section-space:88px;--gem-button-height:48px;--gem-font:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}
/* The existing logo and native WordPress navigation remain the source of truth. */
body .wp-site-blocks>header{background:var(--gem-bg);margin:0}
body .gem-shell-header{background:var(--gem-bg);border-bottom:1px solid var(--gem-border);color:var(--gem-text);font-family:var(--gem-font)}
body .gem-shell-header .gem-topbar{width:min(var(--gem-width),calc(100% - 48px));max-width:var(--gem-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between!important;flex-wrap:nowrap!important;gap:24px;padding:16px 0!important}
body .gem-shell-header .gem-brand{margin:0;flex:none;min-width:0}
body .gem-shell-header .gem-logo-image{width:112px!important;max-width:100%;height:auto;filter:none}
body .gem-shell-header .gem-nav-wrap{display:flex!important;align-items:center;justify-content:flex-end;gap:8px!important;flex-wrap:nowrap!important;width:auto;padding:8px;margin:0;border:1px solid var(--gem-border);border-radius:var(--gem-radius-sm);background:var(--gem-section);box-shadow:none;backdrop-filter:none}
body .gem-shell-header .gem-nav-wrap .wp-block-navigation{margin:0;flex:none}
body .gem-shell-header .gem-nav-wrap .wp-block-navigation__container{gap:0!important;flex-wrap:nowrap!important}
body .gem-shell-header .wp-block-navigation .wp-block-navigation-item__content{font-size:14px;font-weight:600;min-height:44px;padding:10px;color:var(--gem-text)!important;border-radius:6px;background:transparent!important;box-shadow:none!important;line-height:1.35}
body .gem-shell-header .wp-block-navigation .wp-block-navigation-item__content:hover{background:var(--gem-elevated)!important;border-color:transparent!important}
body .gem-shell-header .wp-block-navigation__submenu-container{background:var(--gem-section)!important;border-color:var(--gem-border);border-radius:var(--gem-radius-sm);box-shadow:var(--gem-shadow)}
body .gem-shell-header .wp-block-navigation__submenu-icon{color:var(--gem-muted)}
body .gem-shell-header .gem-header-action,body .gem-shell-header .gem-call-now-link,body .gem-shell-header .gem-header-cart-link{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;align-self:center;min-height:44px;height:44px;margin:0;padding:0 14px;font:700 13px/1.2 var(--gem-font);text-decoration:none;border-radius:8px;border:1px solid var(--gem-border);letter-spacing:0;box-shadow:none!important;transform:none;filter:none;white-space:nowrap}
body .gem-shell-header .gem-header-action--booking{background:var(--gem-amber);color:#141a20;border-color:var(--gem-amber)}
body .gem-shell-header .gem-header-action--booking:hover{background:var(--gem-amber-hover);border-color:var(--gem-amber-hover)}
body .gem-shell-header .gem-call-now-link,body .gem-shell-header .gem-header-cart-link{width:44px;padding:0;background:var(--gem-card)!important;color:var(--gem-text)!important;border-color:var(--gem-border)!important}
body .gem-shell-header .gem-call-now-link:hover,body .gem-shell-header .gem-header-cart-link:hover{background:var(--gem-elevated)!important}
body .gem-shell-header .gem-call-now-link svg,body .gem-shell-header .gem-header-cart-link svg{width:20px;height:20px}
body .gem-shell-header .gem-header-cart-link>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .gem-shell-header :is(a,button):focus-visible{outline:3px solid var(--gem-amber)!important;outline-offset:4px!important}
body .gem-shell-header .wp-block-navigation__responsive-container-open,body .gem-shell-header .wp-block-navigation__responsive-container-close{width:44px;height:44px;align-items:center;justify-content:center;padding:10px!important;border:1px solid var(--gem-border)!important;border-radius:8px!important;color:var(--gem-text)!important;background:var(--gem-card)!important}
/* Use the native accessible overlay earlier, before desktop controls become cramped. */
@media(max-width:1120px){body .gem-shell-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}body .gem-shell-header .wp-block-navigation__responsive-container-open{display:flex!important}}
body .gem-shell-header .wp-block-navigation__responsive-container.is-menu-open{position:fixed!important;inset:0!important;z-index:100000!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:100vh!important;padding:24px!important;background:var(--gem-bg)!important;color:var(--gem-text)!important;overflow:auto!important;box-sizing:border-box;backdrop-filter:none}
body .gem-shell-header .is-menu-open .wp-block-navigation__responsive-dialog{position:relative!important;min-height:100%!important;margin:0!important}
body .gem-shell-header .is-menu-open .wp-block-navigation__responsive-container-close{position:absolute;top:0;right:0}
body .gem-shell-header .is-menu-open .wp-block-navigation__responsive-container-content{width:min(560px,100%);max-width:100%;margin:auto;padding:64px 0 48px!important;align-items:stretch!important}
body .gem-shell-header .is-menu-open .wp-block-navigation__container{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%;gap:8px!important}
body .gem-shell-header .is-menu-open .wp-block-navigation-item{width:100%!important;align-items:stretch!important}
body .gem-shell-header .is-menu-open .wp-block-navigation-item__content{min-height:44px!important;margin:0!important;padding:12px 16px!important;background:var(--gem-card)!important;border:1px solid var(--gem-border)!important;border-radius:8px!important;box-shadow:none!important;white-space:normal!important;color:var(--gem-text)!important;line-height:1.4}
body .gem-shell-header .is-menu-open .wp-block-navigation__submenu-container{position:static!important;display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;max-width:none!important;height:auto!important;min-width:0!important;margin:8px 0 0!important;padding:0 0 0 16px!important;background:transparent!important;border:0!important;border-left:1px solid var(--gem-border)!important;border-radius:0!important;gap:6px!important;box-shadow:none!important}
body .gem-shell-header .is-menu-open .wp-block-navigation__submenu-icon{display:none!important}
body .gem-shell-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:14px;background:var(--gem-section)!important}
/* Calm, opt-in homepage and reusable components. No form/product/article-body selectors. */
body.home{background:var(--gem-bg)}
body.home main.gem-design{margin:0!important;padding:0;background:var(--gem-bg);color:var(--gem-text);font-family:var(--gem-font);font-size:16px;line-height:1.65;max-width:none}
.gem-design *{box-sizing:border-box}
.gem-design :is(h1,h2,h3){color:var(--gem-text);font-weight:650;letter-spacing:-.03em;text-wrap:balance}
.gem-design h1{font-size:clamp(42px,4vw,58px);line-height:1.08;margin:18px 0 24px}
.gem-design h2{font-size:clamp(30px,3vw,40px);line-height:1.17;margin:0}
.gem-design h3{font-size:23px;line-height:1.3;margin:0}
.gem-design p{color:var(--gem-muted);max-width:72ch;margin:0}
.gem-design a{color:inherit;text-decoration:none}
.gem-design :is(a,button,summary):focus-visible{outline:3px solid var(--gem-amber);outline-offset:5px}
.gem-v8-container{width:min(var(--gem-width),calc(100% - 48px));max-width:var(--gem-width);margin-inline:auto}
.gem-design .gem-v8-section{padding-block:var(--gem-section-space);margin-block:0}
.gem-design .gem-v8-band{background:var(--gem-section);border-block:1px solid var(--gem-border);margin:0}
.gem-design .gem-v8-eyebrow{display:block;font-size:11px;font-weight:800;line-height:1.7;letter-spacing:.12em;text-transform:uppercase;color:var(--gem-amber);margin:0 0 12px}
.gem-design .gem-v8-section-head{margin-bottom:32px;max-width:72ch}
.gem-design .gem-v8-section-head>p:not(.gem-v8-eyebrow){margin-top:20px}
.gem-design .gem-v8-hero{padding:64px 0 56px;background:linear-gradient(135deg,var(--gem-bg),var(--gem-section));margin:0}
.gem-design .gem-v8-hero__grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:48px;align-items:center}
.gem-design .gem-v8-hero__copy{min-width:0}
.gem-design .gem-v8-hero__copy .gem-v8-eyebrow{max-width:50ch}
.gem-design .gem-v8-lead{font-size:16px;line-height:1.7}
.gem-design .gem-v8-hero__visual,.gem-design .gem-v8-art-panel{margin:0;border-radius:var(--gem-radius);overflow:hidden;border:1px solid var(--gem-border);box-shadow:var(--gem-shadow);background:var(--gem-card)}
.gem-design .gem-v8-hero__visual img,.gem-design .gem-v8-art-panel img{display:block;width:100%;height:auto;aspect-ratio:1672/941;object-fit:contain}
.gem-design .gem-v8-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.gem-design .gem-v8-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--gem-button-height);padding:12px 18px;border:1px solid var(--gem-border);border-radius:var(--gem-radius-sm);font-size:14px;line-height:1.4;font-weight:750;text-align:center;transition:background .18s,border-color .18s;box-shadow:none}
.gem-design .gem-v8-button--primary{background:var(--gem-amber);color:#141a20;border-color:var(--gem-amber)}
.gem-design .gem-v8-button--primary:hover{background:var(--gem-amber-hover);border-color:var(--gem-amber-hover)}
.gem-design .gem-v8-button--secondary{background:var(--gem-card);color:var(--gem-text);border-color:#596a7e}
.gem-design .gem-v8-button--secondary:hover{background:var(--gem-elevated);border-color:var(--gem-muted)}
.gem-design .gem-v8-button:is(:disabled,[aria-disabled="true"]){opacity:.5;cursor:not-allowed}
.gem-design .gem-v8-trust{border-block:1px solid var(--gem-border);background:var(--gem-section);margin:0}
.gem-design .gem-v8-trust__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding-block:24px;gap:24px}
.gem-design .gem-v8-trust__grid>div{display:flex;align-items:center;gap:14px;min-width:0}
.gem-design .gem-v8-trust .gem-v8-icon{width:36px;height:36px;flex:none;color:var(--gem-amber)}
.gem-design .gem-v8-trust p{font-size:12px;line-height:1.55}
.gem-design .gem-v8-trust strong{display:block;font-size:14px;font-weight:700;color:var(--gem-text);margin-bottom:2px}
.gem-design .gem-v8-trust span{display:block}
.gem-design .gem-v8-grid{display:grid;gap:24px}
.gem-design .gem-v8-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.gem-design .gem-v8-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.gem-design .gem-v8-card{display:flex;flex-direction:column;overflow:hidden;min-width:0;background:var(--gem-card);border:1px solid var(--gem-border);border-radius:var(--gem-radius);box-shadow:var(--gem-shadow);transition:transform .18s,border-color .18s}
.gem-design .gem-v8-card:hover{transform:translateY(-3px);border-color:#8c764e}
.gem-design .gem-v8-card:focus-visible{outline-offset:4px;border-color:var(--gem-amber)}
.gem-design .gem-v8-card__visual{display:flex;width:100%;height:152px;align-items:center;justify-content:center;background:linear-gradient(145deg,var(--gem-elevated),var(--gem-section));border-bottom:1px solid var(--gem-border)}
.gem-design .gem-v8-card__visual .gem-v8-icon{width:84px;height:84px;color:var(--gem-amber)}
.gem-design .gem-v8-card__body{display:flex;flex-direction:column;flex:1;align-items:flex-start;padding:28px;gap:16px}
.gem-design .gem-v8-card__body p{font-size:15px;line-height:1.65}
.gem-design .gem-v8-card__body .gem-v8-eyebrow{margin:0;font-size:10px}
.gem-design .gem-v8-card__link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto;padding-top:10px;color:var(--gem-amber);font-size:14px;font-weight:750}
.gem-design .gem-v8-card__link>span{font-size:22px;font-weight:400}
.gem-design .gem-v8-note{margin-top:28px;font-size:14px}
.gem-design .gem-v8-note a,.gem-design .gem-v8-text-link{color:var(--gem-amber);text-decoration:underline;text-underline-offset:4px}
.gem-design .gem-v8-section-intro{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:64px;margin-bottom:40px}
.gem-design .gem-v8-section-intro .gem-v8-section-head{margin-bottom:0}
.gem-design .gem-v8-customer-grid .gem-v8-card{display:grid;grid-template-columns:140px minmax(0,1fr)}
.gem-design .gem-v8-customer-grid .gem-v8-card__visual{height:100%;border-bottom:0;border-right:1px solid var(--gem-border)}
.gem-design .gem-v8-case__image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:#080d13;border-bottom:1px solid var(--gem-border)}
.gem-design .gem-v8-case__image img{display:block;width:100%;height:100%;max-height:390px;object-fit:contain}
.gem-design .gem-v8-posts .gem-v8-section-head{position:relative;max-width:none}
.gem-design .gem-v8-text-link{display:inline-block;font-size:14px;margin-top:18px;font-weight:700}
.gem-design .gem-v8-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}
.gem-design .gem-v8-article-grid>li{display:flex;min-width:0;margin:0}
.gem-design .gem-v8-article{display:flex;flex-direction:column;width:100%;overflow:hidden;background:var(--gem-card);border:1px solid var(--gem-border);border-radius:var(--gem-radius)}
.gem-design .gem-v8-article .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;background:#080d13}
.gem-design .gem-v8-article .wp-block-post-featured-image a{display:block;height:100%}
.gem-design .gem-v8-article .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:contain}
.gem-design .gem-v8-article__body{display:flex;flex-direction:column;gap:14px;padding:24px;flex:1;margin:0}
.gem-design .gem-v8-article__body>*{margin:0}
.gem-design .gem-v8-article .wp-block-post-date{color:var(--gem-muted);font-size:12px}
.gem-design .gem-v8-article h3{font-size:21px;line-height:1.4}
.gem-design .gem-v8-article h3 a:hover{color:var(--gem-amber)}
.gem-design .gem-v8-article .wp-block-post-excerpt{display:flex;flex:1;flex-direction:column;font-size:14px}
.gem-design .gem-v8-article .wp-block-post-excerpt__more-text{margin-top:auto;padding-top:20px}
.gem-design .gem-v8-article .wp-block-post-excerpt__more-link{color:var(--gem-amber);font-weight:700}
.gem-design .gem-v8-support{padding-block:40px;border-block:1px solid var(--gem-border)}
.gem-design .gem-v8-support h2{font-size:24px}
.gem-design .gem-v8-support .gem-v8-section-head{margin-bottom:16px}
.gem-design .gem-v8-support p{font-size:14px}
.gem-design .gem-v8-support details{margin-top:18px}
.gem-design .gem-v8-support summary{display:flex;align-items:center;gap:12px;min-height:48px;color:var(--gem-text);cursor:pointer;list-style:none}
.gem-design .gem-v8-support summary::before{content:'+';color:var(--gem-amber);font-size:24px}
.gem-design .gem-v8-support details[open] summary::before{content:'−'}
.gem-design .gem-v8-support ul{columns:2;list-style:none;padding:0;margin:16px 0}
.gem-design .gem-v8-support li{break-inside:avoid;margin:0}
.gem-design .gem-v8-support li a{display:inline-block;padding:10px 0;font-size:14px;color:var(--gem-muted);text-decoration:underline}
.gem-design .gem-v8-support a:hover{color:var(--gem-amber)}
.gem-design .gem-v8-video{position:relative;aspect-ratio:16/9;max-width:700px;margin-top:24px}
.gem-design .gem-v8-video iframe{width:100%;height:100%;position:absolute;inset:0;border:0}
.gem-design .gem-v8-final{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:center;padding:48px;background:var(--gem-elevated);border:1px solid var(--gem-border);border-radius:var(--gem-radius)}
.gem-design .gem-v8-final h2{max-width:22ch}
.gem-design .gem-v8-final p:not(.gem-v8-eyebrow){margin-top:20px;max-width:60ch}
.gem-design .gem-v8-final .gem-v8-actions{display:flex;flex-direction:column;align-items:stretch;margin:0}
@media(max-width:1120px){:root{--gem-section-space:64px}.gem-design .gem-v8-grid--three,.gem-design .gem-v8-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gem-design .gem-v8-hero__grid{gap:32px}.gem-design h1{font-size:48px}.gem-design .gem-v8-customer-grid .gem-v8-card{grid-template-columns:110px minmax(0,1fr)}.gem-design .gem-v8-card__body{padding:24px}.gem-design .gem-v8-section-intro{gap:32px}}
@media(max-width:960px){:root{--gem-section-space:64px}.gem-design .gem-v8-hero__grid{grid-template-columns:1fr;gap:32px}.gem-design .gem-v8-hero__copy{max-width:72ch}.gem-design .gem-v8-hero{padding-block:48px}.gem-design .gem-v8-hero__copy .gem-v8-eyebrow{max-width:none}.gem-design .gem-v8-trust__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gem-design .gem-v8-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}.gem-design .gem-v8-customer-grid .gem-v8-card{display:flex}.gem-design .gem-v8-customer-grid .gem-v8-card__visual{height:130px;border-right:0;border-bottom:1px solid var(--gem-border)}.gem-design .gem-v8-final{grid-template-columns:1fr;gap:32px;padding:32px}.gem-design .gem-v8-final .gem-v8-actions{flex-direction:row;flex-wrap:wrap}.gem-design .gem-v8-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:root{--gem-section-space:48px}.gem-v8-container{width:calc(100% - 40px)}body .gem-shell-header .gem-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px 44px;gap:8px;width:calc(100% - 32px);padding:12px 0!important}body .gem-shell-header .gem-brand{grid-row:1;grid-column:1;justify-self:start}body .gem-shell-header .gem-logo-image{width:78px!important}body .gem-shell-header .gem-nav-wrap{display:contents!important}body .gem-shell-header .gem-nav-wrap>.wp-block-navigation{grid-row:1;grid-column:4;justify-self:end}body .gem-shell-header .gem-call-now-link{grid-row:1!important;grid-column:2!important}body .gem-shell-header .gem-header-cart-link{grid-row:1!important;grid-column:3!important}body .gem-shell-header .gem-header-action--booking{grid-row:2!important;grid-column:1/-1!important;min-width:0;width:100%;white-space:normal;text-align:center;padding:8px 12px!important}body .gem-shell-header .wp-block-navigation__responsive-container.is-menu-open{padding:16px!important}.gem-design h1{font-size:36px;line-height:1.12}.gem-design h2{font-size:30px}.gem-design h3{font-size:22px}.gem-design .gem-v8-hero{padding:40px 0}.gem-design .gem-v8-hero__grid{gap:32px}.gem-design .gem-v8-hero__copy .gem-v8-eyebrow{font-size:10px}.gem-design .gem-v8-actions{align-items:stretch;flex-direction:column}.gem-design .gem-v8-button{width:100%;font-size:14px}.gem-design .gem-v8-trust__grid{gap:20px 12px;padding-block:24px}.gem-design .gem-v8-trust__grid>div{flex-direction:column;align-items:flex-start;gap:8px}.gem-design .gem-v8-trust strong{font-size:13px}.gem-design .gem-v8-trust p{font-size:11px}.gem-design .gem-v8-grid--three,.gem-design .gem-v8-grid--two,.gem-design .gem-v8-article-grid,.gem-design .gem-v8-section-intro{grid-template-columns:1fr}.gem-design .gem-v8-card__visual{height:140px}.gem-design .gem-v8-section-intro{gap:28px}.gem-design .gem-v8-section-head{margin-bottom:24px}.gem-design .gem-v8-final{padding:24px;gap:24px}.gem-design .gem-v8-final .gem-v8-actions{flex-direction:column}.gem-design .gem-v8-support ul{columns:1}}
@media(prefers-reduced-motion:reduce){.gem-design *,.gem-shell-header *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.gem-design .gem-v8-card:hover{transform:none}}
/* Reserve equal article-image frames without cropping text-bearing artwork. */
.gem-design .gem-v8-article .wp-block-post-featured-image{position:relative;flex:none;width:100%;aspect-ratio:16/10}
.gem-design .gem-v8-article .wp-block-post-featured-image a{position:absolute;inset:0}
.gem-design .gem-v8-article .wp-block-post-featured-image img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important}

/* Keep the opener behind its active native modal; retain its layout for focus return. */
body .gem-shell-header .wp-block-navigation:has(.is-menu-open) .wp-block-navigation__responsive-container-open{z-index:99999!important;pointer-events:none}
