: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:60px; width:auto}

.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.7
   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-text: var(--acef-charcoal, #333);
  --acef-muted: #667085;
  --acef-primary: var(--acef-navy, #0A2540);
  --acef-accent: var(--acef-gold, #D4AF37);
  --acef-border: #E5E7EB;
}

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); }

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-primary);
}

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-primary);
  color: var(--acef-surface);
}
body.acef .btn--primary:hover,
body.acef .ace-home-btn:hover{
  background: var(--acef-accent);
  color: var(--acef-bg);
}

body.acef .btn--ghost{
  border-color: var(--acef-border);
  color: var(--acef-primary);
}
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-primary) !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{
  background: var(--acef-bg) !important;
  color: var(--acef-text) !important;
}
body.acef-mode-dark .site-header{
  background: color-mix(in srgb, var(--acef-surface) 88%, transparent);
}
body.acef-mode-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-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;
}
.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-primary);
  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-primary);
  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-primary) !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-primary) !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-primary);
  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-primary);
  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-primary);
  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-primary);
  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-primary);
  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-primary);
  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-primary);
  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;}
}
