/* ==========================================================================
   AATCE redesign (Nov 2026) — shared stylesheet
   Source: Claude Design handoff (aatce-redesign-handoff/assets/aatce.css),
   extended to restyle the live site's existing classes. Visual only.
   Pages opt in with <body class="aatce ...">. Bump ?v= on every page when
   this file changes (.htaccess caches CSS for a month).
   ========================================================================== */

@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/bitter-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/source-sans-3-latin.woff2') format('woff2'); }

:root {
  --ink: #1F2D44; --navy: #2B4166; --blue: #2F5D8C; --blue-hover: #244A70;
  --red: #A8322D; --red-tint: #F8E6E1; --red-ink: #842720; --star-on-dark: #E0645A;
  --text: #3D3830; --muted: #6B6255; --paper: #FBF8F3; --card: #FFFFFF;
  --sand: #F4EDE1; --sand-2: #EDE4D3; --icon-bg: #EFE6D6;
  --line: #E5DCCB; --line-strong: #D6CAB5;
  --ok-bg: #EBEEDD; --ok-ink: #4A5E23; --check: #5B7A2A; --stars: #B97C12;
  --on-dark: #E4DCCD; --on-dark-muted: #CFC6B6; --rule-dark: #3A4A63;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: Bitter, Georgia, serif;
  --radius: 10px; --radius-sm: 8px; --stripe: 4px solid var(--red);
  --tabs-h: 56px;
}

