/* AltaPoint AEO Check — premium dark, mobile-first. Palette mirrors the AI Scan plugin / Executive Roadmap. */
.aeocheck{
  --bg:#0D0B09; --panel:#171310; --panel2:#1E1913; --line:#3A3122;
  --gold:#C6A15B; --cream:#F3EDE2; --muted:#B3A68D; --ember:#E4572E; --ember-d:#C7431F;
  --red:#DE4B39; --blue:#5B8DC9; --green:#43A673;
  background:var(--bg); color:var(--cream);
  font-family:Inter,system-ui,-apple-system,sans-serif; font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.aeocheck *{margin:0;padding:0;box-sizing:border-box}
.aeocheck a{color:var(--gold)}
.aeocheck-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.aeocheck-topbar{display:flex;justify-content:space-between;align-items:center;max-width:820px;margin:0 auto;padding:20px 22px 16px;border-bottom:1px solid var(--line)}
.aeocheck-brand{font-weight:700;letter-spacing:.22em;font-size:13px;color:var(--cream)}
.aeocheck-brand span{color:var(--gold)}
.aeocheck-loc{font-size:12px;letter-spacing:.14em;color:var(--muted)}
.aeocheck-wrap{max-width:820px;margin:0 auto;padding:38px 22px 72px}
.aeocheck-hp{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;overflow:hidden}
.aeocheck-missing{max-width:820px;margin:40px auto;padding:0 22px;color:var(--muted)}

/* ---------- hero / tool ---------- */
.aeocheck-eyebrow{font-size:12px;font-weight:600;letter-spacing:.24em;color:var(--gold)}
.aeocheck-h1{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:clamp(32px,7vw,50px);line-height:1.1;margin-top:14px}
.aeocheck-h1 em{color:var(--gold);font-style:italic}
.aeocheck-lede{margin-top:16px;color:var(--muted);font-size:17px;max-width:62ch}
.aeocheck-form{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}
.aeocheck-form input{flex:1 1 240px;background:var(--panel);border:1px solid var(--line);border-radius:999px;color:var(--cream);padding:16px 22px;font-size:16.5px;font-family:inherit;min-height:54px}
.aeocheck-form input:focus{outline:none;border-color:var(--gold)}
.aeocheck-form .aeocheck-btn{flex:0 1 auto;width:auto;padding-left:30px;padding-right:30px}
.aeocheck-fineprint{margin-top:14px;color:var(--muted);font-size:13px}
.aeocheck-count{margin-top:8px;color:var(--gold);font-size:13.5px;font-weight:600;letter-spacing:.04em}
.aeocheck-sample{margin-top:8px;color:var(--muted);font-size:14px}

/* ---------- buttons ---------- */
.aeocheck-btn{display:block;text-align:center;text-decoration:none;border-radius:999px;padding:17px 22px;font-weight:700;font-size:17px;border:none;cursor:pointer;width:100%;font-family:inherit;min-height:54px}
.aeocheck-btn-primary{background:var(--ember);color:#fff}
.aeocheck a.aeocheck-btn-primary{color:#fff}
.aeocheck a.aeocheck-btn-primary:hover,.aeocheck a.aeocheck-btn-primary:focus{color:#fff}
.aeocheck-btn-primary:active{background:var(--ember-d)}
.aeocheck-btn-primary:disabled{opacity:.45;cursor:not-allowed}
.aeocheck-btn-secondary{border:1px solid var(--gold);color:var(--gold);background:transparent;margin-top:12px;font-weight:600;font-size:15.5px;padding:15px 20px}
.aeocheck-btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--line);font-weight:600;width:auto;padding:13px 20px;min-height:48px;font-size:15px}

/* ---------- progress / errors ---------- */
.aeocheck-progress{margin-top:34px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px}
.aeocheck-spinner{width:40px;height:40px;margin:0 auto 18px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--gold);animation:aeocheck-spin .9s linear infinite}
@keyframes aeocheck-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.aeocheck-spinner{animation-duration:2.4s}}
.aeocheck-steps{list-style:none;max-width:320px;margin:0 auto}
.aeocheck-steps li{padding:7px 0 7px 30px;position:relative;color:#7d7260;font-size:15px}
.aeocheck-steps li::before{content:"";position:absolute;left:2px;top:13px;width:12px;height:12px;border-radius:50%;border:2px solid #7d7260}
.aeocheck-steps li.active{color:var(--cream)}
.aeocheck-steps li.active::before{border-color:var(--gold);background:var(--gold)}
.aeocheck-steps li.done{color:var(--muted)}
.aeocheck-steps li.done::before{border-color:var(--green);background:var(--green)}
.aeocheck-error{margin-top:20px;background:#2A140C;border:1px solid var(--ember);color:#F3C4B2;border-radius:12px;padding:16px 18px;font-size:15px}
.aeocheck-error .aeocheck-btn{margin-top:14px}

/* ---------- report hero / dial ---------- */
.aeocheck-report{animation:aeocheck-in .38s ease both}
@keyframes aeocheck-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.aeocheck-report{animation:none}}
.aeocheck-hero{text-align:center;margin-top:26px}
.aeocheck-dial{position:relative;width:min(78vw,340px);margin:10px auto 0}
.aeocheck-dial-svg{width:100%;height:auto;display:block}
.aeocheck-dial-arc{transition:stroke-dashoffset 1s ease}
@media (prefers-reduced-motion: reduce){.aeocheck-dial-arc{transition:none}}
.aeocheck-dial-num{position:absolute;left:0;right:0;bottom:2px;text-align:center}
.aeocheck-score-num{font-family:Fraunces,Georgia,serif;font-size:clamp(52px,14vw,76px);font-weight:600;line-height:1;color:var(--cream)}
.aeocheck-score-max{font-size:20px;color:var(--muted);margin-left:2px}
.aeocheck-band{font-family:Fraunces,Georgia,serif;font-size:clamp(22px,5.4vw,30px);font-weight:600;margin-top:10px}
.aeocheck-report-site{color:var(--muted);font-size:14.5px;margin-top:6px;word-break:break-all}
.aeocheck-readiness{margin:16px auto 0;max-width:56ch;color:var(--gold);font-size:13.5px;font-weight:600;letter-spacing:.02em;border:1px solid var(--line);border-radius:999px;padding:9px 16px;display:inline-block}

/* ---------- sections ---------- */
.aeocheck-section{margin-top:46px}
.aeocheck-sec-head{display:flex;align-items:baseline;gap:14px;border-bottom:1px solid var(--line);padding-bottom:12px}
.aeocheck-sec-num{font-family:Fraunces,Georgia,serif;font-style:italic;color:var(--gold);font-size:20px}
.aeocheck-sec-title{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:clamp(23px,5vw,31px)}
.aeocheck-sec-title em{color:var(--gold);font-style:italic}
.aeocheck-note{color:var(--muted);font-size:14.5px;margin-top:16px}
.aeocheck-note strong{color:var(--cream)}

/* ---------- categories ---------- */
.aeocheck-cats{margin-top:18px;display:grid;gap:14px}
.aeocheck-cat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.aeocheck-cat-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.aeocheck-cat-name{font-weight:600;font-size:15.5px}
.aeocheck-cat-pts{font-family:Fraunces,Georgia,serif;font-size:19px;font-weight:600;color:var(--cream);white-space:nowrap}
.aeocheck-bar{height:9px;background:#241D15;border-radius:99px;margin-top:10px;overflow:hidden}
.aeocheck-bar-fill{height:100%;border-radius:99px}
.aeocheck-cat-verdict{color:var(--muted);font-size:14px;margin-top:9px}

/* ---------- fix list ---------- */
.aeocheck-fix{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-top:14px}
.aeocheck-fix-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.aeocheck-fix-pts{font-weight:700;color:var(--gold);font-size:14px;letter-spacing:.03em}
.aeocheck-fix-diff{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;border:1px solid var(--line);border-radius:999px;padding:3px 10px}
.aeocheck-fix p{margin-top:9px;font-size:15px;color:var(--muted)}
.aeocheck-fix p strong{color:var(--cream)}

/* ---------- evidence ---------- */
.aeocheck-evidence{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.aeocheck-evidence summary{cursor:pointer;font-weight:600;font-size:15px;min-height:44px;display:flex;align-items:center}
.aeocheck-evidence pre{margin-top:12px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:14px;font-size:12px;line-height:1.55;color:var(--muted);overflow-x:auto;white-space:pre-wrap;word-break:break-word}

/* ---------- gate ---------- */
.aeocheck-field{margin-top:16px}
.aeocheck-field label{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.aeocheck-field input{width:100%;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--cream);padding:15px 16px;font-size:16.5px;font-family:inherit;min-height:52px}
.aeocheck-field input:focus{outline:none;border-color:var(--gold)}
.aeocheck-gate-form .aeocheck-btn{margin-top:20px}
.aeocheck-gate-done{background:var(--panel);border:1px solid var(--green);border-radius:14px;padding:18px 20px;margin-top:16px;color:var(--cream);font-size:15px}

/* ---------- CTA / share / footer ---------- */
.aeocheck-cta-block .aeocheck-btn-primary{margin-top:20px}
.aeocheck-share{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}
.aeocheck-copied{color:var(--green);font-size:14px;font-weight:600}
.aeocheck-footer{margin-top:54px;border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font-size:13.5px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.aeocheck-footer a{color:var(--gold);text-decoration:none}

/* ---------- sticky mobile bar ---------- */
.aeocheck-sticky{display:none}
@media (max-width:720px){
  .aeocheck-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9990;background:rgba(13,11,9,.96);border-top:1px solid var(--line);padding:10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px);align-items:center;justify-content:space-between;gap:12px}
  .aeocheck-sticky-score{font-weight:700;font-size:15px;color:var(--cream)}
  .aeocheck-sticky-cta{background:var(--ember);color:#fff;text-decoration:none;border-radius:999px;padding:12px 20px;font-weight:700;font-size:15px;min-height:48px;display:flex;align-items:center}
  .aeocheck-saved,.aeocheck-report{padding-bottom:76px}
}

/* ---------- FAQ shortcode ---------- */
.aeocheck-faq{max-width:820px;margin:0 auto}
.aeocheck-faq-item{border-bottom:1px solid var(--line);padding:6px 0}
.aeocheck-faq-item summary{cursor:pointer;font-weight:600;font-size:16.5px;padding:14px 0;min-height:48px}
.aeocheck-faq-item p{color:var(--muted);font-size:15px;padding:0 0 16px;max-width:66ch}

/* ---------- cascade shield (Hello Elementor reset.css, 2026-10-20 lesson) ----------
   reset.css loads after plugin CSS and styles buttons via [type=button]/[type=submit]
   at 0-1-0, tying class-only rules and winning on order. button.-prefixed copies
   below (0-1-1) re-assert the plugin values order-independently. */
button.aeocheck-btn{display:block;width:100%;border:none;border-radius:999px;padding:17px 22px;font-weight:700;font-size:17px;min-height:54px}
button.aeocheck-btn-primary{background:var(--ember);color:#fff}
button.aeocheck-btn-primary:hover,button.aeocheck-btn-primary:focus{background:var(--ember);color:#fff}
button.aeocheck-btn-secondary{border:1px solid var(--gold);color:var(--gold);background:transparent;font-weight:600;font-size:15.5px;padding:15px 20px}
button.aeocheck-btn-secondary:hover,button.aeocheck-btn-secondary:focus{border:1px solid var(--gold);color:var(--gold);background:transparent}
button.aeocheck-btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--line);font-weight:600;width:auto;padding:13px 20px;min-height:48px;font-size:15px}
button.aeocheck-btn-ghost:hover,button.aeocheck-btn-ghost:focus{background:transparent;color:var(--muted);border:1px solid var(--line)}

/* ---------- print (report PDF via print stylesheet) ---------- */
@media print{
  .aeocheck{background:#fff;color:#16120E}
  .aeocheck *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .aeocheck-sticky,.aeocheck-share,.aeocheck-gate-form,.aeocheck-spinner{display:none!important}
  .aeocheck-cat,.aeocheck-fix,.aeocheck-evidence{background:#fff;border-color:#ccc}
  .aeocheck-note,.aeocheck-cat-verdict,.aeocheck-fix p,.aeocheck-report-site{color:#444}
}

/* ==========================================================================
   v1.1 DESIGN REWORK — full-page Midnight shell + landing section system.
   Palette (locked): bg #0D0B09, panels #171310 / #1E1913, gold hairline
   #3A3122, ivory #F6F1E8, champagne gold #C6A15B, ember #E4572E (CTA only).
   Type: Fraunces display + Inter body (same Google Fonts enqueue as the
   AI Scan plugin). All pre-v1.1 class names are kept; this block restyles
   and extends, it never renames.
   ========================================================================== */
.aeocheck{--cream:#F6F1E8;--ivory:#F6F1E8}

/* ---------- page shell: body.apdark-page (Hello Elementor canvas) ----------
   Specificity care: body.apdark-page + wrapper class beats the theme's
   plain class rules; backgrounds are forced transparent so the dark body
   shows through every canvas layer instead of white theme panels. */
body.apdark-page{background:#0D0B09;color:#F6F1E8;padding-bottom:110px}
body.apdark-page a{color:#C6A15B}
body.apdark-page .elementor,
body.apdark-page .page-content,
body.apdark-page .entry-content,
body.apdark-page .site-main,
body.apdark-page .content-area,
body.apdark-page #content,
body.apdark-page main,
body.apdark-page article,
body.apdark-page .elementor-section,
body.apdark-page .elementor-container,
body.apdark-page .elementor-widget-container{background:transparent!important;background-color:transparent!important;color:inherit}
body.apdark-page .entry-title,
body.apdark-page h1.entry-title{color:#F6F1E8}

/* ---------- landing section system (inside .aeocheck) ---------- */
.aeocheck-landing{max-width:820px;margin:0 auto;padding:6px 22px 26px;box-sizing:border-box}
.aeocheck-landing *, .aeocheck-landing *::before, .aeocheck-landing *::after{box-sizing:border-box}
.aeocheck-kicker{font-size:12px;font-weight:600;letter-spacing:.24em;color:var(--gold)}
.aeocheck-h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:clamp(26px,5.6vw,38px);line-height:1.15;margin-top:12px;color:var(--cream)}
.aeocheck-h2 em{color:var(--gold);font-style:italic}
.aeocheck-landing-sec{margin-top:64px}
.aeocheck-landing-lede{margin-top:14px;color:var(--muted);font-size:16px;max-width:64ch}
.aeocheck-landing img{max-width:100%;height:auto}

/* sample report strip */
.aeocheck-samplestrip{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:var(--panel2);border:1px solid var(--gold);border-radius:18px;padding:24px;margin-top:10px}
.aeocheck-samplestrip-score{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:46px;line-height:1;color:var(--gold);white-space:nowrap}
.aeocheck-samplestrip-score span{font-size:19px;color:var(--muted)}
.aeocheck-samplestrip-body{flex:1 1 300px;min-width:0}
.aeocheck-samplestrip-text{margin-top:8px;color:var(--muted);font-size:15px;max-width:52ch}
.aeocheck-samplestrip-text strong{color:var(--cream)}
.aeocheck .aeocheck-samplestrip-link{width:auto;flex:0 1 auto;margin-left:auto;text-decoration:none}
button.aeocheck-samplestrip-link{width:auto}

/* how it works — step cards */
.aeocheck-stepcards{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
@media (min-width:821px){.aeocheck-stepcards{grid-template-columns:repeat(3,1fr)}}
.aeocheck-stepcard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px 22px;min-width:0}
.aeocheck-stepcard-num{font-family:Fraunces,Georgia,serif;font-style:italic;font-weight:600;font-size:36px;line-height:1;color:var(--gold)}
.aeocheck-stepcard-title{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:20px;line-height:1.25;margin-top:14px;color:var(--cream)}
.aeocheck-stepcard p{margin-top:10px;color:var(--muted);font-size:14.5px}

/* what we check — rubric cards */
.aeocheck-rubric-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
@media (min-width:641px){.aeocheck-rubric-grid{grid-template-columns:repeat(2,1fr)}}
.aeocheck-rubric-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}
.aeocheck-rubric-pts{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:38px;line-height:1;color:var(--gold)}
.aeocheck-rubric-pts span{font-size:15px;color:var(--muted);margin-left:5px;letter-spacing:.06em}
.aeocheck-rubric-name{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:20px;line-height:1.25;margin-top:12px;color:var(--cream)}
.aeocheck-rubric-line{margin-top:9px;color:var(--muted);font-size:14.5px}

/* score bands — visual scale (semantic score colors live ONLY here) */
.aeocheck-bandscale{display:flex;gap:6px;margin-top:28px;max-width:100%}
.aeocheck-bandseg{flex:var(--grow,1) 1 0;min-width:0}
.aeocheck-bandseg-bar{height:18px;border-radius:6px}
.aeocheck-bandseg--red .aeocheck-bandseg-bar{background:#DE4B39}
.aeocheck-bandseg--amber .aeocheck-bandseg-bar{background:#C6A15B}
.aeocheck-bandseg--blue .aeocheck-bandseg-bar{background:#5B8DC9}
.aeocheck-bandseg--green .aeocheck-bandseg-bar{background:#43A673}
.aeocheck-bandseg-range{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px;color:var(--cream);margin-top:12px}
.aeocheck-bandseg-label{font-weight:600;font-size:14px;color:var(--cream);margin-top:2px}
.aeocheck-bandseg-note{color:var(--muted);font-size:13px;margin-top:5px}
@media (max-width:720px){
  .aeocheck-bandscale{flex-direction:column;gap:18px}
  .aeocheck-bandseg{flex:none;width:100%}
}

/* who fixes this — soft AltaPoint panel */
.aeocheck-whofix-panel{background:var(--panel2);border:1px solid var(--line);border-radius:18px;padding:30px 26px}
.aeocheck-whofix-panel p{margin-top:14px;color:var(--muted);font-size:15.5px;max-width:62ch}
.aeocheck-whofix-panel p strong{color:var(--cream)}
.aeocheck-whofix-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.aeocheck-whofix-ctas .aeocheck-btn{width:auto;flex:1 1 250px;margin-top:0}
.aeocheck-whofix-ctas .aeocheck-btn-secondary{margin-top:0}

/* related tools — link cards */
.aeocheck-related-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
@media (min-width:821px){.aeocheck-related-grid{grid-template-columns:repeat(3,1fr)}}
.aeocheck-relcard{display:block;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;text-decoration:none;min-width:0}
.aeocheck-relcard:hover,.aeocheck-relcard:focus{border-color:var(--gold)}
.aeocheck-relcard-title{display:block;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:19px;line-height:1.3;color:var(--cream)}
.aeocheck-relcard-text{display:block;margin-top:9px;color:var(--muted);font-size:14.5px}
.aeocheck-relcard-arrow{display:block;margin-top:14px;color:var(--gold);font-weight:600;font-size:14.5px}

/* report polish: category rows + fix items read as designed cards/bars */
.aeocheck-cat-card{border-radius:16px;padding:20px 22px}
.aeocheck-cat-card .aeocheck-bar{height:10px}
.aeocheck-fix-card{border-radius:16px;padding:20px 22px}

/* FAQ shortcode — styled panels wherever the shortcode lands.
   Explicit hex values (not .aeocheck-scoped vars) so the items render
   in the Midnight system even outside the .aeocheck wrapper. */
.aeocheck-faq{max-width:820px;margin:0 auto;padding:6px 22px 44px;box-sizing:border-box;font-family:Inter,system-ui,-apple-system,sans-serif}
.aeocheck-faq *{box-sizing:border-box}
.aeocheck-faq-item{background:#171310;border:1px solid #3A3122;border-radius:14px;padding:4px 20px;margin-top:12px}
.aeocheck-faq-item summary{cursor:pointer;font-weight:600;font-size:16.5px;color:#F6F1E8;padding:15px 0;min-height:48px}
.aeocheck-faq-item p{color:#B3A68D;font-size:15px;padding:0 0 17px;max-width:66ch;margin:0}

/* ---------- directory system: .apdark (Trades API Directory, /apis/) ----------
   The coordinator wraps published directory HTML in <div class="apdark">.
   Self-contained hex values so it styles correctly on any dark page. */
.apdark{--bg:#0D0B09;--panel:#171310;--panel2:#1E1913;--line:#3A3122;--gold:#C6A15B;--ivory:#F6F1E8;--muted:#B3A68D;--ember:#E4572E;
  color:#F6F1E8;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.65;
  max-width:900px;margin:0 auto;padding:38px 22px 26px;box-sizing:border-box;-webkit-font-smoothing:antialiased}
.apdark *, .apdark *::before, .apdark *::after{box-sizing:border-box}
.apdark img{max-width:100%;height:auto}
.apdark h1{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:clamp(32px,7vw,48px);line-height:1.12;color:#F6F1E8;margin:0}
.apdark h1 em{color:#C6A15B;font-style:italic}
.apdark h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:clamp(24px,5vw,32px);line-height:1.2;color:#F6F1E8;margin:46px 0 0;padding-bottom:11px;border-bottom:1px solid #3A3122}
.apdark h2 em{color:#C6A15B;font-style:italic}
.apdark h3{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:20px;line-height:1.3;color:#F6F1E8;margin:28px 0 0}
.apdark p{margin:14px 0 0;color:#D9D0BC;max-width:68ch}
.apdark p strong, .apdark li strong{color:#F6F1E8}
.apdark a{color:#C6A15B;text-underline-offset:3px}
.apdark a:hover, .apdark a:focus{color:#F6F1E8}
.apdark ul, .apdark ol{margin:14px 0 0;padding-left:22px;color:#D9D0BC}
.apdark li{margin-top:7px}
.apdark li::marker{color:#C6A15B;font-weight:600}
.apdark hr{border:none;border-top:1px solid #3A3122;margin:38px 0 0}
.apdark blockquote{background:#171310;border:1px solid #3A3122;border-left:3px solid #C6A15B;border-radius:12px;padding:18px 20px;margin:20px 0 0;color:#D9D0BC}
.apdark blockquote p{margin-top:0}
.apdark code{background:#1E1913;border:1px solid #3A3122;border-radius:6px;padding:1px 6px;font-size:13.5px;color:#F6F1E8}
.apdark pre{background:#171310;border:1px solid #3A3122;border-radius:12px;padding:16px;overflow-x:auto;margin-top:16px}
.apdark pre code{background:none;border:none;padding:0}
.apdark table{width:100%;border-collapse:separate;border-spacing:0;background:#171310;border:1px solid #3A3122;border-radius:14px;overflow:hidden;margin-top:20px;font-size:14.5px}
.apdark th{background:#1E1913;color:#F6F1E8;text-align:left;font-weight:600;letter-spacing:.03em;padding:13px 15px;border-bottom:1px solid #3A3122}
.apdark td{padding:12px 15px;color:#D9D0BC;border-bottom:1px solid #2A241B;vertical-align:top}
.apdark tr:last-child td{border-bottom:none}
@media (max-width:640px){.apdark table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}}
/* directory related-nav as cards */
.apdark .apis-related{display:grid;grid-template-columns:1fr;gap:14px;margin-top:22px;padding:0;list-style:none}
@media (min-width:721px){.apdark .apis-related{grid-template-columns:repeat(2,1fr)}}
.apdark .apis-related > a, .apdark .apis-related > li, .apdark .apis-related > div{display:block;background:#171310;border:1px solid #3A3122;border-radius:16px;padding:20px 22px;text-decoration:none;margin-top:0;min-width:0}
.apdark .apis-related > li > a{display:block;text-decoration:none;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px;color:#F6F1E8}
.apdark .apis-related > a{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px;color:#F6F1E8}
.apdark .apis-related > a:hover, .apdark .apis-related > li:hover{border-color:#C6A15B}
.apdark .apis-related p{font-family:Inter,system-ui,sans-serif;font-weight:400;font-size:14.5px;color:#B3A68D;margin-top:8px}

/* ---------- floating pill vs sticky report bar (body.apdark-page) ----------
   The AI Scan re-entry pill (#aiscanReentry / .aiscan-reentry) is fixed
   bottom-right and collided with the checker's sticky report bar on
   mobile. On dark pages the pill rides 88px up (above the bar) at
   z-index 40; the sticky bar itself is z-index 60; modals stay above
   both. body.apdark-page already carries padding-bottom:110px so page
   content never hides behind either element. */
body.apdark-page .aiscan-reentry,
body.apdark-page #aiscanReentry,
body.apdark-page button.aiscan-reentry,
body.apdark-page button#aiscanReentry{bottom:88px!important;z-index:40}
@media (max-width:720px){
  .aeocheck-sticky{z-index:60}
}

/* ---------- 390px safety: no horizontal overflow in new sections ---------- */
@media (max-width:480px){
  .aeocheck-landing{padding-left:18px;padding-right:18px}
  .aeocheck-samplestrip{padding:20px}
  .aeocheck-samplestrip-link{margin-left:0}
  .aeocheck-whofix-panel{padding:24px 20px}
  .aeocheck-whofix-ctas .aeocheck-btn{flex-basis:100%}
  .apdark{padding-left:18px;padding-right:18px}
  .aeocheck-faq{padding-left:18px;padding-right:18px}
}

/* ---------- v1.1.0 design rework: full-page dark + directory ---------- */
/* The checker tool wrapper is dark, but the PAGE around it (theme      */
/* background, the FAQ block after the shortcode) rendered in the       */
/* default light theme — that white band was the "just text" defect.    */
/* body.apdark-page (added by the plugin on the checker + /apis/ pages) */
/* carries the Midnight system across the whole page.                   */
body.apdark-page{
  --bg:#0D0B09; --panel:#171310; --panel2:#1E1913; --line:#3A3122;
  --gold:#C6A15B; --cream:#F6F1E8; --ivory:#F6F1E8; --muted:#B3A68D; --ember:#E4572E;
  background:#0D0B09; color:#F6F1E8;
  font-family:Inter,system-ui,-apple-system,sans-serif;
}
body.apdark-page .page-content, body.apdark-page .entry-content,
body.apdark-page .elementor, body.apdark-page main, body.apdark-page article,
body.apdark-page .site-main, body.apdark-page #content{
  background:transparent;
}
/* FAQ block: rendered by [aeo_check_faq] outside the .aeocheck wrapper, */
/* so it gets its own panel treatment in the same system.               */
body.apdark-page .aeocheck-faq{
  max-width:820px; margin:26px auto 84px; padding:30px 26px;
  background:#171310; border:1px solid #3A3122; border-radius:18px;
  color:#F6F1E8; box-sizing:border-box;
}
body.apdark-page .aeocheck-faq-item{border-bottom:1px solid #3A3122;padding:4px 0}
body.apdark-page .aeocheck-faq-item:last-child{border-bottom:none}
body.apdark-page .aeocheck-faq-item summary{cursor:pointer;font-weight:600;font-size:16.5px;padding:13px 0;color:#F6F1E8}
body.apdark-page .aeocheck-faq-item p{color:#B3A68D;font-size:15px;padding:0 0 15px;max-width:66ch;margin:0}
@media (max-width:640px){ body.apdark-page .aeocheck-faq{margin-left:14px;margin-right:14px;padding:24px 20px} }
/* Floating ai-scan pill: never sit on top of the checker sticky bar or */
/* clip page headings on the dark pages — lift it above the bar and     */
/* keep it under the bar's layer.                                        */
body.apdark-page .aiscan-reentry{display:none !important}
body.apdark-page .aiscan-modal-backdrop,body.apdark-page .aiscan-modal{display:none !important}
body.apdark-page{padding-bottom:0}
/* Directory pages: content wrapped in .apdark at publish time. */
.apdark{
  --bg:#0D0B09; --panel:#171310; --panel2:#1E1913; --line:#3A3122;
  --gold:#C6A15B; --cream:#F6F1E8; --muted:#B3A68D; --ember:#E4572E;
  background:#0D0B09; color:#F6F1E8;
  font-family:Inter,system-ui,-apple-system,sans-serif; font-size:16.5px; line-height:1.65;
  max-width:860px; margin:0 auto; padding:34px 22px 84px; box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
}
.apdark *{box-sizing:border-box}
.apdark h1,.apdark h2,.apdark h3{font-family:Fraunces,Georgia,serif;font-weight:600;color:#F6F1E8;line-height:1.18}
.apdark h1{font-size:clamp(32px,6.4vw,46px)}
.apdark h1 em,.apdark h2 em{color:#C6A15B;font-style:italic}
.apdark h2{font-size:clamp(24px,4.6vw,32px);margin:44px 0 0}
.apdark h3{font-size:20px;margin:26px 0 0}
.apdark p{color:#B3A68D;margin:13px 0 0}
.apdark p strong,.apdark li strong{color:#F6F1E8}
.apdark a{color:#C6A15B}
.apdark ul,.apdark ol{color:#B3A68D;margin:13px 0 0;padding-left:22px}
.apdark li{margin-top:7px}
.apdark table{width:100%;border-collapse:collapse;margin-top:18px;font-size:15px;background:#171310;border:1px solid #3A3122;border-radius:14px;overflow:hidden}
.apdark th,.apdark td{padding:11px 14px;text-align:left;vertical-align:top;border-bottom:1px solid #3A3122}
.apdark th{color:#F6F1E8;font-weight:600}
.apdark td{color:#B3A68D}
.apdark tr:last-child td{border-bottom:none}
.apdark code{background:#1E1913;border:1px solid #3A3122;border-radius:6px;padding:1px 6px;font-size:.92em;color:#F6F1E8}
.apdark pre{background:#171310;border:1px solid #3A3122;border-radius:12px;padding:16px;overflow-x:auto}
.apdark pre code{background:none;border:none;padding:0}
.apdark blockquote{background:#171310;border:1px solid #3A3122;border-left:3px solid #C6A15B;border-radius:12px;padding:16px 20px;margin:20px 0 0;color:#B3A68D}
.apdark .apis-related{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
@media (min-width:641px){.apdark .apis-related{grid-template-columns:repeat(3,1fr)}}
.apdark .apis-related a{display:block;background:#171310;border:1px solid #3A3122;border-radius:16px;padding:20px;color:#F6F1E8;text-decoration:none;font-weight:600}
.apdark .apis-related a:hover{border-color:#C6A15B}

.apdark .apis-related > a span{display:block;font-family:Inter,system-ui,sans-serif;font-weight:400;font-size:14.5px;color:#B3A68D;margin-top:8px}

/* ==========================================================================
   v1.2 BRAND CONTINUITY (2026-11-01) — the dark tool/guide pages join the
   site design system: same 1140px content width as /services/ (snippet 76
   .page-content) and the 1120px footer wrap, hero-scale H1, branded card
   grid (.apcard-grid/.apcard — THE pattern for resource/tool cards), and a
   closing CTA band (.apcta/.apbtn) in the site style. Appended last so it
   wins ties against the v1.0/v1.1 .apdark blocks above; nothing renamed.
   ========================================================================== */
.apdark{max-width:1140px;padding:60px 22px 84px}
.apdark h1{font-size:clamp(38px,6vw,56px);line-height:1.08}
.apdark h2{margin-top:64px}
.apdark .ap-kicker{font-family:Manrope,Inter,system-ui,sans-serif;font-weight:800;font-size:.8rem;letter-spacing:.22em;text-transform:uppercase;color:#C6A15B;margin:0 0 16px}
.apdark .ap-lede{font-size:18px;line-height:1.65;color:#CFC7B8;max-width:70ch;margin-top:18px}
.apdark .apis-related{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.apdark nav.apis-related{display:block}
.apdark nav.apis-related ul{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.apdark nav.apis-related li{margin:0}
.apdark nav.apis-related li a{height:100%;box-sizing:border-box}
/* --- branded card pattern (resources hub + future free tools) --- */
.apcard-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:26px}
@media (min-width:721px){.apcard-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.apcard-grid.cols3{grid-template-columns:repeat(3,1fr)}}
.apcard{display:block;background:linear-gradient(180deg,#1B1712,#14110D);border:1px solid #3A3122;border-radius:18px;padding:26px;text-decoration:none;transition:border-color .18s ease,transform .18s ease}
.apcard:hover,.apcard:focus{border-color:#C6A15B;transform:translateY(-2px)}
.apdark .apcard h3{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:21px;line-height:1.3;color:#F6F1E8;margin:0}
.apdark .apcard p{color:#B3A68D;font-size:15px;line-height:1.6;margin:10px 0 0;max-width:none}
.apcard .apcard-go{display:block;margin-top:18px;color:#C6A15B;font-weight:600;font-size:14.5px}
/* --- closing CTA band --- */
.apcta{margin-top:64px;background:#1E1913;border:1px solid rgba(198,161,91,.55);border-radius:20px;padding:38px 32px}
.apdark .apcta h2,.apcta h2{margin:0;padding:0;border:none;font-size:clamp(26px,4.5vw,36px)}
.apcta p{color:#CFC7B8}
.apcta .apbtn{display:inline-block;background:#FF5A1F;color:#fff!important;font-weight:700;font-size:16px;line-height:1.5;padding:15px 30px;border-radius:999px;text-decoration:none;margin-top:22px}
.apcta .apbtn:hover,.apcta .apbtn:focus{background:#E04A12;color:#fff}
@media (max-width:640px){.apcta{padding:28px 22px}.apdark{padding-top:44px}}
/* AEO page: the trailing "more resources" strip aligns to the 820px tool column */
body.page-id-2141 .apdark{max-width:820px;padding-top:6px}


/* ================================================================
   AEO Score v2 (2026-11-01) — report container + per-check layout.
   The token/sample report view sits on an Elementor canvas template
   with no theme container, so .aeocheck-report itself carries the
   width now (was: edge-to-end across the screen).
   ================================================================ */
.aeocheck-report{max-width:920px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px;box-sizing:border-box}
.aeocheck-scope{color:var(--muted);font-size:15px;margin:14px auto 8px;max-width:640px}
.aeocheck-scope strong{color:var(--cream)}
.aeocheck-pages{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 auto 6px;max-width:720px}
.aeocheck-page-chip{border:1px solid var(--line);border-radius:999px;padding:3px 11px;font-size:12px;color:var(--muted);background:var(--panel)}
.aeocheck-v2-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px 22px;margin:0 0 18px;text-align:left}
.aeocheck-v2-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.aeocheck-v2-card-name{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:600;color:var(--cream)}
.aeocheck-v2-card-pts{font-weight:700;color:var(--gold);white-space:nowrap}
.aeocheck-v2-rows{margin-top:6px}
.aeocheck-v2-row{border-top:1px solid var(--line);padding:11px 0 9px}
.aeocheck-v2-row:first-child{border-top:none}
.aeocheck-v2-row-top{display:flex;align-items:center;gap:10px}
.aeocheck-chip{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:3px 9px;border-radius:999px;border:1px solid;white-space:nowrap}
.aeocheck-chip--pass{color:var(--green);border-color:var(--green)}
.aeocheck-chip--partial{color:var(--gold);border-color:var(--gold)}
.aeocheck-chip--fail{color:var(--red);border-color:var(--red)}
.aeocheck-v2-row-label{font-weight:600;color:var(--cream);font-size:15px}
.aeocheck-v2-row-pts{margin-left:auto;color:var(--muted);font-weight:600;font-size:14px;white-space:nowrap}
.aeocheck-v2-evidence{color:var(--muted);font-size:14px;line-height:1.55;margin:6px 0 2px}
.aeocheck-fix-title{font-weight:700;color:var(--cream);font-size:16px;margin:8px 0 4px}
/* Montana anatomy pass (2026-11-01) — verdict header, what-drove-this,
   four-part check rows, sources & limitations appendix. */
.aeocheck-verdict{color:var(--cream);font-size:16px;line-height:1.6;max-width:640px;margin:10px auto 4px}
.aeocheck-counts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px auto 2px}
.aeocheck-count{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:5px 13px;border-radius:999px;border:1px solid var(--line);color:var(--muted);background:var(--panel)}
.aeocheck-count strong{font-size:14px;margin-left:2px}
.aeocheck-count--pass strong{color:var(--green)}
.aeocheck-count--partial strong{color:var(--gold)}
.aeocheck-count--fail strong{color:var(--red)}
.aeocheck-drove-list{margin:8px 0 6px;padding-left:20px;color:var(--muted);font-size:14.5px;line-height:1.6}
.aeocheck-drove-list strong{color:var(--gold)}
.aeocheck-v2-why{color:var(--muted);font-size:14px;line-height:1.55;margin:6px 0 2px}
.aeocheck-v2-why strong{color:var(--cream)}
.aeocheck-v2-next{color:var(--muted);font-size:14px;line-height:1.55;margin:6px 0 2px}
.aeocheck-v2-next strong{color:var(--gold)}
.aeocheck-v2-source{color:var(--muted);font-size:12.5px;line-height:1.5;margin:7px 0 2px;opacity:.75;font-style:italic}
.aeocheck-app-h{font-family:Fraunces,Georgia,serif;font-size:16.5px;font-weight:600;color:var(--cream);margin:16px 0 6px}
.aeocheck-app-h:first-child{margin-top:0}
.aeocheck-app-list{margin:4px 0 8px;padding-left:20px;color:var(--muted);font-size:14px;line-height:1.6;word-break:break-word}
.aeocheck-appendix .aeocheck-v2-evidence strong{color:var(--cream)}
@media (max-width:480px){
  .aeocheck-report{padding-left:14px;padding-right:14px}
  .aeocheck-v2-card{padding:16px 14px}
  .aeocheck-v2-card-name{font-size:18px}
  .aeocheck-v2-row-top{flex-wrap:wrap;row-gap:6px}
  .aeocheck-v2-row-pts{margin-left:0}
}

/* API hub comparison table (2026-11-01): the wrapper owns horizontal
   scrolling so the table can keep readable column widths on phones
   without widening the page. */
.apdark .ap-table-scroll{max-width:100%;margin-top:20px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.apdark .ap-table-scroll>table{margin-top:0}
@media (max-width:640px){.apdark .ap-table-scroll>table{display:table;width:100%;min-width:640px;max-width:none;overflow:visible}}
