:root{
  /* Overwritten by chosen palette via <style id="acef-palette"> */
  --acef-navy:#0A2540;
  --acef-emerald:#1FA774;
  --acef-gold:#D4AF37;
  --acef-light:#F5F5F5;
  --acef-charcoal:#333333;

  --acef-radius:16px;
  --acef-shadow: 0 12px 30px rgba(10,37,64,.10);
  --acef-max: 1200px;
  --acef-content: 920px;
  --acef-gap: 1.25rem;
}

*{box-sizing:border-box}
body.acef{
  margin:0;
  font-family: var(--acef-font-body, -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif);
  color: var(--acef-charcoal);
  background: #fff;
  line-height:1.6;
}

a{color:var(--acef-emerald); text-decoration:none}
a:hover{color:var(--acef-navy); text-decoration:underline}

.wrap{max-width:var(--acef-max); margin:0 auto; padding:0 18px;}
.site{min-height:100dvh; display:flex; flex-direction:column;}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid #eee;
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; position:relative;}
.brand{display:flex; align-items:center; gap:12px; min-width:160px;}
.brand a{color:var(--acef-navy); font-weight:900; letter-spacing:-.02em}
.custom-logo{max-height:64px; width:auto; max-width:min(280px,42vw); object-fit:contain}

.nav__list{display:flex; gap:14px; list-style:none; margin:0; padding:0; flex-wrap:wrap; align-items:center;}
.nav__list a{display:inline-flex; padding:8px 10px; border-radius:10px; color:var(--acef-navy); font-weight:650;}
.nav__list a:hover{background:var(--acef-light); text-decoration:none}

/* Mobile nav (burger) */
.nav-toggle{
  display:none;
  width:44px;height:44px;
  border:1px solid #ddd;
  background:#fff;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:10px;
  cursor:pointer;
}
.nav-toggle__bar{
  display:block;
  height:2px;
  width:100%;
  background: var(--acef-navy);
  border-radius:2px;
}

@media(max-width: 860px){
  .nav-toggle{display:inline-flex;}
  /* hide menu by default */
  #site-nav{display:none;}
  #site-nav.is-open{
    display:block;
    position:absolute;
    left:18px; right:18px;
    top: calc(100% + 10px);
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    box-shadow: var(--acef-shadow);
    padding:12px;
  }
  .nav__list{flex-direction:column; align-items:stretch; gap:6px;}
  .nav__list a{padding:12px 12px; border-radius:12px;}
}

/* Main */
.main{flex:1}
.content-grid{display:grid; grid-template-columns: 1fr; gap: calc(var(--acef-gap) * 1.5); padding: 22px 0 40px;}
@media(min-width: 980px){
  .content-grid.has-sidebar{grid-template-columns: minmax(0, 1fr) 320px;}
}

.card{
  background:#fff;
  border:1px solid #eee;
  border-radius: var(--acef-radius);
  box-shadow: var(--acef-shadow);
  overflow:hidden;
}
.card__body{padding: 18px 18px 20px;}
.card__media img{display:block; width:100%; height:auto;}
.card__title{margin:0 0 10px; line-height:1.2}
.card__title a{color:var(--acef-navy)}
.card__title a:hover{text-decoration:underline}
.card__excerpt{margin:0 0 12px; color:#555}

.prose{max-width: var(--acef-content); padding:22px;}
.prose h1,.prose h2,.prose h3{color:var(--acef-navy); line-height:1.2}
.prose h1{font-size:clamp(1.6rem, 2.6vw, 2.4rem); margin:0 0 14px}
.prose h2{font-size:clamp(1.25rem, 2.1vw, 1.8rem); margin:32px 0 12px}
.prose p{margin:0 0 14px}
.prose img{max-width:100%; height:auto; border-radius: 14px}

.meta{display:flex; flex-wrap:wrap; gap:10px; color:#666; font-size:.9rem; margin: 0 0 14px;}
.badge{display:inline-flex; align-items:center; padding: 3px 10px; border-radius:999px; background: var(--acef-light); color: var(--acef-navy); font-weight:650; font-size:.8rem;}

/* Blog grids */
.post-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media(min-width: 680px){
  .post-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media(min-width: 1080px){
  .post-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; padding: 10px 14px; border-radius: 12px; font-weight: 750; border:1px solid transparent; cursor:pointer;}
.btn--primary{background:var(--acef-emerald); color:#fff}
.btn--primary:hover{background:var(--acef-navy); color:#fff; text-decoration:none}
.btn--ghost{background:transparent; border-color:#ddd; color:var(--acef-navy)}
.btn--ghost:hover{background:var(--acef-light); text-decoration:none}

/* Footer */
.site-footer{border-top: 1px solid #eee; padding: 26px 0; background:#fff;}
.footer-inner{display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; align-items:center;}
.small{font-size:.9rem; color:#666}

/* Widgets */
.widget{padding:16px; border:1px solid #eee; border-radius:16px}
.widget__title{margin:0 0 10px; color:var(--acef-navy); font-size:1.05rem}

/* Pagination */
.pagination, .nav-links{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.page-numbers{display:inline-flex; padding:8px 12px; border:1px solid #ddd; border-radius:10px; color:var(--acef-navy); font-weight:650}
.page-numbers.current{background:var(--acef-light); border-color: var(--acef-light)}

/* Comment form tweaks */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
}

/* Simple form styling (used by Contact page blocks / basic HTML forms) */
.prose input[type="text"],
.prose input[type="email"],
.prose input[type="url"],
.prose input[type="tel"],
.prose textarea,
.prose select{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
}
.prose textarea{min-height:140px; resize:vertical;}
.prose button,
.prose input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--acef-navy);
  background: var(--acef-navy);
  color:#fff;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.prose button:hover,
.prose input[type="submit"]:hover{opacity:.92}

/* Accessibility helpers */
.screen-reader-text{
  border:0 !important;
  clip:rect(1px,1px,1px,1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height:1px !important;
  margin:-1px !important;
  overflow:hidden !important;
  padding:0 !important;
  position:absolute !important;
  width:1px !important;
  white-space:nowrap !important;
}

/* Burger icon (SVG) */
.nav-toggle{ color: var(--acef-navy); }
.nav-toggle__icon{ display:block; }

.ace-home-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #0A2540 0%, #1f3a5a 100%);
}

.ace-home-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  z-index: 0;
}

.ace-home-hero::after {
  background: linear-gradient(90deg, rgba(10,37,64,.88), rgba(10,37,64,.15));
}

.ace-home-hero__content {
  position: relative;
  max-width: 760px;
  margin-left: 10%;
}

.ace-home-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  font-weight: 800;
}

.ace-home-hero p {
  font-size: 1.3rem;
  margin-top: 15px;
  opacity: 0.9;
}
.ace-home-section {
  padding: 80px 20px;
}

.ace-home-inner {
  max-width: 1200px;
  margin: auto;
}

.ace-home-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}


.ace-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ace-card--category {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.ace-card__media {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(10,37,64,.85), rgba(31,167,116,.45)),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 65%);
}

.ace-card__body {
  padding: 24px;
}

.ace-card__body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.ace-card__body p {
  margin: 0 0 16px;
  color: #555;
}

.ace-card__link {
  font-weight: 700;
  color: var(--acef-emerald);
}


.ace-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--acef-emerald);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
}

.btn--primary {
  background: var(--acef-emerald);
  color: #fff;
}
.ace-home-hero {
  isolation: isolate;
}

.ace-home-hero__bg {
  z-index: 0;
}

.ace-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
 background: linear-gradient(90deg, rgba(10,37,64,.78), rgba(10,37,64,.18));
}

.ace-home-hero__content {
  z-index: 2;
}

/* ACE homepage category grid hard reset */
.acef-homepage .ace-home-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.acef-homepage .ace-home-grid > a,
.acef-homepage .ace-home-grid > article,
.acef-homepage .ace-home-grid > div {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.acef-homepage .ace-card--category {
  height: 100% !important;
}

@media(max-width: 1000px) {
  .acef-homepage .ace-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media(max-width: 650px) {
  .acef-homepage .ace-home-grid {
    grid-template-columns: 1fr !important;
  }
}

.ace-home-grid > p:empty,
.ace-home-grid > br {
  display: none !important;
}
.acef-homepage .ace-home-grid > p {
  display: none !important;
}


/* ACE generated homepage v3 */
body.acef{
  background: var(--acef-body-bg, #fff);
}

.acef h1,
.acef h2,
.acef h3,
.acef .card__title,
.ace-home-hero h1,
.ace-home-section h2,
.ace-card__body h3,
.ace-review-card h3{
  font-family: var(--acef-font-heading, var(--acef-font-body, inherit));
}

.ace-home-page{
  background: #fff;
  color: var(--acef-charcoal);
}

.ace-home-variant-dark{
  background: #07111F;
  color: #EAF0F6;
}

.ace-home-variant-dark .ace-home-section{
  background: #07111F;
}

.ace-home-variant-dark .ace-home-reviews-section{
  background: rgba(255,255,255,.04);
}

.ace-home-kicker,
.ace-home-eyebrow{
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--acef-gold);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ace-home-section-head{
  max-width: 760px;
  margin: 0 0 28px;
}

.ace-home-section-head h2{
  margin: 0;
  color: var(--acef-navy);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
}

.ace-home-variant-dark .ace-home-section-head h2,
.ace-home-variant-dark .ace-card__body h3,
.ace-home-variant-dark .ace-review-card h3 a,
.ace-home-variant-dark .ace-home-longform h2,
.ace-home-variant-dark .ace-home-longform h3{
  color: #fff;
}

.ace-home-hero{
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--acef-emerald) 25%, transparent), transparent 35%),
    linear-gradient(120deg, var(--acef-navy) 0%, color-mix(in srgb, var(--acef-navy) 80%, #000) 100%);
}

.ace-home-hero::after{
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--acef-navy) 88%, #000), color-mix(in srgb, var(--acef-navy) 18%, transparent)),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acef-emerald) 28%, transparent), transparent 45%);
}

.ace-home-hero__content{
  padding: 48px 20px;
}

.ace-home-hero h1{
  margin: 0;
  letter-spacing: -.055em;
}

.ace-home-hero p:not(.ace-home-kicker){
  max-width: 680px;
}

.ace-card--category{
  border: 1px solid color-mix(in srgb, var(--acef-navy) 10%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ace-card--category:hover,
.ace-review-card:hover{
  transform: translateY(-3px);
  text-decoration: none;
}

.ace-card__media{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acef-navy) 88%, #000), color-mix(in srgb, var(--acef-emerald) 55%, transparent)),
    radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--acef-gold) 70%, transparent), transparent 55%);
}

.ace-home-reviews-section{
  background: var(--acef-light);
}

.ace-review-card{
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--acef-navy) 10%, transparent);
  box-shadow: 0 18px 45px rgba(10,37,64,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ace-home-variant-dark .ace-review-card,
.ace-home-variant-dark .ace-card--category{
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.12);
}