/* ---------- Base ---------- */
html:has(> body.aatce) { overflow-x: clip; }
body.aatce { overflow-x: clip !important; overflow-y: visible !important; }   /* "hidden" would make body a scroll container and break the sticky header */
.aatce [id] { scroll-margin-top: calc(var(--hdr-h, 77px) + 16px); }  /* no sideways scroll on phones (some old pages overflowed by 8–150px) */
body.aatce { margin: 0; padding: 0; background: var(--paper); color: var(--text); font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
:where(.aatce:not(.aatce-legacy)) *, :where(.aatce:not(.aatce-legacy)) *::before, :where(.aatce:not(.aatce-legacy)) *::after { box-sizing: border-box; }
.aatce :is(.topbar, .hdr, .subnav, .ftr) :is(*, *::before, *::after) { box-sizing: border-box; }
.aatce :is(.topbar, .hdr, .subnav, .ftr) :is(p, ul, h3) { margin: 0; }
.aatce .ftr .fabout h3.sr-only { position: absolute; }
:where(.aatce:not(.aatce-legacy)) a { color: var(--blue); text-decoration: none; }
.aatce :is(.topbar, .hdr, .subnav, .ftr) a { text-decoration: none; }
:where(.aatce:not(.aatce-legacy)) a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
:where(.aatce:not(.aatce-legacy)) :is(h1, h2, h3, h4) { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.005em; line-height: 1.2; font-weight: 700; }
:where(.aatce:not(.aatce-legacy)) p { margin: 0; }
:where(.aatce:not(.aatce-legacy)) img { max-width: 100%; height: auto; }
.aatce :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.aatce .wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.aatce .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.aatce .chat-container, .aatce #chat-toggle-button { display: none !important; } /* chat removed Jun 2026 */

/* ---------- Top bar ---------- */
.aatce .topbar { background: var(--navy); color: var(--on-dark); font-size: 13px; border-top: var(--stripe); }
.aatce .topbar .wrap { display: flex; justify-content: center; align-items: center; gap: 4px 24px; min-height: 40px; text-align: center; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.aatce .topbar a { color: #fff; }
.aatce .tx-line { display: inline-flex; align-items: center; gap: 8px; }
.aatce .tx-mark { flex: none; color: var(--on-dark); }

/* ---------- Header ---------- */
.aatce .hdr { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 900; box-shadow: 0 6px 18px rgba(14, 26, 43, .06); }   /* floats down with the page; the blue ribbon above scrolls away */
.aatce .hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.aatce .brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.aatce .brand:hover { text-decoration: none; }
.aatce .brand-logo { display: block; width: 150px; height: 48px; }
.aatce .bsub { font-size: 12px; color: var(--muted); line-height: 1.3; border-left: 1px solid var(--line); padding-left: 14px; max-width: 130px; }
.aatce .nav { display: flex; gap: 2px; flex-wrap: wrap; }
.aatce .nav a { white-space: nowrap; color: var(--text); font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.aatce .nav a:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.aatce .nav a.on, .aatce .nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-radius: 0; box-shadow: inset 0 -2px 0 var(--red); }
.aatce .acts { display: flex; gap: 10px; flex-wrap: wrap; }

.aatce .subnav { background: var(--sand); border-bottom: 1px solid var(--line); font-size: 14px; }
.aatce .subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-height: 44px; }
.aatce .subnav-label { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.aatce .subnav a { color: var(--navy); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Buttons ---------- */
.aatce .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; white-space: nowrap; cursor: pointer; font-family: inherit; line-height: 1.2; }
.aatce .btn:hover { text-decoration: none; }
.aatce .btn-p { background: var(--blue); color: #fff; }
.aatce .btn-p:hover { background: var(--blue-hover); color: #fff; }
.aatce .btn-s { background: var(--card); color: var(--navy); border-color: var(--line-strong); }
.aatce .btn-s:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Labels, tags, prices ---------- */
.aatce .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.aatce .eyebrow::before { content: "\2605"; font-size: 14px; letter-spacing: 0; }
.aatce .tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); white-space: nowrap; }
.aatce .tag-neutral { background: var(--sand-2); color: var(--navy); }
.aatce .tag-sale { background: var(--red); color: #fff; }
.aatce .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.aatce .chk, .aatce .ico-sm { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.aatce .chk { color: var(--check); }

/* ---------- Footer ---------- */
.aatce .ftr { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; border-top: var(--stripe); margin-top: 0; padding: 0; text-align: left; }
.aatce .ftr a { color: var(--on-dark); }
.aatce .ftr a:hover { color: #fff; }
.aatce .ftr h3 { color: #fff; font-size: 15px; margin: 0 0 16px; font-family: var(--font-head); }
.aatce .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 72px 0 48px; }
.aatce .fabout { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.aatce .flogo { display: inline-block; background: #fff; border-radius: var(--radius-sm); padding: 8px 12px; align-self: flex-start; box-shadow: 0 0 0 2px var(--red); }
.aatce .flogo img { display: block; width: 150px; height: 48px; }
.aatce .flinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aatce .fbase { border-top: 1px solid var(--rule-dark); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aatce .ftr .tx-mark { color: var(--on-dark); }

/* ---------- Course page ---------- */
.aatce:not(.aatce-legacy) main.course-page { max-width: none; margin: 0; padding: 0; background: transparent; box-shadow: none; }
.aatce:not(.aatce-legacy) .c-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 40px 0 48px; }
.aatce:not(.aatce-legacy) .c-hero .course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.aatce:not(.aatce-legacy) .course-hero-image { margin: 0; }
.aatce:not(.aatce-legacy) .course-hero-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--sand-2); }
.aatce:not(.aatce-legacy) .course-hero-purchase { padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(14, 26, 43, .08); }
.aatce:not(.aatce-legacy) .hero-title { font-size: 36px; letter-spacing: -0.01em; }
.aatce:not(.aatce-legacy) .hero-title-main { display: block; font-weight: 700; }
.aatce:not(.aatce-legacy) .hero-title-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.aatce:not(.aatce-legacy) .hero-title-sub .pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--sand-2); color: var(--navy); }
.aatce:not(.aatce-legacy) .hero-title-sub .pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.aatce:not(.aatce-legacy) .hero-title-sub .pill-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sticky section tabs (existing .tabs-nav buttons) */
.aatce:not(.aatce-legacy) .tabs { position: sticky; top: var(--hdr-h, 77px); z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.aatce:not(.aatce-legacy) .tabs .tabs-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 auto; border: 0; background: none; padding-top: 0; padding-bottom: 0; }
.aatce:not(.aatce-legacy) .tabs .tabs-nav::-webkit-scrollbar { display: none; }
.aatce:not(.aatce-legacy) .tabs .tab-btn { display: inline-flex; align-items: center; min-height: var(--tabs-h); padding: 0 16px; color: var(--text); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font: inherit; font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer; }
.aatce:not(.aatce-legacy) .tabs .tab-btn:hover { color: var(--ink); }
.aatce:not(.aatce-legacy) .tabs .tab-btn i { display: none; }
.aatce:not(.aatce-legacy) .tabs .tab-btn.active { color: var(--navy); border-bottom-color: var(--red); font-weight: 600; }
.aatce:not(.aatce-legacy) .course-tabs [id] { scroll-margin-top: calc(var(--hdr-h, 77px) + var(--tabs-h) + 16px); }

.aatce:not(.aatce-legacy) .c-body { padding-top: 40px; padding-bottom: 56px; }
.aatce:not(.aatce-legacy) .c-reviews { padding-bottom: 88px; }
.aatce:not(.aatce-legacy) .layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.aatce:not(.aatce-legacy) .layout > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 72px; order: 1; }
.aatce:not(.aatce-legacy) .layout > .aside { flex: 1 1 340px; max-width: 400px; position: sticky; top: calc(var(--tabs-h) + 20px); display: flex; flex-direction: column; gap: 14px; order: 2; }

/* All panels visible (sticky tabs scroll to them) */
.aatce:not(.aatce-legacy) .course-tabs .tab-panel { display: none; }
.aatce:not(.aatce-legacy) .course-tabs .tab-panel.active { display: flex; flex-direction: column; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 40px 44px; }
.aatce:not(.aatce-legacy) .tab-panel h2 { font-size: 30px; }
.aatce:not(.aatce-legacy) .tab-panel h3 { font-size: 20px; margin-top: 12px; }
.aatce:not(.aatce-legacy) .tab-panel h4 { font-size: 17px; }
.aatce:not(.aatce-legacy) .tab-panel ul, .aatce:not(.aatce-legacy) .tab-panel ol { margin: 0; }
.aatce:not(.aatce-legacy) .tab-panel i.fas, .aatce:not(.aatce-legacy) .tab-panel i.fab { display: none; } /* old icon font glyphs; SVG used where an icon matters */

/* bullet lists */
.aatce:not(.aatce-legacy) .course-highlights { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aatce:not(.aatce-legacy) .course-highlights-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.aatce:not(.aatce-legacy) .course-highlights-2col li { display: flex; gap: 10px; align-items: center; }
.aatce:not(.aatce-legacy) .course-highlights-2col li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); flex: none; }
.aatce:not(.aatce-legacy) .what-you-get li, .aatce:not(.aatce-legacy) .renewal-checklist li, .aatce:not(.aatce-legacy) .hero-quick-info li { position: relative; padding-left: 32px; }
.aatce:not(.aatce-legacy) .what-you-get li::before, .aatce:not(.aatce-legacy) .renewal-checklist li::before, .aatce:not(.aatce-legacy) .hero-quick-info li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.aatce:not(.aatce-legacy) .renewal-checklist, .aatce:not(.aatce-legacy) .hero-quick-info { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }

/* module cards: <div class="mod card"> wraps each module h3 + p */
.aatce:not(.aatce-legacy) .mods { display: flex; flex-direction: column; gap: 16px; counter-reset: mod; }
.aatce:not(.aatce-legacy) .mod { padding: 24px 28px 24px 84px; position: relative; display: flex; flex-direction: column; gap: 8px; counter-increment: mod; }
.aatce:not(.aatce-legacy) .mod::before { content: counter(mod); position: absolute; left: 28px; top: 22px; width: 36px; height: 36px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.aatce:not(.aatce-legacy) .mod h3 { margin-top: 0 !important; display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; }
.aatce:not(.aatce-legacy) .mod h3 small { font-family: var(--font-body); font-size: 13px !important; font-weight: 600 !important; color: var(--navy) !important; background: var(--sand-2); padding: 3px 10px; border-radius: 6px; white-space: nowrap; }

/* approval info as a definition grid */
.aatce:not(.aatce-legacy) .reg-highlights { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aatce:not(.aatce-legacy) .reg-highlights li { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-weight: 700; }
.aatce:not(.aatce-legacy) .reg-highlights li strong { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* renewal deadlines as an info grid */
.aatce:not(.aatce-legacy) .renewal-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: none; border: 0; padding: 0; margin-top: 4px; }
.aatce:not(.aatce-legacy) .renewal-timeline h4 { grid-column: 1 / -1; font-size: 20px; }
.aatce:not(.aatce-legacy) .renewal-timeline p { padding: 20px; background: var(--sand); border-radius: var(--radius); font-size: 15px; }
.aatce:not(.aatce-legacy) .renewal-timeline p strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* numbered steps */
.aatce:not(.aatce-legacy) .steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.aatce:not(.aatce-legacy) .steps li { position: relative; padding-left: 46px; min-height: 30px; counter-increment: s; }
.aatce:not(.aatce-legacy) .steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.aatce:not(.aatce-legacy) .steps li strong, .aatce:not(.aatce-legacy) .tab-panel strong { color: var(--ink); }

/* resource link lists */
.aatce:not(.aatce-legacy) .resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 12px; }
.aatce:not(.aatce-legacy) .resources-card { background: none; border: 0; padding: 0; box-shadow: none; }
.aatce:not(.aatce-legacy) .resources-card h3 { font-size: 17px !important; margin: 0 0 8px !important; }
.aatce:not(.aatce-legacy) .resources-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.aatce:not(.aatce-legacy) .resources-card li { border-top: 1px solid var(--line); }
.aatce:not(.aatce-legacy) .resources-card a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 500; }
.aatce:not(.aatce-legacy) .resources-card a::after { content: "\2192"; }
.aatce:not(.aatce-legacy) .resources-card a[target="_blank"]::after { content: "\2197"; }
.aatce:not(.aatce-legacy) .back-link { font-weight: 600; }

/* FAQ: native <details> accordion inside one card */
.aatce:not(.aatce-legacy) .faq-horizontal-tiles { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.aatce:not(.aatce-legacy) .faq-tile { border-top: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; margin: 0; }
.aatce:not(.aatce-legacy) .faq-tile:first-child { border-top: 0; }
.aatce:not(.aatce-legacy) .faq-tile > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; min-height: 44px; }
.aatce:not(.aatce-legacy) .faq-tile > summary::-webkit-details-marker { display: none; }
.aatce:not(.aatce-legacy) .faq-tile > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); flex: none; }
.aatce:not(.aatce-legacy) .faq-tile[open] > summary::after { content: "\2013"; }
.aatce:not(.aatce-legacy) .faq-tile > summary h3 { font-family: var(--font-body); font-size: 17px !important; font-weight: 600; margin: 0 !important; color: var(--ink); line-height: 1.4; }
.aatce:not(.aatce-legacy) .faq-tile .faq-tile-content { display: block; max-height: none; padding: 0 24px 20px; overflow: visible; background: none; }

/* price card (aside) */
.aatce:not(.aatce-legacy) .price-card .pc-label { font-size: 14px; color: var(--muted); }
.aatce:not(.aatce-legacy) .course-price-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: none; border: 0; padding: 0; margin: 0; }
.aatce:not(.aatce-legacy) .course-price-box .sale-price-main { display: contents; }
.aatce:not(.aatce-legacy) .course-price-box .price { order: 1; font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.aatce:not(.aatce-legacy) .course-price-box .price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); }
.aatce:not(.aatce-legacy) .course-price-box .original-price-main { order: 2; }
.aatce:not(.aatce-legacy) .crossed-out { color: var(--red); text-decoration: line-through; font-size: 17px; }
.aatce:not(.aatce-legacy) .save-badge { order: 3; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.aatce:not(.aatce-legacy) .sale-text { font-size: 13px; color: var(--red); font-weight: 600; margin-top: -8px; }
.aatce:not(.aatce-legacy) .cta-button { width: 100%; min-height: 54px; font-size: 16px; background: var(--blue); color: #fff; border: 0; border-radius: var(--radius-sm); font-family: inherit; font-weight: 600; cursor: pointer; padding: 0 20px; box-shadow: none; text-transform: none; letter-spacing: 0; }
.aatce:not(.aatce-legacy) .cta-button:hover { background: var(--blue-hover); transform: none; }
.aatce:not(.aatce-legacy) .existing-account-note { font-size: 14px; text-align: center; color: var(--text); }
.aatce:not(.aatce-legacy) .existing-account-note a { color: var(--blue); text-decoration: none; }
.aatce:not(.aatce-legacy) .hero-quick-info i, .aatce:not(.aatce-legacy) .course-hero-purchase i.fas { display: none; }
.aatce:not(.aatce-legacy) .hero-quick-info { border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }
.aatce:not(.aatce-legacy) .secure-note { font-size: 13px; color: var(--muted); text-align: center; }

/* reviews / testimonials block (written by review_sweep — style only) */
.aatce:not(.aatce-legacy) .testimonials-module, .aatce:not(.aatce-legacy) .reviews-widget { display: flex; flex-direction: column; gap: 20px; background: none; padding: 0; margin: 0; box-shadow: none; border: 0; text-align: left; }
.aatce:not(.aatce-legacy) .testimonials-module h2, .aatce:not(.aatce-legacy) .reviews-widget h3 { font-size: 30px; text-align: left; }
.aatce:not(.aatce-legacy) .reviews-widget h3 i { display: none; }
.aatce:not(.aatce-legacy) .testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aatce:not(.aatce-legacy) .testimonial-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
.aatce:not(.aatce-legacy) .testimonial-item .quote { color: var(--ink); font-style: normal; }
.aatce:not(.aatce-legacy) .testimonial-item .author { font-size: 14px; font-weight: 600; color: var(--muted); }
.aatce:not(.aatce-legacy) .overall-rating { display: flex; align-items: center; gap: 12px; }
.aatce:not(.aatce-legacy) .rating-score { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1; }
.aatce:not(.aatce-legacy) .rating-stars, .aatce:not(.aatce-legacy) .review-stars { color: var(--stars); letter-spacing: 2px; }
.aatce:not(.aatce-legacy) .rating-count { font-size: 14px; color: var(--muted); }
.aatce:not(.aatce-legacy) .reviews-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: none; overflow: visible; }
.aatce:not(.aatce-legacy) .review-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.aatce:not(.aatce-legacy) .review-header { display: flex; flex-direction: column-reverse; gap: 6px; }
.aatce:not(.aatce-legacy) .reviewer-name { color: var(--ink); font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.aatce:not(.aatce-legacy) .review-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ok-ink); text-transform: uppercase; }
.aatce:not(.aatce-legacy) .review-text { color: var(--ink); }