.ace-review-card__media{
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--acef-navy);
}

.ace-review-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-review-card__placeholder{
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acef-navy) 86%, #000), color-mix(in srgb, var(--acef-emerald) 55%, transparent)),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acef-gold) 60%, transparent), transparent 60%);
}

.ace-review-card__body{
  padding: 22px;
}

.ace-review-card__eyebrow{
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--acef-emerald);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ace-review-card h3{
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: 1.12rem;
}

.ace-review-card h3 a{
  color: var(--acef-navy);
}

.ace-review-card p{
  margin: 0 0 14px;
  color: #5b6472;
}

.ace-home-variant-dark .ace-review-card p,
.ace-home-variant-dark .ace-card__body p,
.ace-home-variant-dark .ace-home-longform p,
.ace-home-variant-dark .ace-home-longform li{
  color: rgba(255,255,255,.78);
}

.ace-review-card__link{
  font-weight: 850;
}

.ace-home-longform .ace-home-inner{
  max-width: 920px;
}

.ace-home-longform h2,
.ace-home-longform h3{
  color: var(--acef-navy);
}

.ace-home-empty{
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed color-mix(in srgb, var(--acef-navy) 22%, transparent);
}


/* ACE homepage 0.3.6: compact category cards + image-led post grids */
.ace-home-category-grid--compact .ace-card--category,
.acef-homepage .ace-home-category-grid .ace-card--category{
  min-height: 0 !important;
  overflow: visible;
}

.ace-home-category-grid--compact .ace-card__media,
.acef-homepage .ace-home-category-grid .ace-card__media{
  display: none !important;
}

.ace-home-category-grid--compact .ace-card__body,
.acef-homepage .ace-home-category-grid .ace-card__body{
  padding: 24px !important;
}

.ace-home-category-grid--compact .ace-card__body p,
.acef-homepage .ace-home-category-grid .ace-card__body p{
  min-height: 0;
}

.ace-home-latest-posts-section{
  background: #fff;
}

.ace-home-variant-dark .ace-home-latest-posts-section{
  background: rgba(255,255,255,.025);
}

/* ACE homepage design brain 0.3.8
   The setup process saves a per-site visual identity in ace_home_design_profile.
   These semantic variables let one Foundation theme produce varied brands. */
:root{
  --acef-bg: var(--acef-body-bg, #fff);
  --acef-surface: #fff;
  --acef-heading: var(--acef-navy, #0A2540);
  --acef-text: var(--acef-charcoal, #333);
  --acef-muted: #667085;
  --acef-primary: var(--acef-navy, #0A2540);
  --acef-accent: var(--acef-gold, #D4AF37);
  --acef-border: #E5E7EB;
  --acef-section-dark-bg: var(--acef-primary, #102033);
  --acef-section-dark-text: #F8FAFC;
}


body.acef{
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}

body.acef a{ color: var(--acef-primary); }
body.acef a:hover{ color: var(--acef-accent); }

/* Readability guardrails for AI generated skins.
   Brand colours may be soft, but important text uses semantic heading/body roles. */
body.acef :where(.site-title a,.brand a,.nav__list a,.card__title,.card__title a,.entry-title,.page-title,.archive-title,.prose h1,.prose h2,.prose h3,.prose h4,.widget__title,.ace-home-section-head h2,.ace-card h3,.ace-home-post-title,.ace-review-card h3,.ace-single-hero h1,.ace-entry-content h2,.ace-entry-content h3,.entry-content h2,.entry-content h3,.entry-content h4){
  color: var(--acef-heading) !important;
  opacity: 1 !important;
}
body.acef :where(p,li,.card__excerpt,.entry-summary,.entry-content,.prose,.widget,.ace-card__body p,.ace-review-card p){
  color: var(--acef-text) !important;
}
body.acef :where(.badge,.meta,.small,.ace-home-kicker,.ace-home-eyebrow,.ace-review-card__eyebrow,.ace-home-cat-pill,.tag-cloud-link,.wp-block-tag-cloud a){
  opacity: 1 !important;
}
body.acef :where(.btn--primary,.ace-home-btn,.ace-card__link,.ace-review-card__link,.wp-block-button__link,.wp-element-button){
  background: var(--acef-button-bg, var(--acef-primary)) !important;
  color: var(--acef-button-text, #fff) !important;
}

body.acef .site-header{
  background: color-mix(in srgb, var(--acef-surface) 92%, transparent);
  border-bottom-color: var(--acef-border);
}

body.acef .brand a,
body.acef .nav__list a,
body.acef .card__title a,
body.acef .prose h1,
body.acef .prose h2,
body.acef .prose h3,
body.acef .widget__title{
  color: var(--acef-heading);
}

body.acef .card,
body.acef .widget,
body.acef .ace-review-card,
body.acef .ace-card--category{
  background: var(--acef-surface);
  border-color: var(--acef-border);
  color: var(--acef-text);
}

body.acef .card__excerpt,
body.acef .meta,
body.acef .small,
body.acef .ace-card__body p,
body.acef .ace-review-card p,
body.acef .ace-home-longform p,
body.acef .ace-home-longform li{
  color: var(--acef-muted);
}

body.acef .btn--primary,
body.acef .ace-home-btn{
  background: var(--acef-button-bg, var(--acef-primary));
  color: var(--acef-button-text, var(--acef-surface));
}
body.acef .btn--primary:hover,
body.acef .ace-home-btn:hover{
  background: var(--acef-primary);
  color: var(--acef-button-text, #fff);
}

body.acef .btn--ghost{
  border-color: var(--acef-border);
  color: var(--acef-heading);
}
body.acef .btn--ghost:hover,
body.acef .nav__list a:hover,
body.acef .badge,
body.acef .page-numbers.current{
  background: color-mix(in srgb, var(--acef-primary) 9%, var(--acef-bg));
}

.ace-home-page{
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}
.ace-home-section,
.ace-home-latest-posts-section{
  background: var(--acef-bg) !important;
}
.ace-home-reviews-section,
.acef-section-banded .ace-home-section:nth-of-type(even),
.acef-section-magazine .ace-home-reviews-section{
  background: color-mix(in srgb, var(--acef-primary) 7%, var(--acef-bg)) !important;
}

.ace-home-section-head h2,
.ace-card__body h3,
.ace-home-longform h2,
.ace-home-longform h3,
.ace-review-card h3 a{
  color: var(--acef-heading) !important;
}

.ace-home-eyebrow,
.ace-home-kicker,
.ace-review-card__eyebrow,
.ace-card__link,
.ace-review-card__link{
  color: var(--acef-accent) !important;
}

.ace-review-card,
.ace-card--category{
  border-radius: var(--acef-radius, 18px);
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
}

.acef-card-minimal .ace-review-card,
.acef-card-minimal .ace-card--category{
  box-shadow: none;
  border-radius: calc(var(--acef-radius, 18px) * .75);
}
.acef-card-soft .ace-review-card,
.acef-card-soft .ace-card--category{
  border-radius: calc(var(--acef-radius, 18px) + 8px);
}
.acef-card-editorial .ace-review-card,
.acef-card-editorial .ace-card--category{
  border-top: 4px solid var(--acef-accent);
}

.ace-home-hero{
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--acef-accent) 24%, transparent), transparent 34%),
    linear-gradient(120deg, var(--acef-primary) 0%, color-mix(in srgb, var(--acef-primary) 70%, #000) 100%) !important;
}
.ace-home-hero::after{
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--acef-primary) 88%, #000), color-mix(in srgb, var(--acef-primary) 18%, transparent)),
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--acef-accent) 28%, transparent), transparent 45%) !important;
}

.ace-home-mode-dark,
.ace-home-variant-dark,
body.acef-mode-dark,
body.acef-appearance-dark{
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}
body.acef-mode-dark .site-header,
body.acef-appearance-dark .site-header{
  background: color-mix(in srgb, var(--acef-surface) 88%, transparent);
}
body.acef-mode-dark .site-footer,
body.acef-appearance-dark .site-footer,
body.acef-mode-dark .nav-toggle,
.ace-home-mode-dark .ace-home-section,
.ace-home-variant-dark .ace-home-section{
  background: var(--acef-bg) !important;
  border-color: var(--acef-border);
}
body.acef-mode-dark .ace-review-card,
body.acef-appearance-dark .ace-review-card,
body.acef-mode-dark .ace-card--category,
.ace-home-mode-dark .ace-review-card,
.ace-home-mode-dark .ace-card--category,
.ace-home-variant-dark .ace-review-card,
.ace-home-variant-dark .ace-card--category{
  background: color-mix(in srgb, var(--acef-surface) 92%, white 4%) !important;
  border-color: var(--acef-border) !important;
}

/* Mixed appearance: light readable pages/cards with dark feature treatments. */
body.acef-mode-mixed,
body.acef-appearance-mixed{
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}
body.acef-mode-mixed .ace-home-hero,
body.acef-appearance-mixed .ace-home-hero{
  background: var(--acef-section-dark-bg, var(--acef-primary)) !important;
}
body.acef-mode-mixed .ace-home-hero h1,
body.acef-mode-mixed .ace-home-hero p,
body.acef-mode-mixed .ace-home-hero .ace-home-kicker,
body.acef-appearance-mixed .ace-home-hero h1,
body.acef-appearance-mixed .ace-home-hero p,
body.acef-appearance-mixed .ace-home-hero .ace-home-kicker{
  color: var(--acef-section-dark-text, #F8FAFC) !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
body.acef-mode-mixed .ace-home-reviews-section,
body.acef-appearance-mixed .ace-home-reviews-section{
  background: color-mix(in srgb, var(--acef-section-dark-bg, var(--acef-primary)) 94%, #000 6%) !important;
  color: var(--acef-section-dark-text, #F8FAFC) !important;
}
body.acef-mode-mixed .ace-home-reviews-section .ace-home-section-head h2,
body.acef-mode-mixed .ace-home-reviews-section .ace-home-section-head p,
body.acef-appearance-mixed .ace-home-reviews-section .ace-home-section-head h2,
body.acef-appearance-mixed .ace-home-reviews-section .ace-home-section-head p{
  color: var(--acef-section-dark-text, #F8FAFC) !important;
}
body.acef-mode-mixed .ace-home-reviews-section .ace-review-card,
body.acef-appearance-mixed .ace-home-reviews-section .ace-review-card{
  background: color-mix(in srgb, var(--acef-surface, #fff) 96%, transparent) !important;
  color: var(--acef-text) !important;
}

.ace-home-mode-dark .ace-home-section-head h2,
.ace-home-mode-dark .ace-card__body h3,
.ace-home-mode-dark .ace-review-card h3 a,
.ace-home-mode-dark .ace-home-longform h2,
.ace-home-mode-dark .ace-home-longform h3,
.ace-home-variant-dark .ace-home-section-head h2,
.ace-home-variant-dark .ace-card__body h3,
.ace-home-variant-dark .ace-review-card h3 a,
.ace-home-variant-dark .ace-home-longform h2,
.ace-home-variant-dark .ace-home-longform h3{
  color: var(--acef-text) !important;
}


/* ACE blog/archive hub 0.3.8 */
.ace-blog-hub{
  padding: clamp(24px, 4vw, 48px) 0 56px;
}

.ace-blog-section{
  margin-top: clamp(28px, 5vw, 56px);
}

.ace-blog-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 10px);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--acef-accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--acef-primary) 11%, var(--acef-bg)), color-mix(in srgb, var(--acef-surface) 88%, var(--acef-bg)));
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
  padding: clamp(26px, 5vw, 56px);
}

.ace-blog-hero::after{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acef-primary) 12%, transparent);
  pointer-events:none;
}

.ace-blog-hero__copy{
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.ace-blog-hero h1{
  margin: 0;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.ace-blog-hero p:not(.ace-blog-eyebrow){
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--acef-muted);
  font-size: clamp(1.03rem, 1.7vw, 1.25rem);
}

.ace-blog-hero--compact h1{
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ace-blog-eyebrow{
  display:inline-flex;
  margin: 0 0 12px;
  color: var(--acef-accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ace-blog-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 24px;
}

.ace-blog-featured{
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  overflow:hidden;
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 6px);
  background: var(--acef-surface);
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
}

.ace-blog-featured__media{
  min-height: 360px;
  display:block;
  background: var(--acef-primary);
}

.ace-blog-featured__img,
.ace-blog-featured__placeholder{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.ace-blog-featured__placeholder{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acef-primary) 88%, #000), color-mix(in srgb, var(--acef-accent) 45%, transparent)),
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--acef-accent) 55%, transparent), transparent 55%);
}

.ace-blog-featured__body{
  padding: clamp(24px, 4vw, 44px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.ace-blog-featured h2{
  margin: 0 0 10px;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.ace-blog-featured h2 a{
  color: inherit;
}

.ace-blog-featured p{
  margin: 12px 0 16px;
  color: var(--acef-muted);
  font-size: 1.05rem;
}

.ace-blog-meta{
  color: var(--acef-muted);
  font-size: .92rem;
  font-weight: 650;
}

.ace-blog-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.ace-blog-chip{
  display:inline-flex;
  align-items:center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--acef-border);
  background: color-mix(in srgb, var(--acef-surface) 88%, var(--acef-bg));
  color: var(--acef-heading) !important;
  font-weight: 800;
  text-decoration:none;
}

.ace-blog-chip:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--acef-primary) 9%, var(--acef-bg));
  text-decoration:none;
}

.ace-blog-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ace-blog-pagination{
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--acef-border);
  border-radius: var(--acef-radius, 18px);
  background: var(--acef-surface);
}