/* ---------- Popups & lead modal (markup/JS unchanged; state classes .show) ---------- */
.aatce .sale-popup-overlay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; background: var(--card); border-top: var(--stripe); box-shadow: 0 -4px 20px rgba(14, 26, 43, .1);
  opacity: 0; visibility: hidden; transform: translateY(100%); transition: opacity .4s, visibility .4s, transform .4s; }
.aatce .sale-popup-overlay.show { opacity: 1; visibility: visible; transform: none; }
.aatce .sale-popup { max-width: 1200px; margin: 0 auto; padding: 14px 64px 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; }
.aatce .popup-offer-text { font-weight: 600; color: var(--ink); }
.aatce .popup-pricing-inline { display: inline-flex; gap: 10px; align-items: baseline; }
.aatce .big-price { color: var(--ink); font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.aatce .popup-close, .aatce .lead-capture-close { position: absolute; top: 6px; right: 8px; min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.aatce .lead-capture-overlay { position: fixed; inset: 0; z-index: 10001; background: rgba(31, 45, 68, .6); display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.aatce .lead-capture-overlay.show { opacity: 1; visibility: visible; }
.aatce .lead-capture-modal { position: relative; width: 100%; max-width: 480px; background: var(--card); border-radius: 14px; border-top: var(--stripe); padding: 36px 28px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(14, 26, 43, .25); }
.aatce .lead-capture-header h3 { color: var(--ink); font-size: 24px; }
.aatce .lead-capture-form { display: flex; flex-direction: column; gap: 10px; }
.aatce .lead-capture-input { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; font-size: 15px; }
.aatce .lead-capture-benefits ul { list-style: none; padding: 0; margin: 0; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.aatce .lead-capture-disclaimer { font-size: 13px; color: var(--muted); }
.aatce .popup-cta-button, .aatce .lead-capture-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; background: var(--blue); color: #fff; border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; }
.aatce .popup-cta-button:hover, .aatce .lead-capture-submit:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }

/* ---------- Checkout modal (restyle only; checkout.css keeps layout/state) ---------- */
.aatce .checkout-overlay { background: rgba(31, 45, 68, .6); }
.aatce .checkout-modal { border-radius: 14px; border-top: var(--stripe); font-family: var(--font-body); color: var(--text); padding: 32px; }
.aatce .checkout-header { border-bottom-color: var(--line); }
.aatce .checkout-header h3 { font-family: var(--font-head); color: var(--ink); font-size: 20px; }
.aatce .checkout-price { font-family: var(--font-head); color: var(--ink); }
.aatce .checkout-field label { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; }
.aatce .checkout-field input, .aatce #card-element { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: inherit; color: var(--ink); background: var(--card); }
.aatce .checkout-field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); box-shadow: none; }
.aatce #card-element { padding: 14px; }
.aatce .checkout-field-hint { color: var(--muted); }
.aatce .required-star { color: var(--red); }
.aatce .checkout-required-info { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin-bottom: 16px; }
.aatce .checkout-divider span { color: var(--muted); background: var(--card); }
.aatce .checkout-pay-btn { background: var(--blue); border-radius: var(--radius-sm); min-height: 52px; font-family: inherit; font-weight: 600; }
.aatce .checkout-pay-btn:hover:not(:disabled) { background: var(--blue-hover); }
.aatce .checkout-error { color: var(--red); }
.aatce .checkout-success-icon { color: var(--check); }
.aatce #checkout-success h3 { font-family: var(--font-head); color: var(--ink); }
.aatce .checkout-secure { color: var(--muted); }
.aatce .checkout-close { min-width: 44px; min-height: 44px; top: 6px; right: 6px; color: var(--muted); }

/* ---------- Pages that keep their original layout (body.aatce-legacy; styles.css still loaded,
   its palette swapped in place to these tokens) ---------- */
body.aatce-legacy { background: var(--paper); color: var(--text); font-family: var(--font-body); }
body.aatce-legacy h1, body.aatce-legacy h2, body.aatce-legacy h3, body.aatce-legacy h4 { font-family: var(--font-head); letter-spacing: -0.005em; }
body.aatce-legacy footer.ftr { padding: 0; margin: 0; text-align: left; background: var(--ink); color: var(--on-dark-muted); font-family: var(--font-body); }
body.aatce-legacy .hdr, body.aatce-legacy .topbar, body.aatce-legacy .subnav { font-family: var(--font-body); text-align: left; }
body.aatce-legacy .hdr .btn-p, body.aatce-legacy .hdr .btn-p:hover { color: #fff; }
body.aatce-legacy .hdr .btn-s { color: var(--navy); background: var(--card); }
body.aatce-legacy .container { margin-top: 40px; }   /* old fixed menu needed 64-118px of clearance; the new header is in-flow */
body.aatce-legacy :is(button, input, select, textarea) { font-family: inherit; }
@media (max-width: 768px) { body.aatce-legacy .container { margin-top: 24px; } }

/* ---------- Responsive ---------- */
/* ===================== Mockup page layouts (Nov 2026 v3) ===================== */
.aatce .btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.aatce .btn-on-dark { background: #fff; color: var(--navy); }
.aatce .btn-on-dark:hover { background: var(--sand); color: var(--navy); }
.aatce .old { color: var(--red); text-decoration: line-through; font-size: 15px; }
.aatce .price { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--ink); }
.aatce .prow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.aatce .notice { display: flex; gap: 10px; align-items: center; background: var(--red-tint); color: var(--red-ink); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin: 0; }
.aatce .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--icon-bg); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; font-size: 19px; }
.aatce .ico i { color: var(--blue); font-size: 19px; margin: 0; }
.aatce .sec { padding: 88px 0; }
.aatce .sec.alt { background: var(--sand); }   /* scoped: old pages use .alt on their own buttons (e.g. .ref-btn.alt) */
.aatce .sechead { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.aatce .sechead h2, .aatce .sechead h3, .aatce .h2like { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 38px; line-height: 1.2; margin: 0; }
.aatce .sec > .wrap > h2 { font-size: 38px; margin: 0 0 12px; text-align: left; }
.aatce .sec .lead, .aatce .pg .lead { font-size: 18px; color: var(--muted); margin: 0 0 36px; max-width: 760px; text-align: left; }
.aatce .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aatce .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aatce .g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.aatce .band { background: var(--navy); border-radius: 16px; border-top: var(--stripe); padding: 48px; color: var(--on-dark); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.aatce .band :is(h2, h3, .h2like) { color: #fff; font-family: var(--font-head); font-size: 30px; margin: 0; }
.aatce .band p { color: var(--on-dark); margin: 0; max-width: 680px; }
.aatce .band .eyebrow { color: #F2B8B0; }
.aatce main.pg, .aatce main.home { max-width: none; width: auto; margin: 0; padding: 0; background: none; box-shadow: none; }
.aatce .pg-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 56px 0; }
.aatce .pg-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.aatce .pg-hero h1 { font-size: 48px; margin: 0; text-align: left; }
.aatce :is(.page-home, .page-courses, .page-about, .page-contact, .page-blog, .page-article) .tag { text-transform: none; }

/* ---- Home ---- */
.aatce .h-hero .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 80px 32px 88px; }
.aatce .hero-text { display: flex; flex-direction: column; gap: 22px; }
.aatce .hero-text h1 { font-size: 54px; letter-spacing: -0.01em; text-align: left; text-shadow: none; }
.aatce .hero-text .hero-sub { order: -1; font-family: var(--font-body); font-size: 13px; margin: 0; }
.aatce .hero-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.aatce .hero-bullets li { position: relative; padding-left: 32px; }
.aatce .hero-bullets li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.aatce .hero-bullets strong { color: var(--ink); }
.aatce .hero-cta-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; max-width: 560px; }
.aatce .hero-cta-section .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.aatce .panel { padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(14, 26, 43, .08); }
.aatce .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aatce .panel-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.aatce .pop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.aatce .pop:hover { color: var(--blue); text-decoration: none; }
.aatce .pop b { font-family: var(--font-head); font-size: 20px; }
.aatce .ccard { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.aatce .ccard h3 { font-size: 19px; margin: 0; }
.aatce .ccard .price-highlight { background: none; padding: 0; box-shadow: none; }
.aatce .ccard .btn { margin-top: auto; width: 100%; }
.aatce .feat { padding: 28px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.aatce .feat h3 { font-size: 19px; margin: 0; }
.aatce .feat p { margin: 0; }
.aatce .testimonials-grid.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aatce .testimonial-item.card { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.aatce .testimonial-item p.quote { font-size: 17px; color: var(--ink); margin: 0; font-style: normal; }
.aatce .testimonial-item p.author { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; }
.aatce .filter-controls { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.aatce .filter-controls label { font-size: 14px; font-weight: 600; color: var(--ink); }
.aatce .filter-controls select { min-height: 44px; min-width: 220px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; color: var(--ink); background: var(--card); }
.aatce .course-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aatce .course-list li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: none; margin: 0; box-shadow: none; border-radius: 0; }
.aatce .course-list li:first-child { border-top: 0; }
.aatce .course-list li:hover { background: var(--sand); }
.aatce .course-list li i { color: var(--blue); width: 22px; text-align: center; flex: none; }
.aatce .course-list li a { flex: 1; color: var(--ink); font-weight: 600; }
.aatce .course-list .status { display: inline-flex; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); white-space: nowrap; }

/* ---- Courses ---- */
.aatce .guide { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 24px 28px; max-width: 760px; }
.aatce .guide p { margin: 0; }
.aatce .profession-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.aatce .profession-tile.card { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.aatce .profession-tile.card:hover { border-color: var(--blue); }
.aatce .profession-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; }
.aatce .profession-icon i { color: var(--blue); font-size: 19px; }
.aatce .profession-content { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.aatce .profession-content h3 { font-size: 18px; margin: 0; }
.aatce .profession-content p { margin: 0; font-size: 15px; color: var(--muted); }
.aatce .profession-status { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok-ink); line-height: 1.4; }
.aatce .profession-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--blue); }
.aatce .profession-link::before { content: "View requirements"; }
.aatce .profession-link, .aatce .profession-link i { background: none !important; width: auto; height: auto; border-radius: 0; box-shadow: none; padding: 0; margin: 0; color: var(--blue); }
.aatce .profession-link { align-self: flex-start; margin-top: auto; }
.aatce .guide .btn { white-space: normal; text-align: left; height: auto; padding: 12px 18px; line-height: 1.35; }
.aatce p.notice { display: block; }
.aatce .profession-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* whole card is the link */
.aatce .simple-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aatce .simple-course-card.card { padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: none; }
.aatce .course-header { display: flex; justify-content: space-between; align-items: center; }
.aatce .course-icon-simple { width: 44px; height: 44px; border-radius: 10px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; }
.aatce .course-icon-simple i { color: var(--blue); font-size: 19px; }
.aatce .course-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); }
.aatce .simple-course-card h3 { font-size: 21px; margin: 0; }
.aatce .course-info { display: flex; gap: 10px; align-items: center; }
.aatce .course-info .duration { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--sand-2); color: var(--navy); }
.aatce .course-info .price { font-size: 24px; }
.aatce .course-topics-widget h4 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin: 8px 0; }
.aatce .topics-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.aatce .topic-tag { font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--text); }
.aatce .simple-course-button { margin-top: auto; align-self: flex-start; }