.ace-blog-reviews-section{
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--acef-radius, 18px) + 8px);
  background: color-mix(in srgb, var(--acef-primary) 6%, var(--acef-bg));
}

body.acef-mode-dark .ace-blog-hero,
body.acef-mode-dark .ace-blog-featured,
body.acef-mode-dark .ace-blog-pagination,
body.acef-mode-dark .ace-blog-chip{
  background: color-mix(in srgb, var(--acef-surface) 88%, var(--acef-bg));
  border-color: var(--acef-border);
}

body.acef-mode-dark .ace-blog-hero h1,
body.acef-mode-dark .ace-blog-featured h2{
  color: var(--acef-text);
}

body.acef-mode-dark .ace-blog-reviews-section{
  background: color-mix(in srgb, var(--acef-surface) 70%, var(--acef-bg));
}

@media(max-width: 980px){
  .ace-blog-featured{grid-template-columns: 1fr;}
  .ace-blog-featured__media{min-height: 280px;}
  .ace-blog-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media(max-width: 650px){
  .ace-blog-hub{padding-top: 18px;}
  .ace-blog-hero{padding: 24px;}
  .ace-blog-actions .btn{width:100%;}
  .ace-blog-grid{grid-template-columns: 1fr;}
  .ace-blog-featured__media{min-height: 220px;}
  .ace-blog-reviews-section{padding: 22px;}
}

/* ACE single article template 0.3.9 */
.ace-article-wrap{
  padding: clamp(22px, 4vw, 48px) 0 64px;
}

.ace-article-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 10px);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--acef-accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--acef-primary) 10%, var(--acef-bg)), color-mix(in srgb, var(--acef-surface) 90%, var(--acef-bg)));
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
  padding: clamp(26px, 5vw, 58px);
}

.ace-article-hero::after{
  content:"";
  position:absolute;
  right:-110px;
  bottom:-140px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acef-primary) 11%, transparent);
  pointer-events:none;
}

.ace-article-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.ace-article-meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px 14px;
  margin-bottom: 16px;
  color: var(--acef-muted);
  font-size: .92rem;
  font-weight: 750;
}

.ace-article-meta-row span:not(.ace-article-chip):not(:first-child)::before{
  content:"";
  display:inline-block;
  width: 5px;
  height: 5px;
  margin-right: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acef-muted) 55%, transparent);
  vertical-align: middle;
}

.ace-article-chip{
  display:inline-flex;
  align-items:center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acef-primary) 12%, var(--acef-bg));
  color: var(--acef-heading) !important;
  text-decoration:none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ace-article-hero h1{
  margin: 0;
  max-width: 1050px;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.ace-article-deck{
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--acef-muted);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.ace-article-featured{
  overflow:hidden;
  margin-top: 24px;
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 8px);
  background: var(--acef-surface);
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
}

.ace-article-featured__img,
.ace-article-featured__placeholder{
  display:block;
  width:100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
}

.ace-article-featured__placeholder{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acef-primary) 88%, #000), color-mix(in srgb, var(--acef-accent) 48%, transparent)),
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--acef-accent) 55%, transparent), transparent 55%);
}

.ace-article-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 42px);
  align-items:start;
  margin-top: clamp(24px, 4vw, 42px);
}

.ace-article-card,
.ace-author-box,
.ace-article-aside-card{
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 4px);
  background: var(--acef-surface);
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.08));
}

.ace-article-card{
  padding: clamp(24px, 4vw, 52px);
}

.ace-article-content{
  max-width: 790px;
  margin: 0 auto;
  color: var(--acef-text);
  font-size: clamp(1.03rem, 1.25vw, 1.12rem);
  line-height: 1.78;
}

.ace-article-content > :first-child{
  margin-top: 0;
}

.ace-article-content h2,
.ace-article-content h3,
.ace-article-content h4{
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  letter-spacing: -.025em;
}

.ace-article-content h2{
  margin-top: 2.1em;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.12;
}

.ace-article-content h3{
  margin-top: 1.8em;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.ace-article-content a{
  color: var(--acef-heading);
  font-weight: 750;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.ace-article-content img{
  border-radius: var(--acef-radius, 18px);
}

.ace-article-tags{
  max-width: 790px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--acef-border);
}

.ace-author-box{
  display:flex;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 30px);
}

.ace-author-box__avatar img{
  display:block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
}

.ace-author-box h2{
  margin: 0 0 8px;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: 1.35rem;
}

.ace-author-box p:not(.ace-blog-eyebrow){
  margin: 0 0 10px;
  color: var(--acef-muted);
}

.ace-article-aside{
  position: sticky;
  top: 92px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.ace-article-aside-card{
  padding: 22px;
}

.ace-article-aside-card h2{
  margin: 0 0 10px;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.ace-article-aside-card p:not(.ace-blog-eyebrow){
  color: var(--acef-muted);
  margin: 0 0 12px;
  font-size: .96rem;
}

.ace-article-aside .ace-blog-chips{
  gap: 8px;
}

.ace-article-aside .ace-blog-chip{
  min-height: 36px;
  padding: 7px 11px;
  font-size: .88rem;
}

.ace-article-mini-grid{
  display:grid;
  gap: 14px;
}

.ace-article-mini-grid .ace-review-card{
  box-shadow: none;
}

.ace-article-mini-grid .ace-review-card__media{
  min-height: 130px;
}

.ace-article-mini-grid .ace-review-card__body{
  padding: 15px;
}

.ace-article-mini-grid .ace-review-card h3{
  font-size: 1rem;
}

.ace-article-mini-grid .ace-review-card p{
  display:none;
}

.ace-related-posts{
  margin-top: clamp(34px, 5vw, 58px);
}

.ace-related-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.acef-mode-dark .ace-article-hero,
body.acef-mode-dark .ace-article-featured,
body.acef-mode-dark .ace-article-card,
body.acef-mode-dark .ace-author-box,
body.acef-mode-dark .ace-article-aside-card{
  background: color-mix(in srgb, var(--acef-surface) 88%, var(--acef-bg));
  border-color: var(--acef-border);
}

body.acef-mode-dark .ace-article-hero h1,
body.acef-mode-dark .ace-article-content h2,
body.acef-mode-dark .ace-article-content h3,
body.acef-mode-dark .ace-article-content h4,
body.acef-mode-dark .ace-author-box h2,
body.acef-mode-dark .ace-article-aside-card h2{
  color: var(--acef-text);
}

body.acef-mode-dark .ace-article-chip{
  color: var(--acef-text) !important;
  background: color-mix(in srgb, var(--acef-primary) 22%, var(--acef-bg));
}

@media(max-width: 1100px){
  .ace-article-layout{
    grid-template-columns: 1fr;
  }
  .ace-article-aside{
    position: static;
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ace-article-aside-card--reviews{
    grid-column: 1 / -1;
  }
  .ace-article-mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 760px){
  .ace-article-wrap{padding-top:18px;}
  .ace-article-hero{padding:24px;}
  .ace-article-hero h1{font-size: clamp(2rem, 12vw, 3.2rem);}
  .ace-article-featured__img,
  .ace-article-featured__placeholder{height: 240px;}
  .ace-article-card{padding:22px;}
  .ace-author-box{display:block;}
  .ace-author-box__avatar{margin-bottom:14px;}
  .ace-article-aside{grid-template-columns: 1fr;}
  .ace-article-mini-grid{grid-template-columns: 1fr;}
  .ace-related-grid{grid-template-columns: 1fr;}
}


/* ACE static page templates 0.4.3 */
.ace-page-wrap{
  padding: clamp(22px, 4vw, 48px) 0 64px;
}

.ace-page-hero{
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(24px, 4vw, 42px);
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 10px);
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--acef-accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--acef-primary) 10%, var(--acef-bg)), color-mix(in srgb, var(--acef-surface) 92%, var(--acef-bg)));
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10));
  padding: clamp(26px, 5vw, 58px);
}

.ace-page-hero::after{
  content:"";
  position:absolute;
  right:-110px;
  bottom:-150px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acef-primary) 10%, transparent);
  pointer-events:none;
}

.ace-page-hero__copy{
  position:relative;
  z-index:1;
  max-width: 880px;
}

.ace-page-hero h1{
  margin: 0;
  max-width: 980px;
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.ace-page-hero p:not(.ace-blog-eyebrow){
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--acef-muted);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.ace-page-card{
  border: 1px solid var(--acef-border);
  border-radius: calc(var(--acef-radius, 18px) + 4px);
  background: var(--acef-surface);
  box-shadow: var(--acef-shadow, 0 18px 45px rgba(10,37,64,.08));
  padding: clamp(22px, 3vw, 34px);
}

.ace-page-split,
.ace-contact-layout{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.ace-page-card h2,
.ace-page-card h3{
  color: var(--acef-heading);
  font-family: var(--acef-font-heading, inherit);
  letter-spacing: -.025em;
}

.ace-page-card h2{margin:0 0 14px;font-size:clamp(1.55rem,2.4vw,2.25rem);line-height:1.1;}
.ace-page-card h3{margin:0 0 8px;font-size:1.16rem;}
.ace-page-card p{color:var(--acef-muted);line-height:1.7;}
.ace-page-card p:last-child{margin-bottom:0;}

.ace-page-stat-card dl{margin:0;display:grid;gap:16px;}
.ace-page-stat-card div{padding-bottom:16px;border-bottom:1px solid var(--acef-border);}
.ace-page-stat-card div:last-child{padding-bottom:0;border-bottom:0;}
.ace-page-stat-card dt{color:var(--acef-muted);font-size:.82rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.ace-page-stat-card dd{margin:4px 0 0;color:var(--acef-text);font-size:1.08rem;font-weight:850;}

.ace-page-values,
.ace-page-authors,
.ace-page-faq,
.ace-page-latest{
  margin-top: clamp(24px, 4vw, 42px);
}

.ace-page-value-grid,
.ace-page-author-grid,
.ace-page-faq-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ace-page-value,
.ace-page-author-card,
.ace-page-faq-grid article{
  border: 1px solid var(--acef-border);
  border-radius: var(--acef-radius, 18px);
  background: color-mix(in srgb, var(--acef-surface) 82%, var(--acef-bg));
  padding: 20px;
}

.ace-page-author-card img{
  display:block;
  width:72px;
  height:72px;
  border-radius:999px;
  margin-bottom:14px;
}

.ace-page-author-card h3{margin-bottom:8px;}
.ace-page-author-card p{font-size:.95rem;}

.ace-contact-card .btn{margin:8px 0 10px;}
.ace-contact-email{margin-top:12px;}
.ace-contact-notes ul{margin:12px 0 0;padding-left:1.2rem;color:var(--acef-muted);line-height:1.7;}
.ace-page-content-card{max-width:900px;margin:0 auto;}

body.acef-mode-dark .ace-page-hero,
body.acef-mode-dark .ace-page-card,
body.acef-mode-dark .ace-page-value,
body.acef-mode-dark .ace-page-author-card,
body.acef-mode-dark .ace-page-faq-grid article{
  background: color-mix(in srgb, var(--acef-surface) 88%, var(--acef-bg));
  border-color: var(--acef-border);
}

body.acef-mode-dark .ace-page-hero h1,
body.acef-mode-dark .ace-page-card h2,
body.acef-mode-dark .ace-page-card h3,
body.acef-mode-dark .ace-page-stat-card dd{
  color: var(--acef-text);
}

@media(max-width: 900px){
  .ace-page-split,
  .ace-contact-layout{grid-template-columns:1fr;}
  .ace-page-value-grid,
  .ace-page-author-grid,
  .ace-page-faq-grid{grid-template-columns:1fr;}
}

@media(max-width: 650px){
  .ace-page-wrap{padding-top:18px;}
  .ace-page-hero{padding:24px;}
  .ace-page-hero h1{font-size:clamp(2rem,12vw,3.2rem);}
  .ace-page-card{padding:20px;}
}

/* ACE Foundation 0.4.4: fresh-site design skin compatibility
   Supports ACE Site Setup design-profile v3 tokens while keeping the fixed layout. */
body.acef{
  background: var(--acef-background, var(--acef-bg, #fff)) !important;
  color: var(--acef-text, var(--acef-charcoal, #333)) !important;
  font-family: var(--acef-font-body, -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif);
}
body.acef h1,
body.acef h2,
body.acef h3,
body.acef .brand a,
body.acef .card__title,
body.acef .ace-home-hero h1,
body.acef .ace-home-section h2,
body.acef .ace-card__body h3,
body.acef .ace-review-card h3,
body.acef .ace-blog-hero h1,
body.acef .ace-blog-featured h2{
  font-family: var(--acef-font-heading, var(--acef-font-body, inherit));
}
body.acef .site-header,
body.acef .site-footer{
  background: color-mix(in srgb, var(--acef-surface, #fff) 94%, transparent);
  border-color: var(--acef-border, #e5e7eb);
}
body.acef .brand a,
body.acef .nav__list a,
body.acef .prose h1,
body.acef .prose h2,
body.acef .prose h3,
body.acef .widget__title,
body.acef .ace-home-section-head h2,
body.acef .ace-card__body h3,
body.acef .ace-review-card h3 a,
body.acef .ace-home-longform h2,
body.acef .ace-home-longform h3{
  color: var(--acef-heading, var(--acef-navy, #0A2540)) !important;
}
body.acef a,
body.acef .ace-card__link,
body.acef .ace-review-card__link,
body.acef .ace-home-eyebrow,
body.acef .ace-home-kicker,
body.acef .ace-review-card__eyebrow{
  color: var(--acef-accent, var(--acef-emerald, #1FA774));
}
body.acef .card,
body.acef .widget,
body.acef .ace-card--category,
body.acef .ace-review-card,
body.acef .ace-blog-featured,
body.acef .ace-blog-card,
body.acef .ace-home-longform{
  background: var(--acef-surface, #fff) !important;
  border: var(--acef-card-border, 1px solid var(--acef-border, #e5e7eb));
  border-radius: var(--acef-card-radius, var(--acef-radius, 18px));
  box-shadow: var(--acef-card-shadow-light, var(--acef-shadow, 0 18px 45px rgba(10,37,64,.10)));
  color: var(--acef-text, #333);
}
body.acef-mode-dark .card,
body.acef-appearance-dark .card,
body.acef-mode-dark .widget,
body.acef-mode-dark .ace-card--category,
body.acef-mode-dark .ace-review-card,
body.acef-appearance-dark .ace-review-card,
body.acef-mode-dark .ace-blog-featured,
body.acef-mode-dark .ace-blog-card,
body.acef-mode-dark .ace-home-longform{
  box-shadow: var(--acef-card-shadow-dark, 0 24px 70px rgba(0,0,0,.35));
}
body.acef .card__excerpt,
body.acef .meta,
body.acef .small,
body.acef .ace-card__body p,
body.acef .ace-review-card p,
body.acef .ace-home-longform p,
body.acef .ace-home-longform li,
body.acef .ace-blog-featured p,
body.acef .ace-blog-card p{
  color: var(--acef-muted, #667085) !important;
  opacity: 1 !important;
}
body.acef .ace-card__media,
body.acef .ace-review-card__placeholder,
body.acef .ace-blog-featured__placeholder{
  height: var(--acef-card-media-height, 160px);
  background:
    linear-gradient(135deg, var(--acef-primary, #0A2540), var(--acef-accent, #1FA774)),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acef-highlight, var(--acef-gold, #D4AF37)) 55%, transparent), transparent 60%) !important;
}
body.acef .btn--primary,
body.acef .ace-home-btn,
body.acef .ace-card__link,
body.acef .ace-review-card__link,
body.acef .wp-block-button__link,
body.acef .wp-element-button{
  border-radius: var(--acef-button-radius, 999px) !important;
  background: var(--acef-highlight, var(--acef-accent, #1FA774)) !important;
  color: var(--acef-button-text, #fff) !important;
  font-weight: var(--acef-button-weight, 850) !important;
  text-transform: var(--acef-button-case, none) !important;
  letter-spacing: var(--acef-button-letter, 0) !important;
  text-decoration: none !important;
}
body.acef .btn--primary:hover,
body.acef .ace-home-btn:hover,
body.acef .wp-block-button__link:hover,
body.acef .wp-element-button:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* Card skin tokens generated by ACE setup v3 */
body.acef-card-soft_editorial .ace-card--category,
body.acef-card-soft_editorial .ace-review-card,
.ace-home-card-soft_editorial .ace-card,
.ace-home-card-soft_editorial .ace-review-card{ border-radius: var(--acef-card-radius, 24px); }
body.acef-card-glow_dark .ace-card--category,
body.acef-card-glow_dark .ace-review-card,
.ace-home-card-glow_dark .ace-card,
.ace-home-card-glow_dark .ace-review-card{ box-shadow: var(--acef-card-shadow-dark, 0 26px 90px rgba(34,197,94,.14)); }
body.acef-card-paper_lift .ace-card--category,
body.acef-card-paper_lift .ace-review-card,
.ace-home-card-paper_lift .ace-card,
.ace-home-card-paper_lift .ace-review-card{ transform: rotate(-.15deg); }
body.acef-card-clean_border .ace-card--category,
body.acef-card-clean_border .ace-review-card,
.ace-home-card-clean_border .ace-card,
.ace-home-card-clean_border .ace-review-card{ box-shadow: 0 12px 34px rgba(15,23,42,.07); }
body.acef-card-rounded_soft .ace-card--category,
body.acef-card-rounded_soft .ace-review-card,
.ace-home-card-rounded_soft .ace-card,
.ace-home-card-rounded_soft .ace-review-card{ border-radius: calc(var(--acef-card-radius, 24px) + 8px); }
body.acef-card-organic .ace-card--category,
body.acef-card-organic .ace-review-card,
.ace-home-card-organic .ace-card,
.ace-home-card-organic .ace-review-card{ border-radius: 30px 18px 30px 18px; }
body.acef-card-accent_top_card .ace-card--category,
body.acef-card-accent_top_card .ace-review-card,
.ace-home-card-accent_top_card .ace-card,
.ace-home-card-accent_top_card .ace-review-card{ border-top: 6px solid var(--acef-highlight, var(--acef-accent)); }
body.acef-card-sharp_border .ace-card--category,
body.acef-card-sharp_border .ace-review-card,
.ace-home-card-sharp_border .ace-card,
.ace-home-card-sharp_border .ace-review-card{ border-radius: var(--acef-card-radius, 8px); }

/* Button skin tokens */
body.acef-button-bold_block .btn--primary,
body.acef-button-bold_block .ace-home-btn,
body.acef-button-bold_block .ace-card__link,
body.acef-button-bold_block .ace-review-card__link,
.ace-home-button-bold_block .ace-home-btn,
.ace-home-button-bold_block .ace-card__link,
.ace-home-button-bold_block .ace-review-card__link{ border-bottom: 4px solid rgba(0,0,0,.22); }
body.acef-button-squared .btn--primary,
body.acef-button-squared .ace-home-btn,
body.acef-button-squared .ace-card__link,
body.acef-button-squared .ace-review-card__link,
.ace-home-button-squared .ace-home-btn,
.ace-home-button-squared .ace-card__link,
.ace-home-button-squared .ace-review-card__link{ box-shadow: 8px 8px 0 rgba(0,0,0,.12); }
body.acef-button-rounded .btn--primary,
body.acef-button-rounded .ace-home-btn,
body.acef-button-rounded .ace-card__link,
body.acef-button-rounded .ace-review-card__link{ box-shadow: 0 12px 28px rgba(0,0,0,.12); }

/* Hero skin tokens */
body.acef .ace-home-hero{
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--acef-highlight, var(--acef-accent)) 24%, transparent), transparent 34%),
    linear-gradient(120deg, var(--acef-primary, #0A2540) 0%, color-mix(in srgb, var(--acef-primary, #0A2540) 70%, #000) 100%) !important;
}
body.acef .ace-home-hero::after{
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--acef-primary, #0A2540) 88%, #000), color-mix(in srgb, var(--acef-primary, #0A2540) 18%, transparent)),
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--acef-highlight, var(--acef-accent)) 28%, transparent), transparent 45%) !important;
}
body.acef-hero-spotlight .ace-home-hero::after,
.ace-home-hero-spotlight .ace-home-hero::after{ background: radial-gradient(circle at 28% 45%,rgba(255,255,255,.18),transparent 0 28%,rgba(0,0,0,.72) 72%),linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.34)) !important; }
body.acef-hero-warm_overlay .ace-home-hero::after,
.ace-home-hero-warm_overlay .ace-home-hero::after{ background: linear-gradient(90deg,rgba(70,42,24,.82),color-mix(in srgb, var(--acef-accent) 36%, transparent),rgba(0,0,0,.12)) !important; }
body.acef-hero-cool_gradient .ace-home-hero::after,
.ace-home-hero-cool_gradient .ace-home-hero::after{ background: linear-gradient(90deg,rgba(10,32,66,.82),color-mix(in srgb, var(--acef-accent) 34%, transparent),rgba(255,255,255,.08)) !important; }
body.acef-hero-bright_gradient .ace-home-hero::after,
.ace-home-hero-bright_gradient .ace-home-hero::after{ background: linear-gradient(90deg,rgba(22,29,72,.82),color-mix(in srgb, var(--acef-highlight) 30%, transparent),rgba(255,255,255,.10)) !important; }
body.acef-hero-soft_wash .ace-home-hero::after,
.ace-home-hero-soft_wash .ace-home-hero::after{ background: linear-gradient(90deg,color-mix(in srgb, var(--acef-primary) 80%, #000),color-mix(in srgb, var(--acef-accent) 28%, transparent),rgba(255,255,255,.10)) !important; }
body.acef-hero-angled_gradient .ace-home-hero::after,
.ace-home-hero-angled_gradient .ace-home-hero::after{ background: linear-gradient(105deg,color-mix(in srgb, var(--acef-primary) 88%, #000) 0 45%,color-mix(in srgb, var(--acef-highlight) 28%, transparent) 45% 70%,rgba(255,255,255,.08) 70%) !important; }
body.acef-hero-natural_gradient .ace-home-hero::after,
.ace-home-hero-natural_gradient .ace-home-hero::after{ background: linear-gradient(90deg,color-mix(in srgb, var(--acef-primary) 84%, #000),color-mix(in srgb, var(--acef-accent) 28%, transparent),rgba(255,255,255,.08)) !important; }


/* ACE design appearance aliases and safeguards */
body.acef-appearance-dark .ace-blog-hero,
body.acef-appearance-dark .ace-blog-featured,
body.acef-appearance-dark .ace-blog-pagination,
body.acef-appearance-dark .ace-blog-chip,
body.acef-appearance-dark .ace-article-hero,
body.acef-appearance-dark .ace-article-featured,
body.acef-appearance-dark .ace-article-card,
body.acef-appearance-dark .ace-author-box,
body.acef-appearance-dark .ace-article-aside-card,
body.acef-appearance-dark .ace-page-hero,
body.acef-appearance-dark .ace-page-card,
body.acef-appearance-dark .ace-page-value,
body.acef-appearance-dark .ace-page-author-card,
body.acef-appearance-dark .ace-page-faq-grid article{
  background: var(--acef-surface, #111827) !important;
  color: var(--acef-text, #EAF0F6) !important;
  border-color: var(--acef-border, #253044) !important;
}
body.acef-appearance-dark :where(.entry-title,.page-title,.archive-title,.ace-blog-hero h1,.ace-article-hero h1,.ace-page-hero h1,.ace-article-content h2,.ace-article-content h3,.ace-article-content h4){
  color: var(--acef-heading, #F8FAFC) !important;
}

/* ACE Foundation 0.4.7: mode-aware readability lock
   Important text uses validated semantic tokens. Decorative brand colours remain available
   for backgrounds, accents and hover details, but not for navigation/headings. */
body.acef :where(
  .brand a,
  .site-title a,
  .site-header a,
  .nav a,
  .nav__list a,
  .menu a,
  .main-navigation a,
  .ace-home-section-head h2,
  .ace-card--category h3,
  .ace-card__body h3,
  .ace-review-card h3,
  .ace-review-card h3 a,
  .ace-home-post-title,
  .ace-blog-card h2,
  .ace-blog-card h2 a,
  .ace-blog-featured h2,
  .ace-blog-featured h2 a,
  .ace-article-hero h1,
  .ace-page-hero h1,
  .entry-title,
  .page-title,
  .archive-title,
  .widget__title,
  .ace-article-aside-card h2,
  .ace-article-aside-card h3,
  .ace-entry-content h2,
  .ace-entry-content h3,
  .ace-entry-content h4,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4
){
  color: var(--acef-heading) !important;
  opacity: 1 !important;
}

body.acef :where(
  .ace-home-eyebrow,
  .ace-home-kicker,
  .ace-review-card__eyebrow,
  .meta,
  .small,
  .entry-meta,
  .ace-article-meta-row,
  .ace-card__body p,
  .ace-review-card p,
  .ace-blog-card p,
  .ace-blog-featured p,
  .widget p
){
  color: var(--acef-muted) !important;
  opacity: 1 !important;
}

body.acef .ace-home-hero :where(.ace-home-eyebrow,.ace-home-kicker,.ace-home-hero-kicker),
body.acef .ace-home-hero :where(h1,p){
  color: var(--acef-section-dark-text, #F8FAFC) !important;
  opacity: 1 !important;
}

body.acef .ace-home-hero .ace-home-btn,
body.acef :where(.btn--primary,.ace-home-btn,.ace-card__link,.ace-review-card__link,.wp-block-button__link,.wp-element-button){
  background: var(--acef-button-bg) !important;
  color: var(--acef-button-text) !important;
  border-color: color-mix(in srgb, var(--acef-button-bg) 80%, var(--acef-border)) !important;
}

body.acef :where(.ace-card--category,.ace-review-card,.ace-blog-card,.ace-blog-featured,.widget,.ace-article-aside-card,.ace-article-card,.ace-page-card){
  background: var(--acef-surface) !important;
  color: var(--acef-text) !important;
  border-color: var(--acef-border) !important;
}

body.acef-appearance-dark .site-header,
body.acef-mode-dark .site-header{
  background: color-mix(in srgb, var(--acef-surface) 92%, transparent) !important;
  border-bottom-color: var(--acef-border) !important;
}

body.acef-appearance-dark :where(.ace-home-section,.ace-home-latest-posts-section,.main),
body.acef-mode-dark :where(.ace-home-section,.ace-home-latest-posts-section,.main){
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}

body.acef-appearance-mixed .ace-home-hero :where(h1,p,.ace-home-eyebrow,.ace-home-kicker),
body.acef-mode-mixed .ace-home-hero :where(h1,p,.ace-home-eyebrow,.ace-home-kicker){
  color: var(--acef-section-dark-text, #F8FAFC) !important;
}


/* ACE Foundation 0.4.9: stronger AI-skin readability + logo sizing */
body.acef .custom-logo-link{
  display:inline-flex;
  align-items:center;
  max-width:min(280px, 42vw);
  line-height:0;
}
body.acef .custom-logo{
  display:block;
  width:auto;
  max-width:100%;
  max-height:58px;
  object-fit:contain;
}
body.acef .site-header,
body.acef .site-header .wrap,
body.acef .brand{
  min-height:72px;
}
body.acef :where(
  .brand a,.site-title a,.site-header a,.nav a,.nav__list a,.menu a,.main-navigation a,
  .ace-home-section-head h2,.ace-card h3,.ace-card h3 a,.ace-card--category h3,
  .ace-review-card h3,.ace-review-card h3 a,.ace-home-post-title,
  .entry-title,.page-title,.archive-title,.widget__title,
  .ace-entry-content h2,.ace-entry-content h3,.ace-entry-content h4,
  .entry-content h2,.entry-content h3,.entry-content h4
){
  color:var(--acef-heading, #102033) !important;
  text-shadow:none;
  opacity:1 !important;
}
body.acef-appearance-dark :where(
  .brand a,.site-title a,.site-header a,.nav a,.nav__list a,.menu a,.main-navigation a,
  .ace-home-section-head h2,.ace-card h3,.ace-card h3 a,.ace-card--category h3,
  .ace-review-card h3,.ace-review-card h3 a,.ace-home-post-title,
  .entry-title,.page-title,.archive-title,.widget__title,
  .entry-content h2,.entry-content h3,.entry-content h4
){
  color:var(--acef-heading, #F8FAFC) !important;
}

/* ACE Foundation 0.5.0: polished responsive header */
body.acef .site-header{
  width:100%;
  left:0;
  right:0;
}
body.acef .site-header .header-inner{
  max-width:min(1480px, calc(100vw - 48px));
  margin-left:auto;
  margin-right:auto;
  padding:16px 0;
  gap:28px;
}
body.acef .brand{
  flex:0 0 auto;
  min-width:0;
  max-width:320px;
}
body.acef .custom-logo-link{
  max-width:min(320px, 30vw);
}
body.acef .custom-logo{
  max-height:62px;
}
body.acef .nav{
  flex:1 1 auto;
  min-width:0;
}
body.acef .nav__list{
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:clamp(12px, 1.2vw, 22px);
}
body.acef .nav__list a{
  white-space:nowrap;
  text-transform:none;
  letter-spacing:0;
  font-size:clamp(.9rem, .82vw, 1rem);
  line-height:1.2;
  padding:8px 4px;
}
body.acef .nav__list a:hover{
  background:transparent;
  color:var(--acef-primary);
}

@media(max-width: 1180px){
  body.acef .nav-toggle{display:inline-flex;}
  body.acef #site-nav{display:none;}
  body.acef #site-nav.is-open{
    display:block;
    position:absolute;
    left:18px;
    right:18px;
    top: calc(100% + 10px);
    background:var(--acef-surface, #fff);
    border:1px solid var(--acef-border, #eee);
    border-radius:16px;
    box-shadow: var(--acef-shadow);
    padding:12px;
  }
  body.acef #site-nav.is-open .nav__list{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }
  body.acef #site-nav.is-open .nav__list a{
    display:flex;
    padding:12px 12px;
    border-radius:12px;
    white-space:normal;
  }
}

@media(max-width: 860px){
  body.acef .site-header .header-inner{
    max-width:100%;
    padding:12px 18px;
    min-height:74px;
    justify-content:center;
  }
  body.acef .brand{
    justify-content:center;
    text-align:center;
    max-width:calc(100vw - 120px);
  }
  body.acef .custom-logo-link{
    max-width:calc(100vw - 132px);
  }
  body.acef .custom-logo{
    max-height:54px;
  }
  body.acef .brand > a:not(.custom-logo-link){
    display:inline-block;
    max-width:calc(100vw - 132px);
    text-align:center;
  }
  body.acef .nav-toggle{
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    margin:0;
    color:var(--acef-heading);
    background:var(--acef-surface, #fff);
    border-color:var(--acef-border, #ddd);
  }
  body.acef #site-nav.is-open{
    left:18px;
    right:18px;
    top:calc(100% + 8px);
  }
}


/* ACE Foundation 0.5.1: full-bleed card media
   Keep all card images flush to the card edges. Text padding belongs in the body only. */
body.acef :where(.card,.ace-card,.ace-card--category,.ace-review-card,.ace-blog-card,.ace-article-card,.ace-page-card){
  overflow:hidden;
}
body.acef :where(.card,.ace-card,.ace-card--category,.ace-review-card,.ace-blog-card,.ace-article-card,.ace-page-card) > :where(.card__media,.ace-card__media,.ace-review-card__media,.ace-blog-card__media,.ace-article-card__media,.post-thumbnail):first-child{
  display:block;
  width:100%;
  max-width:none;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  overflow:hidden;
  line-height:0;
  background:var(--acef-primary, #0A2540);
}
body.acef :where(.card,.ace-card,.ace-card--category,.ace-review-card,.ace-blog-card,.ace-article-card,.ace-page-card) > :where(.card__media,.ace-card__media,.ace-review-card__media,.ace-blog-card__media,.ace-article-card__media,.post-thumbnail):first-child img,
body.acef :where(.card,.ace-card,.ace-card--category,.ace-review-card,.ace-blog-card,.ace-article-card,.ace-page-card) > :where(a.card__media,a.ace-card__media,a.ace-review-card__media,a.ace-blog-card__media,a.ace-article-card__media):first-child img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:var(--acef-card-media-height, 180px);
  aspect-ratio:16 / 9;
  object-fit:cover !important;
  object-position:center center;
  border-radius:0 !important;
  margin:0 !important;
  padding:0 !important;
}
body.acef .ace-review-card__media,
body.acef .card__media,
body.acef .ace-blog-card__media,
body.acef .ace-article-card__media{
  aspect-ratio:16 / 9;
  height:auto !important;
  min-height:0;
}
body.acef .ace-review-card__img,
body.acef .card__media img,
body.acef .ace-blog-card__img,
body.acef .ace-article-card__img,
body.acef .wp-post-image{
  border-radius:0 !important;
}
body.acef .ace-review-card__body,
body.acef .card__body,
body.acef .ace-blog-card__body,
body.acef .ace-article-card__body{
  padding:clamp(20px, 2.3vw, 26px);
}
/* If older generated markup placed the image inside the body, pull it out visually to the card width. */
body.acef .ace-review-card__body > :where(a,figure,.post-thumbnail):first-child:has(img),
body.acef .card__body > :where(a,figure,.post-thumbnail):first-child:has(img),
body.acef .ace-blog-card__body > :where(a,figure,.post-thumbnail):first-child:has(img){
  display:block;
  margin:calc(-1 * clamp(20px, 2.3vw, 26px)) calc(-1 * clamp(20px, 2.3vw, 26px)) clamp(18px, 2vw, 22px) !important;
  padding:0 !important;
  overflow:hidden;
  border-radius:0 !important;
  line-height:0;
}
body.acef .ace-review-card__body > :where(a,figure,.post-thumbnail):first-child:has(img) img,
body.acef .card__body > :where(a,figure,.post-thumbnail):first-child:has(img) img,
body.acef .ace-blog-card__body > :where(a,figure,.post-thumbnail):first-child:has(img) img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  aspect-ratio:16 / 9;
  height:auto !important;
  min-height:var(--acef-card-media-height, 180px);
  object-fit:cover !important;
  border-radius:0 !important;
  margin:0 !important;
}

/* ACE Foundation 0.5.2: compact sticky review CTA in article sidebar */
.ace-article-review-cta{
  overflow:hidden;
  border-color: color-mix(in srgb, var(--acef-button-bg, var(--acef-primary)) 22%, var(--acef-border, #e5e7eb));
}
.ace-article-review-cta__media{
  display:block;
  margin: -22px -22px 16px;
  background: color-mix(in srgb, var(--acef-surface, #fff) 92%, var(--acef-bg, #f8fafc));
}
.ace-article-review-cta__media img{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position:center;
  border:0;
  border-radius:0;
}
.ace-article-review-cta h2{
  font-size:1.08rem;
  line-height:1.22;
  margin-bottom:10px;
}
.ace-article-review-cta__score{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--acef-button-bg, var(--acef-primary)) 12%, var(--acef-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--acef-button-bg, var(--acef-primary)) 24%, var(--acef-border, #e5e7eb));
}
.ace-article-review-cta__score span{
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color: var(--acef-muted, #64748b);
}
.ace-article-review-cta__score strong{
  font-size:1.12rem;
  line-height:1;
  color: var(--acef-heading, #0f172a);
}
.ace-article-review-cta .ace-article-review-cta__button{
  display:block;
  width:100%;
  text-align:center;
  margin-top: 14px;
}
body.acef-mode-dark .ace-article-review-cta__score,
body.acef-appearance-dark .ace-article-review-cta__score{
  background: color-mix(in srgb, var(--acef-button-bg, var(--acef-primary)) 20%, var(--acef-surface, #111827));
}
@media(max-width:1100px){
  .ace-article-review-cta{grid-column:1 / -1;}
}

/* ACE Foundation 0.5.3: tidy compact sticky review CTA spacing */
body.acef .ace-article-review-cta{
  padding:22px !important;
  overflow:hidden;
}
body.acef .ace-article-review-cta > .ace-blog-eyebrow{
  display:block;
  position:relative;
  z-index:2;
  margin:0 0 10px !important;
  padding:0 !important;
  line-height:1.2;
}
body.acef .ace-article-review-cta__media{
  display:block;
  margin:0 -22px 18px !important;
  width:auto;
  overflow:hidden;
  line-height:0;
  background:color-mix(in srgb, var(--acef-surface, #fff) 92%, var(--acef-bg, #f8fafc));
}
body.acef .ace-article-review-cta__media img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  aspect-ratio:16 / 10;
  min-height:0 !important;
  height:auto !important;
  object-fit:cover !important;
  object-position:center;
  border:0 !important;
  border-radius:0 !important;
  margin:0 !important;
}
body.acef .ace-article-review-cta h2{
  font-size:1.04rem;
  line-height:1.22;
  margin:0 0 10px !important;
}
body.acef .ace-article-review-cta p:not(.ace-blog-eyebrow){
  margin:12px 0 0;
  font-size:.94rem;
  line-height:1.65;
}
body.acef .ace-article-review-cta__score{
  margin:10px 0 12px !important;
}
body.acef .ace-article-review-cta .ace-article-review-cta__button{
  margin-top:16px !important;
  white-space:normal;
}


/* ACE Foundation 0.5.4: give sticky article sidebar breathing room below sticky header */
@media (min-width: 1101px){
  body.acef{
    --acef-article-sticky-gap: 112px;
  }
  body.admin-bar.acef{
    --acef-article-sticky-gap: 144px;
  }
  body.acef .ace-article-aside{
    position: sticky;
    top: var(--acef-article-sticky-gap) !important;
    align-self: flex-start;
  }
}


/* ACE Foundation 0.5.5: theme-aware review CTA colours and mobile button labels.
   CTA buttons get their own semantic token so they can stand out without reverting to
   old hardcoded blue/green styling. */
body.acef{
  --acef-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-highlight, var(--acef-accent, #1FA774))));
  --acef-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff));
}

body.acef [data-cta="single-review"],
body.acef .ace-single-review-cta{
  background: var(--acef-surface, #fff) !important;
  color: var(--acef-text, #334155) !important;
  border: 1px solid var(--acef-border, #e5e7eb) !important;
  border-radius: var(--acef-card-radius, 18px) !important;
  box-shadow: var(--acef-card-shadow-light, 0 18px 50px rgba(15,23,42,.08)) !important;
}
body.acef [data-cta="single-review"] :where(h1,h2,h3,h4,.ace-single-review-cta__title){
  color: var(--acef-heading, #0f172a) !important;
}
body.acef [data-cta="single-review"] :where(p,.ace-single-review-cta__verdict){
  color: var(--acef-text, #334155) !important;
}
body.acef [data-cta="single-review"] :where(.ace-single-review-cta__label){
  color: var(--acef-primary, var(--acef-heading, #0f172a)) !important;
}
body.acef [data-cta="single-review"] :where(.ace-single-review-cta__score){
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #fff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary))) 72%, var(--acef-border, #e5e7eb)) !important;
}
body.acef [data-cta="single-review"] :where(a.ace-single-review-cta__button, a[href][rel*="sponsored"]),
body.acef .ace-article-review-cta .ace-article-review-cta__button{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #fff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary))) 80%, var(--acef-border, #e5e7eb)) !important;
  border-radius: var(--acef-button-radius, 999px) !important;
  font-weight: var(--acef-button-weight, 850) !important;
  text-decoration:none !important;
}
body.acef [data-cta="single-review"] :where(a.ace-single-review-cta__button, a[href][rel*="sponsored"]):hover,
body.acef .ace-article-review-cta .ace-article-review-cta__button:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}
body.acef [data-cta="single-review"] :where(figure,img){
  border-color: var(--acef-border, #e5e7eb) !important;
}
body.acef .ace-cta-label-mobile{ display:none; }
body.acef .ace-cta-label-desktop{ display:inline; }
@media(max-width:640px){
  body.acef .ace-cta-label-desktop{ display:none; }
  body.acef .ace-cta-label-mobile{ display:inline; }
  body.acef [data-cta="single-review"] :where(a.ace-single-review-cta__button, a[href][rel*="sponsored"]),
  body.acef .ace-article-review-cta .ace-article-review-cta__button{
    padding-left:14px !important;
    padding-right:14px !important;
    white-space:nowrap !important;
  }
}

/* ACE v0.5.6: theme-aware single review CTA hard override.
   Older generated posts may contain inline blue/green styles; these rules
   deliberately use high-specificity + !important so the site skin wins. */
:root{
  --acef-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-cta-text: var(--acef-cta-text, var(--acef-button-text, #ffffff));
}
.ace-single-review-cta .ace-single-review-cta__label,
[data-cta="single-review"] .ace-single-review-cta__label{
  color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
}
.ace-single-review-cta .ace-single-review-cta__score,
[data-cta="single-review"] .ace-single-review-cta__score,
body .ace-single-review-cta .ace-single-review-cta__score,
body [data-cta="single-review"] .ace-single-review-cta__score{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 72%, var(--acef-border, #e5e7eb)) !important;
}
.ace-single-review-cta .ace-single-review-cta__button,
[data-cta="single-review"] .ace-single-review-cta__button,
body .ace-single-review-cta .ace-single-review-cta__button,
body [data-cta="single-review"] .ace-single-review-cta__button{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 80%, var(--acef-border, #e5e7eb)) !important;
}
@media (max-width: 640px){
  .ace-single-review-cta .ace-cta-label-desktop,
  [data-cta="single-review"] .ace-cta-label-desktop{ display:none !important; }
  .ace-single-review-cta .ace-cta-label-mobile,
  [data-cta="single-review"] .ace-cta-label-mobile{ display:inline !important; }
  .ace-single-review-cta .ace-single-review-cta__button,
  [data-cta="single-review"] .ace-single-review-cta__button{
    white-space: nowrap;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ACE Foundation 0.5.7: legacy inline review CTA colour override.
   Some older generated review CTA blocks saved plain inline styles such as
   background:#2563eb or background:#16a34a without the newer CTA classes on
   the inner elements. These attribute selectors are deliberately scoped to
   data-cta="single-review" so they only affect ACE review CTA cards. */
body.acef [data-cta="single-review"] [style*="background:#2563eb"],
body.acef [data-cta="single-review"] [style*="background: #2563eb"],
body.acef [data-cta="single-review"] [style*="background-color:#2563eb"],
body.acef [data-cta="single-review"] [style*="background-color: #2563eb"],
body.acef [data-cta="single-review"] [style*="background:#1f6feb"],
body.acef [data-cta="single-review"] [style*="background: #1f6feb"],
body.acef [data-cta="single-review"] [style*="background:#16a34a"],
body.acef [data-cta="single-review"] [style*="background: #16a34a"],
body.acef [data-cta="single-review"] [style*="background-color:#16a34a"],
body.acef [data-cta="single-review"] [style*="background-color: #16a34a"]{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 72%, var(--acef-border, #e5e7eb)) !important;
}
body.acef [data-cta="single-review"] a[style*="background:#16a34a"],
body.acef [data-cta="single-review"] a[style*="background: #16a34a"],
body.acef [data-cta="single-review"] a[style*="background-color:#16a34a"],
body.acef [data-cta="single-review"] a[style*="background-color: #16a34a"]{
  border-radius: var(--acef-button-radius, 999px) !important;
  font-weight: var(--acef-button-weight, 850) !important;
  text-decoration: none !important;
}


/* ACE Foundation 0.5.8: final mobile/legacy CTA cleanup.
   Some posts were generated before CTA classes/spans were stable. These rules
   are deliberately scoped to single review CTAs and use broad legacy matches so
   old inline blue/green styles do not win on desktop or mobile. */
:root{
  --acef-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-cta-text: var(--acef-cta-text, var(--acef-button-text, #ffffff));
}

/* New/classed score bars. */
[data-cta="single-review"] .ace-single-review-cta__score,
body [data-cta="single-review"] .ace-single-review-cta__score,
body.acef [data-cta="single-review"] .ace-single-review-cta__score,
.ace-single-review-cta[data-cta="single-review"] .ace-single-review-cta__score{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 72%, var(--acef-border, #e5e7eb)) !important;
}

/* New/classed CTA buttons. */
[data-cta="single-review"] .ace-single-review-cta__button,
body [data-cta="single-review"] .ace-single-review-cta__button,
body.acef [data-cta="single-review"] .ace-single-review-cta__button,
.ace-single-review-cta[data-cta="single-review"] .ace-single-review-cta__button,
body.acef .ace-article-review-cta .ace-article-review-cta__button,
.ace-article-review-cta .ace-article-review-cta__button{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 80%, var(--acef-border, #e5e7eb)) !important;
  text-decoration:none !important;
}

/* Broad legacy inline colour overrides, including uppercase/rgb variants. */
[data-cta="single-review"] [style*="#2563eb" i],
[data-cta="single-review"] [style*="#1f6feb" i],
[data-cta="single-review"] [style*="#16a34a" i],
[data-cta="single-review"] [style*="37, 99, 235" i],
[data-cta="single-review"] [style*="22, 163, 74" i],
[data-cta="single-review"] [style*="rgb(37" i],
[data-cta="single-review"] [style*="rgb(22" i]{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 72%, var(--acef-border, #e5e7eb)) !important;
}

/* Desktop/mobile button labels for current markup. */
.ace-cta-label-mobile{ display:none !important; }
.ace-cta-label-desktop{ display:inline !important; }
@media (max-width: 640px){
  [data-cta="single-review"] .ace-cta-label-desktop,
  .ace-article-review-cta .ace-cta-label-desktop{ display:none !important; }
  [data-cta="single-review"] .ace-cta-label-mobile,
  .ace-article-review-cta .ace-cta-label-mobile{ display:inline !important; }

  [data-cta="single-review"] .ace-single-review-cta__button,
  .ace-article-review-cta .ace-article-review-cta__button{
    white-space: nowrap !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    line-height: 1.2 !important;
  }
  /* Legacy Amazon button text is normalised by assets/js/main.js. */
}

/* ACE Foundation 0.5.9: review CTA hardening.
   The previous theme builds updated CSS but the version constant was stale, so
   mobile browsers could keep the old blue/green CTA stylesheet cached. This
   block is deliberately broad but scoped to ACE single-review CTAs. */
body [data-cta="single-review"],
body .ace-single-review-cta[data-cta="single-review"]{
  --acef-review-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-review-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff));
}
body [data-cta="single-review"] .ace-single-review-cta__score,
body [data-cta="single-review"] [class*="score" i],
body [data-cta="single-review"] [style*="#2563eb" i],
body [data-cta="single-review"] [style*="#1f6feb" i],
body [data-cta="single-review"] [style*="37, 99, 235" i],
body [data-cta="single-review"] [style*="rgb(37" i],
body [data-cta="single-review"] [style*="rgba(37" i],
body [data-cta="single-review"][style*="#2563eb" i],
body [data-cta="single-review"][style*="#1f6feb" i]{
  background: var(--acef-review-cta-bg) !important;
  background-color: var(--acef-review-cta-bg) !important;
  color: var(--acef-review-cta-text) !important;
  border-color: color-mix(in srgb, var(--acef-review-cta-bg) 72%, var(--acef-border, #e5e7eb)) !important;
}
body [data-cta="single-review"] .ace-single-review-cta__button,
body [data-cta="single-review"] a[href],
body [data-cta="single-review"] [style*="#16a34a" i],
body [data-cta="single-review"] [style*="22, 163, 74" i],
body [data-cta="single-review"] [style*="rgb(22" i],
body [data-cta="single-review"] [style*="rgba(22" i]{
  background: var(--acef-review-cta-bg) !important;
  background-color: var(--acef-review-cta-bg) !important;
  color: var(--acef-review-cta-text) !important;
  border-color: color-mix(in srgb, var(--acef-review-cta-bg) 82%, var(--acef-border, #e5e7eb)) !important;
  text-decoration: none !important;
}
body .ace-article-review-cta .ace-article-review-cta__button{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #fff)) !important;
}
@media (max-width: 640px){
  body [data-cta="single-review"] .ace-cta-label-desktop{ display:none !important; }
  body [data-cta="single-review"] .ace-cta-label-mobile{ display:inline !important; }
  body [data-cta="single-review"] .ace-single-review-cta__button,
  body [data-cta="single-review"] a[href],
  body .ace-article-review-cta .ace-article-review-cta__button{
    white-space: nowrap !important;
    line-height: 1.15 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}


/* ACE Foundation 0.6.1: final review CTA normalisation.
   Fixes legacy saved review CTA blocks that used blue score bars / green buttons,
   and prevents the "OUR VERDICT" label from inheriting CTA bar backgrounds. */
:root{
  --acef-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-cta-text: var(--acef-cta-text, var(--acef-button-text, #ffffff));
}
body [data-cta="single-review"] .ace-single-review-cta__label,
body.acef [data-cta="single-review"] .ace-single-review-cta__label,
body [data-cta="single-review"] [class*="label"],
body.acef [data-cta="single-review"] [class*="label"]{
  background: transparent !important;
  background-color: transparent !important;
  color: var(--acef-heading, #16213a) !important;
  box-shadow: none !important;
}
body [data-cta="single-review"] .ace-single-review-cta__score,
body.acef [data-cta="single-review"] .ace-single-review-cta__score,
body [data-cta="single-review"] [class*="score"],
body.acef [data-cta="single-review"] [class*="score"]{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 72%, var(--acef-border, #e5e7eb)) !important;
}
body [data-cta="single-review"] a[href],
body.acef [data-cta="single-review"] a[href],
body .ace-article-review-cta .ace-article-review-cta__button,
body.acef .ace-article-review-cta .ace-article-review-cta__button{
  background: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  background-color: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  color: var(--acef-cta-text, var(--acef-button-text, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) 80%, var(--acef-border, #e5e7eb)) !important;
}
@media (max-width: 640px){
  body [data-cta="single-review"] a[href],
  body.acef [data-cta="single-review"] a[href],
  body .ace-article-review-cta .ace-article-review-cta__button,
  body.acef .ace-article-review-cta .ace-article-review-cta__button{
    white-space: nowrap !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: clamp(13px, 3.8vw, 15px) !important;
  }
}


/* ACE Foundation 0.6.1: Amazon CTA labels are rewritten by JS. Avoid pseudo-label duplication. */
[data-cta="single-review"] a.acef-amazon-cta-normalised,
.ace-article-review-cta a.acef-amazon-cta-normalised,
.ace-sidebar-review-cta a.acef-amazon-cta-normalised{
  white-space: nowrap !important;
}


/* ACE Foundation 0.6.2: comparison CTA cards use theme CTA colours, not legacy green/blue. */
body [data-cta="comparison"],
body.acef [data-cta="comparison"]{
  --acef-comparison-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-comparison-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff));
}
body [data-cta="comparison"] :where(.ace-comparison-cta__heading, h2, h3),
body.acef [data-cta="comparison"] :where(.ace-comparison-cta__heading, h2, h3){
  color: var(--acef-heading, #0f172a) !important;
}
body [data-cta="comparison"] :where(.ace-comparison-cta__intro, .ace-comparison-cta__verdict, p),
body.acef [data-cta="comparison"] :where(.ace-comparison-cta__intro, .ace-comparison-cta__verdict, p){
  color: var(--acef-text, #334155) !important;
}
body [data-cta="comparison"] :where(.ace-comparison-cta__label),
body.acef [data-cta="comparison"] :where(.ace-comparison-cta__label),
body [data-cta="comparison"] [style*="color:#2563eb" i],
body [data-cta="comparison"] [style*="color: #2563eb" i],
body.acef [data-cta="comparison"] [style*="color:#2563eb" i],
body.acef [data-cta="comparison"] [style*="color: #2563eb" i]{
  color: var(--acef-comparison-cta-bg) !important;
  background: transparent !important;
  background-color: transparent !important;
}
body [data-cta="comparison"] :where(.ace-comparison-cta__button),
body.acef [data-cta="comparison"] :where(.ace-comparison-cta__button),
body [data-cta="comparison"] a[href],
body.acef [data-cta="comparison"] a[href],
body [data-cta="comparison"] a[style*="#16a34a" i],
body.acef [data-cta="comparison"] a[style*="#16a34a" i],
body [data-cta="comparison"] a[style*="22, 163, 74" i],
body.acef [data-cta="comparison"] a[style*="22, 163, 74" i]{
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: var(--acef-comparison-cta-bg) !important;
  background-color: var(--acef-comparison-cta-bg) !important;
  color: var(--acef-comparison-cta-text) !important;
  border-color: color-mix(in srgb, var(--acef-comparison-cta-bg) 82%, var(--acef-border, #e5e7eb)) !important;
  text-decoration: none !important;
}
body [data-cta="comparison"] .ace-cta-label-mobile,
body.acef [data-cta="comparison"] .ace-cta-label-mobile{ display:none !important; }
body [data-cta="comparison"] .ace-cta-label-desktop,
body.acef [data-cta="comparison"] .ace-cta-label-desktop{ display:inline !important; }
@media (max-width: 640px){
  body [data-cta="comparison"] .ace-cta-label-desktop,
  body.acef [data-cta="comparison"] .ace-cta-label-desktop{ display:none !important; }
  body [data-cta="comparison"] .ace-cta-label-mobile,
  body.acef [data-cta="comparison"] .ace-cta-label-mobile{ display:inline !important; }
  body [data-cta="comparison"] a[href],
  body.acef [data-cta="comparison"] a[href]{
    white-space: nowrap !important;
    min-height: 46px;
  }
}


/* ACE Foundation 0.6.3: legacy comparison CTA colour fix.
   Some saved comparison CTA blocks pre-date data-cta="comparison" but still use
   .ace-comparison-cta / .ace-comparison-cta__button with inline green/blue styles.
   Treat those the same as new comparison CTAs. */
body .ace-comparison-cta,
body.acef .ace-comparison-cta,
body [class*="comparison"][class*="cta"],
body.acef [class*="comparison"][class*="cta"]{
  --acef-comparison-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-comparison-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff));
}
body .ace-comparison-cta :where(.ace-comparison-cta__heading, h2, h3),
body.acef .ace-comparison-cta :where(.ace-comparison-cta__heading, h2, h3){
  color: var(--acef-heading, #0f172a) !important;
}
body .ace-comparison-cta :where(.ace-comparison-cta__intro, .ace-comparison-cta__verdict, p),
body.acef .ace-comparison-cta :where(.ace-comparison-cta__intro, .ace-comparison-cta__verdict, p){
  color: var(--acef-text, #475569) !important;
}
body .ace-comparison-cta :where(.ace-comparison-cta__label),
body.acef .ace-comparison-cta :where(.ace-comparison-cta__label),
body .ace-comparison-cta [style*="color:#2563eb" i],
body .ace-comparison-cta [style*="color: #2563eb" i],
body .ace-comparison-cta [style*="color:rgb(37" i],
body .ace-comparison-cta [style*="color: rgb(37" i]{
  color: var(--acef-comparison-cta-bg) !important;
  background: transparent !important;
  background-color: transparent !important;
}
body .ace-comparison-cta :where(.ace-comparison-cta__button),
body.acef .ace-comparison-cta :where(.ace-comparison-cta__button),
body .ace-comparison-cta a[href],
body.acef .ace-comparison-cta a[href],
body .ace-comparison-cta a[style*="#16a34a" i],
body .ace-comparison-cta a[style*="22, 163, 74" i],
body .ace-comparison-cta a[style*="background:green" i],
body .ace-comparison-cta a[style*="background: green" i]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .35rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--acef-comparison-cta-bg) !important;
  background-color: var(--acef-comparison-cta-bg) !important;
  color: var(--acef-comparison-cta-text) !important;
  border-color: color-mix(in srgb, var(--acef-comparison-cta-bg) 82%, var(--acef-border, #e5e7eb)) !important;
  text-align: center !important;
}
body .ace-comparison-cta a[href] *,
body.acef .ace-comparison-cta a[href] *{
  color: inherit !important;
}
@media (max-width: 640px){
  body .ace-comparison-cta a[href],
  body.acef .ace-comparison-cta a[href]{
    min-height: 46px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: normal !important;
  }
}

/* ACE Foundation 0.6.4: harden legacy comparison CTA styling.
   Some saved posts used a plain Quick Buying Links block with green inline buttons
   before the data-cta/class hooks existed. JS marks those containers with
   .ace-comparison-cta; these rules then make them theme-aware. */
body .ace-comparison-cta,
body.acef .ace-comparison-cta,
body [data-cta="comparison"],
body.acef [data-cta="comparison"]{
  --acef-comparison-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb)));
  --acef-comparison-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff));
}
body .ace-comparison-cta a[href],
body.acef .ace-comparison-cta a[href],
body [data-cta="comparison"] a[href],
body.acef [data-cta="comparison"] a[href]{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  min-height:48px !important;
  padding:14px 18px !important;
  border-radius:12px !important;
  background:var(--acef-comparison-cta-bg) !important;
  background-color:var(--acef-comparison-cta-bg) !important;
  color:var(--acef-comparison-cta-text) !important;
  border-color:color-mix(in srgb, var(--acef-comparison-cta-bg) 82%, var(--acef-border, #e5e7eb)) !important;
  text-decoration:none !important;
  text-align:center !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  white-space:normal !important;
}
body .ace-comparison-cta a[href] *,
body.acef .ace-comparison-cta a[href] *,
body [data-cta="comparison"] a[href] *,
body.acef [data-cta="comparison"] a[href] *{
  color:inherit !important;
}
body .ace-comparison-cta :where(.ace-comparison-cta__label),
body.acef .ace-comparison-cta :where(.ace-comparison-cta__label),
body [data-cta="comparison"] :where(.ace-comparison-cta__label),
body.acef [data-cta="comparison"] :where(.ace-comparison-cta__label),
body .ace-comparison-cta [style*="color:#2563eb" i],
body .ace-comparison-cta [style*="color: #2563eb" i],
body .ace-comparison-cta [style*="rgb(37" i],
body [data-cta="comparison"] [style*="color:#2563eb" i],
body [data-cta="comparison"] [style*="color: #2563eb" i],
body [data-cta="comparison"] [style*="rgb(37" i]{
  color:var(--acef-comparison-cta-bg) !important;
  background:transparent !important;
  background-color:transparent !important;
}
@media (max-width:640px){
  body .ace-comparison-cta a[href],
  body.acef .ace-comparison-cta a[href],
  body [data-cta="comparison"] a[href],
  body.acef [data-cta="comparison"] a[href]{
    min-height:46px !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
}


/* ACE Foundation 0.6.5: force comparison CTAs to theme colours even when saved blocks use legacy inline green styles. */
[data-cta="comparison"],
.ace-comparison-cta{
  --acef-comparison-cta-bg: var(--acef-cta-bg, var(--acef-button-bg, var(--acef-primary, #1f6feb))) !important;
  --acef-comparison-cta-text: var(--acef-cta-text, var(--acef-button-text, #fff)) !important;
}
[data-cta="comparison"] a,
[data-cta="comparison"] a:link,
[data-cta="comparison"] a:visited,
[data-cta="comparison"] .wp-block-button__link,
.ace-comparison-cta a,
.ace-comparison-cta a:link,
.ace-comparison-cta a:visited,
.ace-comparison-cta .wp-block-button__link{
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  background: var(--acef-comparison-cta-bg) !important;
  background-color: var(--acef-comparison-cta-bg) !important;
  color: var(--acef-comparison-cta-text) !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-align: center !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}
[data-cta="comparison"] a *,
.ace-comparison-cta a *{
  color: inherit !important;
}
[data-cta="comparison"] :where(.ace-comparison-cta__label, strong, b),
.ace-comparison-cta :where(.ace-comparison-cta__label, strong, b){
  background: transparent !important;
}
@media (max-width:640px){
  [data-cta="comparison"] a,
  .ace-comparison-cta a{
    white-space: nowrap !important;
    font-size: 15px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