/* ---- About ---- */
.aatce .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aatce .stats > div { background: var(--card); padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.aatce .stats > div > div:first-child { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--ink); line-height: 1.2; }
.aatce .stats > div > div:last-child { font-size: 14px; color: var(--muted); }
.aatce .comparison-section > .wrap > p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.aatce .tbl-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.aatce .comparison-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; margin: 0; box-shadow: none; }
.aatce .comparison-table th, .aatce .comparison-table td { padding: 15px 18px; text-align: left; border: 0; border-top: 1px solid var(--line); vertical-align: top; background: none; color: var(--text); }
.aatce .comparison-table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--paper); }
.aatce .comparison-table td.feature-column { font-weight: 600; color: var(--ink); }
.aatce .comparison-table .all-american-column { background: var(--sand-2); color: var(--navy); font-weight: 600; }
.aatce .comparison-table thead .all-american-column { background: var(--navy); color: #fff; box-shadow: inset 0 4px 0 var(--red); }
.aatce .comparison-table .checkmark { color: var(--check); }
.aatce .comparison-table .partial { color: var(--stars); }
.aatce .comparison-table .x-mark { color: var(--red); }
.aatce .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 22px 26px; margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.aatce .callout h3 { font-size: 20px; margin: 0; }
.aatce .callout h3 i { color: var(--red); margin-right: 10px; }
.aatce .callout p { margin: 0; }
.aatce .diff { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.aatce .diff strong { color: var(--ink); font-size: 17px; margin-top: 8px; }
.aatce .diff span { color: var(--muted); }
.aatce .platform > .wrap > .sechead p { font-size: 18px; color: var(--muted); margin: 0; }
.aatce .shot { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.aatce .shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.aatce .shot figcaption { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.aatce .shot h3 { font-size: 19px; margin: 0; }
.aatce .shot h3 i { color: var(--blue); margin-right: 8px; }
.aatce .shot p { margin: 0; font-size: 15px; }
.aatce .platform .band { margin-top: 40px; }
.aatce .band h3 i { margin-right: 10px; color: #F2B8B0; }

/* ---- Contact ---- */
.aatce .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; padding-top: 56px; padding-bottom: 88px; }
.aatce .contact-info-section.card, .aatce .contact-form-section.card { padding: 32px; margin: 0; }
.aatce .contact-info-item { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.aatce .contact-info-item i { width: 44px; height: 44px; border-radius: 10px; background: var(--icon-bg); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.aatce .contact-info-item h3, .aatce .contact-form-section h2 { margin: 0; }
.aatce .contact-info-item p { margin: 0; }
.aatce .contact-form-section h2 { font-size: 28px; margin-bottom: 20px; text-align: left; }
.aatce .contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aatce .contact-form .form-group:nth-child(n+3), .aatce .contact-form button { grid-column: 1 / -1; }
.aatce .contact-form .form-group { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.aatce .contact-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.aatce .contact-form :is(input, textarea) { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); width: 100%; }
.aatce .contact-form textarea { min-height: 150px; resize: vertical; }
.aatce .contact-form :is(input, textarea):focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.aatce .contact-form button { justify-self: start; border: 0; }
.aatce .text-danger { color: var(--red); font-size: 13px; }

/* ---- Blog index ---- */
.aatce .article-card.hidden { display: none !important; }   /* category filter state (was in the page <style>) */
.aatce .ccard .btn { white-space: normal; text-align: center; }
.aatce .blogx { max-width: none; width: auto; margin: 0; padding: 0; background: none; }
.aatce .blogx .blog-container { max-width: 1200px; margin: 0 auto; padding: 0 32px 88px; background: none; box-shadow: none; }
.aatce .blogx .blog-header { text-align: left; padding: 56px 0 32px; margin: 0; background: none; display: flex; flex-direction: column; gap: 16px; }
.aatce .blogx .blog-header h1 { font-size: 48px; margin: 0; color: var(--ink); }
.aatce .blogx .blog-header p { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0; }
.aatce .blogx .quick { display: flex; gap: 10px; flex-wrap: wrap; }
.aatce .blogx .quick i { color: var(--blue); }
.aatce .blog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; justify-content: flex-start; padding: 0; background: none; }
.aatce .category-filter.chip { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: none; }
.aatce .category-filter.chip i { color: var(--muted); }
.aatce .category-filter.chip:hover { border-color: var(--navy); color: var(--navy); }
.aatce .category-filter.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); }
.aatce .category-filter.chip.active i { color: #fff; }
.aatce .articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aatce .article-card.post { padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--text); box-shadow: none; text-align: left; transform: none; }
.aatce .article-card.post:hover { border-color: var(--blue); text-decoration: none; }
.aatce .article-card.post:hover .article-title { color: var(--blue); }
.aatce .article-card .article-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; margin: 0; }
.aatce .article-card .article-icon i { color: var(--blue); font-size: 17px; }
.aatce .article-card .article-category { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: none; padding: 0; }
.aatce .article-card .article-title { font-family: var(--font-head); font-size: 18px; line-height: 1.3; color: var(--ink); margin: 0; }
.aatce .article-card .article-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.aatce .article-card .article-meta i { color: var(--muted); }
.aatce .article-card .article-excerpt { font-size: 15px; margin: 0; color: var(--text); }
.aatce .article-card .read-more-btn { margin-top: auto; padding: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: 0; text-align: left; }
.aatce .articles-grid > .article-card:first-of-type { grid-column: 1 / -1; padding: 32px; }
.aatce .articles-grid > .article-card:first-of-type .article-title { font-size: 28px; }
.aatce .articles-grid > .article-card:first-of-type .article-excerpt { font-size: 17px; max-width: 820px; }
.aatce .blog-band { margin-top: 48px; }
.aatce .band-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---- Article ---- */
.aatce .artx { max-width: 1200px; width: auto; margin: 0 auto; padding: 40px 32px 88px; background: none; box-shadow: none; }
.aatce .artx .article-container { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
.aatce .artx .breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 20px; background: none; padding: 0; }
.aatce .artx .breadcrumb a { color: var(--muted); }
.aatce .artx .article-header { text-align: left; margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--line); background: none; }
.aatce .artx .article-header .article-title { font-family: var(--font-head); font-size: 44px; line-height: 1.15; color: var(--ink); margin: 0 0 16px; max-width: 900px; }
.aatce .artx .article-header .article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); justify-content: flex-start; }
.aatce .artx .article-meta i { color: var(--red); margin-right: 4px; }
.aatce .art-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.aatce .artx .article-content { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--text); background: none; padding: 0; box-shadow: none; }
.aatce .artx .article-content > * + * { margin-top: 18px; }
.aatce .artx .article-content :is(h2, h3) { font-family: var(--font-head); color: var(--ink); margin: 36px 0 0; line-height: 1.25; }
.aatce .artx .article-content h2 { font-size: 28px; }
.aatce .artx .article-content h3 { font-size: 23px; }
.aatce .artx .article-content :is(ul, ol) { padding-left: 24px; margin-left: 0 !important; }
.aatce .artx .article-content li { margin: 6px 0; }
.aatce .artx .article-content li::marker { color: var(--red); }
.aatce .artx .article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.aatce .artx .article-content strong { color: var(--ink); }
.aatce .artx .article-image { margin: 8px 0 8px; text-align: left; }
.aatce .artx .article-image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--sand-2); }
.aatce .artx .article-image p { font-size: 14px; color: var(--muted); margin: 10px 0 0; font-style: normal; text-align: left; }
.aatce .artx .cta-section.band { margin-top: 40px; text-align: left; }
.aatce .artx .cta-section.band h3 { margin: 0; color: #fff; }
.aatce .artx .cta-section.band p { color: var(--on-dark) !important; margin: 0; }
.aatce .artx .cta-section.band .cta-button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; box-shadow: none; }
.aatce .art-aside { flex: 1 1 280px; max-width: 340px; position: sticky; top: calc(var(--hdr-h, 77px) + 20px); display: flex; flex-direction: column; gap: 16px; }
.aatce .side-course { padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 32px rgba(14, 26, 43, .08); }
.aatce .cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.aatce .sc-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.25; }
.aatce .sc-price { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--ink); }
.aatce .side-course .btn { width: 100%; margin-top: 4px; }
.aatce .sc-note { font-size: 13px; color: var(--muted); text-align: center; }
.aatce .side-toc { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.aatce .toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.aatce .toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.35; }
.aatce .toc a:hover { border-left-color: var(--red); color: var(--ink); text-decoration: none; }
.aatce .artx .related-articles.card { margin-top: 48px; padding: 28px 32px; background: var(--card); box-shadow: none; }
.aatce .artx .related-articles h3 { font-size: 22px; margin: 0 0 16px; }
.aatce .artx .related-articles ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.aatce .artx .related-articles li { border-top: 1px solid var(--line); margin: 0; padding: 0; }
.aatce .artx .related-articles a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; color: var(--navy); }
.aatce .artx .related-articles a::after { content: "\2192"; color: var(--blue); }
.aatce .artx :is(.warning-box, .info-box, .tip-box, .highlight-box, .blog-highlight) { background: var(--sand); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 22px; }
.aatce .artx :is(.info-box, .tip-box) { border-left-color: var(--blue); }
.aatce .artx table { border-collapse: collapse; width: 100%; font-size: 16px; }
.aatce .artx :is(th, td) { border-top: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---- Course pages: "<trade> CE by City" ---- */
.aatce .c-cities { padding-bottom: 40px; }
.aatce .course-cities-section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px 36px; display: flex; flex-direction: column; gap: 12px; margin: 0; text-align: left; box-shadow: none; }
.aatce .course-cities-section h2 { font-size: 26px; margin: 0; }
.aatce .course-cities-section p { margin: 0; color: var(--muted); }
.aatce .course-cities-grid { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aatce .course-cities-grid li { margin: 0; padding: 0; background: none; border: 0; }
.aatce .course-cities-grid a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.aatce .course-cities-grid a:hover { border-color: var(--navy); background: var(--sand); }
.aatce .course-cities-grid a i { color: var(--red); }

/* ===================== Round 6 ===================== */
/* article closing CTA: articles' own CSS forces .cta-button text white !important -> blue on white */
.aatce .artx .cta-section.band .cta-button { background: #fff !important; color: var(--blue) !important; border: 0 !important; display: inline-flex !important; width: auto !important; justify-content: center; }
.aatce .artx .cta-section.band .cta-button:hover { background: var(--sand) !important; color: var(--navy) !important; }
.aatce .artx .cta-section.band { border: 0 !important; border-top: var(--stripe) !important; }
/* home reviews band: the course-page review rule zeroed its padding */
.aatce .testimonials-module.sec { padding: 88px 0; }
@media (max-width: 560px) { .aatce .testimonials-module.sec { padding: 56px 0; } }

/* ===================== Round 5 (review fixes) ===================== */
body.checkout-opened #coursePopupModal { display: none !important; }   /* never cover an open/used checkout */
.aatce .checkout-header h3 { padding-right: 40px; }
.aatce .ce-option-best { font-size: 14px; color: var(--ok-ink); background: var(--ok-bg); border-radius: 8px; padding: 6px 10px; margin: 8px 0 4px; }
.aatce .ce-option-best strong { color: var(--ok-ink); }
/* slim course strip on older-layout pages */
.aatce .course-strip { background: var(--sand); border-bottom: 1px solid var(--line); font-size: 15px; }
.aatce .course-strip .wrap { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.aatce .cs-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.aatce .cs-meta { color: var(--muted); }
.aatce .course-strip .btn { margin-left: auto; min-height: 40px; }
/* map stubs: the US map graphic + legend read as broken; the Texas card below carries the info */
body.aatce-legacy .map-container :is(.us-map, .legend) { display: none !important; }
body.aatce-legacy .map-container { padding-bottom: 0; }
/* older layouts: primary actions blue like the rest of the site, tighter headings */
body.aatce-legacy :is(.ref-btn:not(.alt), table.matrix .enroll, .tool-card button, .course-link, .primary-cta) { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
body.aatce-legacy :is(.ref-btn:not(.alt), table.matrix .enroll, .tool-card button, .course-link, .primary-cta):hover { background: var(--blue-hover) !important; }
body.aatce-legacy .ref-btn.alt { background: var(--navy) !important; color: #fff !important; }
body.aatce-legacy h1 { line-height: 1.15; text-wrap: balance; }
body.aatce-legacy .page-title, body.aatce-legacy .page-title :is(h1, p) { text-align: left; }
/* home: popular rows read as links */
.aatce .pop::after { content: "\203A"; color: var(--blue); font-size: 22px; line-height: 1; margin-left: 4px; }
/* course pages (desktop): photo pinned at top of the hero instead of floating mid-column */
.aatce:not(.aatce-legacy) .c-hero .course-hero-grid { align-items: start; }
.aatce:not(.aatce-legacy) .course-hero-image { position: sticky; top: calc(var(--hdr-h, 77px) + 20px); }
/* reviews: written reviews first, star-only ones compact; names title-cased (display only) */
.aatce .reviews-list .review-item:has(.review-text) { order: -1; }
.aatce .reviews-list .review-item:not(:has(.review-text)) { padding: 10px 14px; }
.aatce .reviewer-name { text-transform: capitalize; }
.aatce .review-badge { text-transform: uppercase; }
/* footer links: 44px tap targets */
.aatce .ftr .flinks { gap: 0; }
.aatce .ftr .flinks li { min-height: 44px; display: flex; align-items: center; }
.aatce .ftr .flinks a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1024px) {
  .aatce:not(.aatce-legacy) .course-hero-image { position: static; }
  .aatce .art-layout > .art-aside { order: -1; max-width: none; }     /* phones/tablets: course card before the article */
  .aatce .art-aside .side-toc { display: none; }
  .aatce .h-hero .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 32px; }
  .aatce .g4, .aatce .profession-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aatce .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aatce .art-aside { position: static; max-width: none; }
  .aatce:not(.aatce-legacy) .c-hero .course-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .aatce:not(.aatce-legacy) .course-hero-purchase { order: -1; }
}
@media (max-width: 900px) {
  .aatce .fgrid { grid-template-columns: 1fr; gap: 32px; }
  .aatce:not(.aatce-legacy) .layout { gap: 40px; }
  .aatce:not(.aatce-legacy) .layout > .aside { position: static; max-width: none; order: 0; }  /* price card before content on phones/tablets */
  .aatce:not(.aatce-legacy) .testimonials-grid { grid-template-columns: 1fr; }
  .aatce:not(.aatce-legacy) .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aatce .bsub { display: none; }
  .aatce .hdr .wrap { gap: 8px 12px; }
  .aatce .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .aatce .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .aatce .g3, .aatce .g2, .aatce .testimonials-grid.testimonials-grid, .aatce .simple-course-grid { grid-template-columns: 1fr; }
  .aatce .two { grid-template-columns: 1fr; padding-top: 32px; }
  .aatce .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aatce .artx .related-articles ul { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  html.hdr-compact body.aatce .hdr .nav { display: none; }            /* scrolling down: one slim header row */
  .aatce main.pg.pg { display: flex; flex-direction: column; }
  .aatce main.pg > .pg-hero { order: -2; }
  .aatce.page-courses main.pg > .featured-courses-module { order: -1; }   /* priced courses before professions on phones */
  body.aatce-legacy .table-wrap::before { content: "Swipe to see more \2192"; display: block; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 0 6px; }
  body.aatce-legacy table.matrix a { display: inline-block; padding: 10px 4px; }
}
@media (max-width: 560px) {
  .aatce .hero-tiles-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aatce .ccard { padding: 14px; gap: 8px; }
  .aatce .ccard .ico { width: 34px; height: 34px; font-size: 15px; }
  .aatce .ccard h3 { font-size: 16px; }
  .aatce .ccard .price { font-size: 21px; }
  .aatce .ccard .old { font-size: 13px; }
  .aatce .ccard .btn { min-height: 40px; padding: 6px 8px; font-size: 13px; }
  .aatce .course-strip .btn { margin-left: 0; }
  body.aatce-legacy .container { width: auto; padding-left: 12px; padding-right: 12px; }
  body.aatce-legacy .module { padding: 20px 16px; }
  .aatce .g4, .aatce .profession-tiles, .aatce .articles-grid { grid-template-columns: 1fr; }
  .aatce .sec { padding: 56px 0; }
  .aatce .sechead h2, .aatce .sechead h3, .aatce .h2like, .aatce .sec > .wrap > h2 { font-size: 28px; }
  .aatce .hero-text h1 { font-size: 36px; }
  .aatce .h-hero .hero { padding: 40px 16px; }
  .aatce .pg-hero { padding: 36px 0; }
  .aatce .pg-hero h1, .aatce .blogx .blog-header h1 { font-size: 34px; }
  .aatce .artx { padding: 24px 16px 56px; }
  .aatce .artx .article-header .article-title { font-size: 32px; }
  .aatce .artx .article-content { font-size: 17px; }
  .aatce .blogx .blog-container { padding: 0 16px 56px; }
  .aatce .band { padding: 32px 22px; }
  .aatce .contact-form { grid-template-columns: 1fr; }
  .aatce .course-cities-section { padding: 24px 20px; }
  .aatce .panel { padding: 22px; }
  .aatce .filter-controls select { min-width: 0; width: 100%; }
  .aatce .hero-cta-section { grid-template-columns: 1fr; }
  .aatce .wrap { padding: 0 16px; }
  .aatce:not(.aatce-legacy) .hero-title { font-size: 30px; }
  .aatce:not(.aatce-legacy) .c-hero { padding: 24px 0 32px; }
  .aatce:not(.aatce-legacy) .course-hero-purchase { padding: 22px; }
  .aatce:not(.aatce-legacy) .course-tabs .tab-panel.active { padding: 24px 18px; }
  .aatce:not(.aatce-legacy) .tab-panel h2, .aatce .testimonials-module h2 { font-size: 26px; }
  .aatce:not(.aatce-legacy) .course-highlights-2col, .aatce:not(.aatce-legacy) .renewal-timeline { grid-template-columns: 1fr; }
  .aatce:not(.aatce-legacy) .mod { padding: 72px 20px 20px; }
  .aatce:not(.aatce-legacy) .mod::before { left: 20px; top: 20px; }
  .aatce .brand-logo { width: 125px; height: 40px; }
  .aatce .acts .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .aatce .topbar { font-size: 12px; }
  .aatce:not(.aatce-legacy) .c-body { padding-top: 32px; padding-bottom: 64px; }
  .aatce .fgrid { padding: 48px 0 32px; }
  .aatce .checkout-modal { padding: 24px 18px; }
}
