/* =====================================================================
   CMA Fast Track: homepage features (announcement bar, hero slider,
   plans first + demo, post strip, section blocks, demo offer).
   Scoped to html.cft-v2.cft-x: loaded only while the features are on
   (administrators only for now). Uses the tokens from facelift.css.
   ===================================================================== */

/* ---- buttons shared by the new blocks -------------------------------- */
html.cft-v2.cft-x .cft-btn { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 600; justify-content: center; line-height: 1.2; min-height: 44px; padding: 10px 20px; text-decoration: none !important; transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
html.cft-v2.cft-x .cft-btn.is-primary { background: var(--amber-ink); color: #fff !important; }
html.cft-v2.cft-x .cft-btn.is-ghost { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2.cft-x .cft-btn.is-primary:hover { background: var(--amber-deep); }
  html.cft-v2.cft-x .cft-btn.is-ghost:hover { border-color: #fff; }
}
html.cft-v2.cft-x .cft-btn:active { transform: scale(0.97); }
html.cft-v2.cft-x .cft-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
html.cft-v2.cft-x .cft-x-wrap { margin: 0 auto; max-width: 1180px; padding-inline: 24px; }
html.cft-v2.cft-x .cft-x-eyebrow { color: var(--amber-ink); font-size: 15px; font-weight: 600; margin: 0 0 4px; }
/* labels: plain words; members posts add a small lock */
html.cft-v2.cft-x .cft-x-badge { align-items: center; display: inline-flex; flex: none; font-size: 13px; font-weight: 500; gap: 5px; line-height: 1.2; white-space: nowrap; }
html.cft-v2.cft-x .cft-x-badge.is-free { color: var(--subtle); }
html.cft-v2.cft-x .cft-x-badge.is-members { color: var(--amber-deep); font-weight: 600; }
html.cft-v2.cft-x .cft-x-badge.is-members::before { background: currentColor; content: ""; height: 12px; -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.5' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center / contain; 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.5' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center / contain; width: 12px; }

/* ---- 1. announcement bar ---------------------------------------------- */
html.cft-v2.cft-x .cft-topbar { align-items: center; background: var(--ink); color: #fff; display: flex; font-size: 14px; height: 38px; overflow: hidden; position: relative; }
html.cft-v2.cft-x.cft-topbar-off .cft-topbar { display: none; }
html.cft-v2.cft-x .cft-topbar-track { animation: cft-marquee 45s linear infinite; display: flex; flex: none; width: max-content; }
html.cft-v2.cft-x .cft-topbar:hover .cft-topbar-track, html.cft-v2.cft-x .cft-topbar:focus-within .cft-topbar-track { animation-play-state: paused; }
html.cft-v2.cft-x .cft-topbar-row { display: flex; list-style: none; margin: 0; padding: 0; }
html.cft-v2.cft-x .cft-topbar-row li { padding: 0 28px; position: relative; white-space: nowrap; }
html.cft-v2.cft-x .cft-topbar-row li::after { background: var(--amber); border-radius: 50%; content: ""; height: 5px; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); width: 5px; }
html.cft-v2.cft-x .cft-topbar a { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-topbar a:hover { text-decoration-color: var(--amber); } }
html.cft-v2.cft-x .cft-topbar-close { align-items: center; background: var(--ink) !important; border: 0 !important; box-shadow: -12px 0 12px var(--ink); color: #fff !important; cursor: pointer; display: flex; font-size: 20px; height: 38px; justify-content: center; line-height: 1; margin-left: auto; padding: 0 !important; position: absolute; right: 0; top: 0; width: 40px; }
@keyframes cft-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- page order on the home page ------------------------------------- */
html.cft-v2.cft-x .elementor-2097 { display: flex; flex-direction: column; }
html.cft-v2.cft-x .elementor-2097 > * { width: 100%; }
html.cft-v2.cft-x .elementor-2097 > .elementor-element-153a1e1 { display: none !important; }
/* course-site order: hero, plans + demo, why, latest posts, sections, video,
   join. "Why" and "Join" are the old hero's 2nd and 3rd bands, moved out by
   extras.js. The Elementor video (eb634cd) repeats the latest video. */
html.cft-v2.cft-x .elementor-2097 > * { order: 100; }
html.cft-v2.cft-x .elementor-2097 > .cft-slider { order: 10; }
html.cft-v2.cft-x .elementor-2097 > .elementor-element-a42b758 { order: 20; }
html.cft-v2.cft-x .elementor-2097 > .cft-x-demo { order: 30; }
html.cft-v2.cft-x .elementor-2097 > .cft-why { order: 40; }
html.cft-v2.cft-x .elementor-2097 > .elementor-element-6ec998f { order: 80; }
html.cft-v2.cft-x .elementor-2097 > .cft-strip { order: 60; }
html.cft-v2.cft-x .elementor-2097 > .cft-secs { order: 70; }
html.cft-v2.cft-x .elementor-2097 > .cft-latest-video { order: 50; }
html.cft-v2.cft-x .elementor-2097 > .cft-join { order: 90; }
html.cft-v2.cft-x .elementor-2097 > .elementor-element-50f8d91 { order: 95; }
html.cft-v2.cft-x .elementor-2097 > :is(.elementor-element-eb634cd, .elementor-element-0f259fb, .elementor-element-1d4118f, .elementor-element-89d23d8) { display: none !important; }

/* ---- 2. hero slider --------------------------------------------------- */
html.cft-v2.cft-x .cft-slider { background: var(--ink); color: #fff; position: relative; }
html.cft-v2.cft-x .cft-slider-track { display: grid; }
html.cft-v2.cft-x .cft-slider-track::-webkit-scrollbar { display: none; }
html.cft-v2.cft-x .cft-slide { align-items: center; display: flex; grid-area: 1 / 1; min-height: clamp(420px, 62vh, 560px); opacity: 0; transition: opacity 280ms ease, visibility 0s linear 280ms; visibility: hidden; }
html.cft-v2.cft-x .cft-slide[aria-hidden="false"] { opacity: 1; transition: opacity 280ms ease; visibility: visible; }
html.cft-v2.cft-x .cft-slider:not(.is-ready) .cft-slide:first-child { opacity: 1; visibility: visible; }
html.cft-v2.cft-x .cft-slide-inner { margin: 0 auto; max-width: 1180px; padding: clamp(48px, 7vw, 88px) 24px 104px; width: 100%; }
html.cft-v2.cft-x .cft-slide-eyebrow { color: rgba(255, 255, 255, .78); font-size: 16px; font-weight: 600; margin: 0 0 12px; }
html.cft-v2.cft-x .cft-slide-title { color: #fff !important; font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
html.cft-v2.cft-x .cft-slide-body { color: #cbd5e1; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 60ch; }
html.cft-v2.cft-x .cft-slide-body p { margin: 0 0 12px; }
html.cft-v2.cft-x .cft-slide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
html.cft-v2.cft-x .cft-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
html.cft-v2.cft-x .cft-slider a.cft-chip { border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #fff !important; font-size: 14px; padding: 6px 14px; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-slider a.cft-chip:hover { border-color: #fff; } }
html.cft-v2.cft-x .cft-slide-plans { display: grid; gap: 10px; list-style: none; margin: 4px 0 0; max-width: 520px; padding: 0; }
html.cft-v2.cft-x .cft-slide-plans li { align-items: baseline; border-bottom: 1px solid rgba(255, 255, 255, .15); display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; }
html.cft-v2.cft-x .cft-slide-plan-name { color: #fff; font-weight: 600; }
html.cft-v2.cft-x .cft-slide-plan-price { color: #fff; font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
html.cft-v2.cft-x .cft-slide-plan-price small { color: #cbd5e1; font-size: 14px; font-weight: 500; }
html.cft-v2.cft-x .cft-slider-nav { bottom: 0; display: none; left: 50%; max-width: 1180px; padding-inline: 24px; position: absolute; transform: translateX(-50%); width: 100%; }
html.cft-v2.cft-x .cft-slider.is-ready .cft-slider-nav { display: block; }
/* named tabs; the line above the active one fills while it shows (7 s),
   and extras.js moves on when it is full */
html.cft-v2.cft-x .cft-slider-tabs { border-top: 1px solid rgba(255, 255, 255, .16); display: flex; gap: clamp(16px, 3vw, 36px); overflow-x: auto; scrollbar-width: none; }
html.cft-v2.cft-x .cft-slider-tabs button { -webkit-tap-highlight-color: transparent; background: transparent !important; border: 0 !important; color: rgba(255, 255, 255, .8) !important; cursor: pointer; flex: none; font-size: 15px; font-weight: 600; min-height: 48px; padding: 14px 0 18px !important; position: relative; touch-action: manipulation; transition: color 150ms ease; }
html.cft-v2.cft-x .cft-slider-tabs button::before { background: var(--red-light); content: ""; height: 2px; left: 0; position: absolute; right: 0; top: -1px; transform: scaleX(0); transform-origin: left; }
html.cft-v2.cft-x .cft-slider-tabs button[aria-selected="true"] { color: #fff !important; }
html.cft-v2.cft-x .cft-slider-tabs button[aria-selected="true"]::before { animation: cft-tab-fill 7s linear forwards; }
html.cft-v2.cft-x .cft-slider.is-paused .cft-slider-tabs button::before { animation-play-state: paused; }
html.cft-v2.cft-x .cft-slider.is-stopped .cft-slider-tabs button[aria-selected="true"]::before { animation: none; transform: none; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-slider-tabs button:hover { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 6px; } }
@keyframes cft-tab-fill { to { transform: scaleX(1); } }
html.cft-v2.cft-x .cft-slider :is(button, a):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- 3. demo (free trial) under the plans ----------------------------- */
html.cft-v2.cft-x .cft-x-demo { padding: 0 0 clamp(40px, 5vw, 64px); }
html.cft-v2.cft-x .cft-x-demo .cft-x-wrap > div { flex: 1; }
html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 32px; }
html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { background: var(--amber-soft); border-radius: var(--radius-lg); max-width: 1132px; padding: 24px 28px; }
html.cft-v2.cft-x .cft-x-demo h2 { color: var(--ink); font-size: 24px; margin: 0 0 4px; }
html.cft-v2.cft-x .cft-x-demo p { color: var(--text); margin: 0; }
html.cft-v2.cft-x .cft-x-demo .cft-x-eyebrow { color: var(--amber-ink); }

/* ---- 4. moving strip of the latest posts ------------------------------ */
html.cft-v2.cft-x .cft-strip { padding: clamp(40px, 5vw, 64px) 0; }
html.cft-v2.cft-x .cft-strip h2, html.cft-v2.cft-x .cft-secs h2 { color: var(--ink); font-size: clamp(24px, 3vw, 30px); margin: 0 0 20px; }
html.cft-v2.cft-x .cft-strip-viewport { overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
html.cft-v2.cft-x .cft-strip-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 clamp(32px, 8vw, 120px), #000 calc(100% - clamp(32px, 8vw, 120px)), transparent); mask-image: linear-gradient(90deg, transparent, #000 clamp(32px, 8vw, 120px), #000 calc(100% - clamp(32px, 8vw, 120px)), transparent); }
html.cft-v2.cft-x .cft-strip-viewport.is-moving { overflow: hidden; }
html.cft-v2.cft-x .cft-strip-track { display: flex; list-style: none; margin: 0; padding: 0 8px 0 24px; width: max-content; }
html.cft-v2.cft-x .cft-strip-viewport.is-moving .cft-strip-track { animation: cft-marquee var(--cft-strip-time, 60s) linear infinite; padding: 0; width: max-content; }
html.cft-v2.cft-x .cft-strip-viewport.is-moving:is(:hover, :focus-within) .cft-strip-track { animation-play-state: paused; }
html.cft-v2.cft-x .cft-strip-track li { flex: none; margin-right: 16px; width: 280px; }
html.cft-v2.cft-x .cft-strip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text) !important; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; text-decoration: none !important; transition: border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-strip-card:hover { border-color: var(--line-strong); } html.cft-v2.cft-x .cft-strip-card:hover .cft-strip-title { color: var(--amber-ink); } }
html.cft-v2.cft-x .cft-strip-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
html.cft-v2.cft-x .cft-strip-meta { align-items: center; color: var(--subtle); display: flex; font-size: 13px; font-weight: 500; gap: 8px; justify-content: space-between; }
html.cft-v2.cft-x .cft-strip-title { color: var(--ink); display: -webkit-box; font-size: 16px; font-weight: 700; line-height: 1.35; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
html.cft-v2.cft-x .cft-strip-date { color: var(--subtle); font-size: 13px; margin-top: auto; }

/* ---- 5. one block per site section ------------------------------------ */
html.cft-v2.cft-x .cft-secs { padding: 0 0 clamp(48px, 6vw, 80px); }
html.cft-v2.cft-x .cft-secs-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); overflow: hidden; }
html.cft-v2.cft-x .cft-secs-tabs { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 10px; }
html.cft-v2.cft-x .cft-secs-tabs button { -webkit-tap-highlight-color: transparent; background: transparent !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; color: var(--text) !important; cursor: pointer; font-family: var(--font) !important; font-size: 15px; font-weight: 500; line-height: 1.35; min-height: 44px; padding: 10px 14px !important; text-align: left; transition: background-color 150ms ease, color 150ms ease; }
html.cft-v2.cft-x .cft-secs-tabs button[aria-selected="true"] { background: var(--ink) !important; color: #fff !important; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-secs-tabs button[aria-selected="false"]:hover { background: var(--bg) !important; color: var(--ink) !important; } }
html.cft-v2.cft-x .cft-secs-tabs button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
html.cft-v2.cft-x .cft-sec { padding: 22px 28px 24px; }
html.cft-v2.cft-x .cft-sec h3 { font-size: 20px; margin: 0 0 4px; }
html.cft-v2.cft-x .cft-sec h3 a { color: var(--ink) !important; text-decoration: none !important; }
html.cft-v2.cft-x .cft-sec-desc { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
html.cft-v2.cft-x .cft-sec ul { list-style: none; margin: 8px 0 14px; padding: 0; }
html.cft-v2.cft-x .cft-sec li { align-items: baseline; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 13px 0; }
html.cft-v2.cft-x .cft-sec li a { color: var(--text) !important; font-size: 16px; line-height: 1.4; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-sec li a:hover { color: var(--amber-ink) !important; } }
html.cft-v2.cft-x .cft-sec-all { color: var(--amber-ink) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
@media (max-width: 760px) {
  html.cft-v2.cft-x .cft-secs-box { grid-template-columns: minmax(0, 1fr); }
  html.cft-v2.cft-x .cft-secs-tabs { border-bottom: 1px solid var(--line); border-right: 0; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  html.cft-v2.cft-x .cft-secs-tabs button { flex: none; }
  html.cft-v2.cft-x .cft-sec { padding: 18px 18px 20px; }
}

/* ---- 6. demo offer (bottom corner, not a full-screen popup) ----------- */
html.cft-v2.cft-x .cft-offer { font-family: var(--font); left: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); bottom: 20px; box-shadow: var(--shadow-lg); max-width: 340px; opacity: 0; padding: 20px 22px; position: fixed; transform: translateY(12px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); z-index: 9990; }
html.cft-v2.cft-x .cft-offer.is-open { opacity: 1; transform: none; }
/* the theme sets aside{display:block}, which beats [hidden]: a closed card
   stayed invisible but kept catching taps over the slider arrows */
html.cft-v2.cft-x .cft-offer[hidden] { display: none !important; }
html.cft-v2.cft-x .cft-offer:not(.is-open) { pointer-events: none; }
html.cft-v2.cft-x .cft-offer-title { color: var(--ink); font-size: 19px; font-weight: 800; margin: 0 0 4px; padding-right: 24px; }
html.cft-v2.cft-x .cft-offer p { color: var(--muted); margin: 0 0 14px; }
html.cft-v2.cft-x .cft-offer .cft-x-eyebrow { margin-bottom: 6px; }
html.cft-v2.cft-x .cft-offer-close { background: transparent !important; border: 0 !important; color: var(--subtle) !important; cursor: pointer; font-size: 22px; height: 36px; line-height: 1; padding: 0 !important; position: absolute; right: 8px; top: 8px; width: 36px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-offer-close:hover { color: var(--ink) !important; } }
html.cft-v2.cft-x .cft-offer-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; }

@media (max-width: 640px) {
  html.cft-v2.cft-x .cft-x-wrap, html.cft-v2.cft-x .cft-slide-inner { padding-inline: 16px; }
  html.cft-v2.cft-x .cft-slider-nav { padding-inline: 16px; }
  html.cft-v2.cft-x .cft-slider-tabs button { font-size: 14px; }
  html.cft-v2.cft-x .cft-strip-track li { width: 240px; }
  html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { margin-inline: 16px; padding: 20px; }
  html.cft-v2.cft-x .cft-offer { bottom: 12px; left: 12px; max-width: none; right: 12px; }
  html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html.cft-v2.cft-x .cft-topbar-track { animation: none; }
  html.cft-v2.cft-x .cft-topbar-row[aria-hidden="true"] { display: none; }
  html.cft-v2.cft-x .cft-topbar { overflow-x: auto; }
  html.cft-v2.cft-x .cft-offer { transform: none; transition: opacity 120ms ease; }
}

/* the theme's paragraph and button fonts win over inherited ones */
html.cft-v2.cft-x :is(.cft-btn, .cft-offer-title, .cft-offer p, .cft-slide-title, .cft-strip-card, .cft-sec) { font-family: var(--font) !important; }
html.cft-v2.cft-x .cft-offer-title { color: var(--ink) !important; font-weight: 800 !important; }

/* =====================================================================
   Design cleanup (Nov 30). Overrides facelift.css for the same audience
   as the features above: administrators now, everyone when published.
   ===================================================================== */
/* labels in sentence case, not tracked capitals */
html.cft-v2.cft-x .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(1) { font-size: 15px !important; letter-spacing: 0; text-transform: none; }
html.cft-v2.cft-x .elementor-element-d54962b .htslider-scroll-navigation-content h4 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0; margin: 0 0 12px; text-transform: none; }
html.cft-v2.cft-x .widget-area .widget-title { font-size: 14px; letter-spacing: 0; text-transform: none; }
html.cft-v2.cft-x .cft-auth :is(.cft-plans-label, .pmpro_form_heading, #pmpro_pricing_fields > .pmpro_card_title) { font-size: 15px !important; letter-spacing: 0; text-transform: none; }
html.cft-v2.cft-x .cft-articles-label { font-size: 14px; letter-spacing: 0; text-transform: none; }
/* "Join thousands of aspiring CMAs" + "who have trusted us…" is one sentence
   split across an h4 and an h2: set both as one headline */
html.cft-v2.cft-x .elementor-element-d54962b .htslider-scroll-navigation-content h4:has(+ h2) { color: var(--ink) !important; font-size: clamp(28px, 3.6vw, 42px) !important; font-weight: 750 !important; letter-spacing: -0.025em; line-height: 1.15 !important; margin: 0 !important; text-wrap: balance; }
html.cft-v2.cft-x .elementor-element-d54962b .htslider-scroll-navigation-content h4:has(+ h2) + h2 { text-wrap: balance; }
/* no decorative stripes on the feature and plan cards */
html.cft-v2.cft-x .elementor-element-149386e .slick-slide::before,
html.cft-v2.cft-x table.pmpro_levels_table tr.pmpro_level::before { content: none; }
/* no arrow glyph after card buttons */
html.cft-v2.cft-x .site-main > article .entry-content .cft-card-actions a.btn::after { content: none; }
/* theme credit line in the footer: not the client's text */
html.cft-v2.cft-x #colophon .site-info p:has(> a[href*="wordpress.org"]) { display: none; }
html.cft-v2.cft-x #colophon .site-info { justify-content: flex-end; }

/* =====================================================================
   Palette (Nov 30): navy + the logo's red, replacing the orange.
   The --amber* names stay so every existing rule follows.
   ===================================================================== */
html.cft-v2.cft-x {
  --ink: #14213d; --ink-2: #1b2c50; --ink-3: #2a4170;
  --amber: #c1121f; --amber-ink: #c1121f; --amber-deep: #9b0e19; --amber-soft: #fbeaec;
  --red-light: #ff8a93;
  --bg: #f6f7f9;
  --memberlite-color-action: #c1121f;
}
/* warm orange glows and shadows in facelift.css */
html.cft-v2.cft-x #content > header.masthead { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%) !important; }
html.cft-v2.cft-x .elementor-2097 .elementor-element-0e7158e .elementor-button { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x .cft-slider-tabs button[aria-selected="true"]::before { animation: none; transform: none; } }

/* ---- why + join: the old hero's bands, moved by extras.js ------------ */
html.cft-v2.cft-x .cft-why { padding: clamp(48px, 6vw, 80px) 24px; text-align: center; }
html.cft-v2.cft-x .cft-why > div, html.cft-v2.cft-x .cft-join > div { margin: 0 auto; max-width: 760px; }
html.cft-v2.cft-x :is(.cft-why, .cft-join) :is(h2, h4, p, span) { color: inherit !important; font-family: var(--font) !important; text-align: center !important; }
html.cft-v2.cft-x .cft-why h4 { color: var(--amber-ink) !important; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
html.cft-v2.cft-x .cft-why h2 { color: var(--ink) !important; font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
html.cft-v2.cft-x .cft-why p { color: var(--muted) !important; font-size: 17px; line-height: 1.7; margin: 0 auto; max-width: 64ch; }
html.cft-v2.cft-x .cft-join { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 24px; }
html.cft-v2.cft-x .cft-join :is(h4, h2) { color: #fff !important; font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
html.cft-v2.cft-x .cft-join h2 { margin-bottom: 16px; }
html.cft-v2.cft-x .cft-join p { color: rgba(255, 255, 255, .8) !important; font-size: 17px; line-height: 1.7; margin: 0 auto 12px; max-width: 64ch; }
html.cft-v2.cft-x .cft-join p strong, html.cft-v2.cft-x .cft-join p em { color: #fff; font-style: normal; }
html.cft-v2.cft-x .cft-join a { align-items: center; background: var(--amber); border-radius: 999px; color: #fff !important; display: inline-flex; font-weight: 600; margin-top: 12px; min-height: 48px; padding: 12px 28px; text-decoration: none !important; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
html.cft-v2.cft-x .cft-join a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-join a:hover { background: var(--amber-deep); } }
html.cft-v2.cft-x .cft-join a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { html.cft-v2.cft-x :is(.cft-why, .cft-join) { padding-inline: 16px; } }
/* demo sits right under the plans, inside the same gutters */
html.cft-v2.cft-x .elementor-2097 .elementor-element-a42b758 { padding-bottom: 16px !important; }
html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { max-width: min(1132px, calc(100% - 48px)); }
@media (max-width: 640px) { html.cft-v2.cft-x .cft-x-demo .cft-x-wrap { max-width: none; } }

/* buttons are links: keep the theme's red link-hover colour off them */
/* (the theme's content-link hover rule is very specific, hence body + doubled class) */
html.cft-v2.cft-x body a.cft-btn.cft-btn, html.cft-v2.cft-x body a.cft-btn.cft-btn:is(:hover, :focus-visible, :active) { color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-btn.is-ghost:hover { background: rgba(255, 255, 255, .1); } }
html.cft-v2.cft-x .cft-x-demo a.cft-btn:hover { background: var(--amber-deep); }

/* social links: part of the dark close of the page, not a white strip
   between two navy bands */
html.cft-v2.cft-x #post-2097 { margin-bottom: 0 !important; }
html.cft-v2.cft-x .elementor-2097 > .elementor-element-50f8d91 { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 24px !important; }
html.cft-v2.cft-x .elementor-element-50f8d91 :is(.elementor-container, .elementor-column, .elementor-widget-wrap, .elementor-widget, .elementor-widget-container) { margin: 0 !important; min-height: 0 !important; padding: 0 !important; }
html.cft-v2.cft-x .elementor-element-50f8d91 .ekit_social_media { display: flex; gap: 12px; justify-content: center; margin: 0; padding: 0; }
html.cft-v2.cft-x .elementor-element-50f8d91 .ekit_social_media li { margin: 0 !important; }
html.cft-v2.cft-x .elementor-element-50f8d91 .elementor-container { margin: 0 auto !important; }
/* an Elementor rule on the widget colours the icons navy, the same as the bar */
html.cft-v2.cft-x body .elementor-element-50f8d91 .ekit_social_media a :is(i, svg) { color: #fff !important; fill: #fff !important; font-size: 17px; }
html.cft-v2.cft-x .elementor-element-50f8d91 .ekit_social_media a { align-items: center; background: transparent !important; border: 1px solid rgba(255, 255, 255, .3) !important; border-radius: 50%; box-shadow: none !important; color: #fff !important; display: flex; height: 44px; justify-content: center; margin: 0 !important; transition: border-color 150ms ease; width: 44px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .elementor-element-50f8d91 .ekit_social_media a:hover { border-color: #fff !important; } }
html.cft-v2.cft-x .elementor-element-50f8d91 .ekit_social_media a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.cft-v2.cft-x #colophon { border-top: 0; }

/* ---- menu search: opens across the whole menu row; the menu items fade
   out while it is open and come back when it closes (Esc or click away) -- */
@media (min-width: 992px) {
  html.cft-v2.cft-x #site-navigation ul.menu { position: relative; }
  html.cft-v2.cft-x #site-navigation ul.menu > li { transition: opacity 200ms ease, visibility 0s; } /* showing again: visible at once, then fade in */
  html.cft-v2.cft-x #site-navigation ul.menu > li.cft-covered { opacity: 0; pointer-events: none; transition: opacity 120ms ease, visibility 0s linear 120ms; visibility: hidden; }
  html.cft-v2.cft-x #site-navigation ul.menu > li.menu-item-search { position: static; }
  html.cft-v2.cft-x #site-navigation li.menu-item-search .search-form { margin-left: auto; width: 40px; }
  html.cft-v2.cft-x #site-navigation li.menu-item-search:focus-within .search-form { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: max(280px, 30%); z-index: 5; }
  html.cft-v2.cft-x #site-navigation li.menu-item-search .search-field { transition: border-color 150ms ease, box-shadow 150ms ease; }
  html.cft-v2.cft-x #site-navigation li.menu-item-search .search-field:focus { animation: cft-search-open 200ms var(--ease-out); box-shadow: 0 0 0 3px rgba(20, 33, 61, .12); width: 100%; }
}
@keyframes cft-search-open { from { clip-path: inset(0 0 0 calc(100% - 40px) round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x #site-navigation li.menu-item-search .search-field:focus { animation: none; } }

/* mock-exam chips in the slider: the theme's link hover turned them dark */
html.cft-v2.cft-x body .cft-slider a.cft-chip.cft-chip, html.cft-v2.cft-x body .cft-slider a.cft-chip.cft-chip:is(:hover, :focus-visible, :active) { color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-slider a.cft-chip:hover { background: rgba(255, 255, 255, .1); } }
html.cft-v2.cft-x .cft-slider a.cft-chip { transition: background-color 150ms ease, border-color 150ms ease; }

/* video band right under "At CMA Fast Track": same vertical rhythm as it */
html.cft-v2.cft-x .elementor-2097 > .cft-latest-video { padding-bottom: clamp(48px, 6vw, 80px) !important; padding-top: clamp(48px, 6vw, 80px) !important; }
/* feature cards now follow "Explore the site" (which already ends in 80px) and lead into the navy join band */
html.cft-v2.cft-x .elementor-2097 > .elementor-element-6ec998f { padding-bottom: clamp(48px, 6vw, 80px) !important; padding-top: 0 !important; }

/* strip fade lines up with the site's content box (1132px): fully clear
   only across the middle three cards (3 x 280 + 2 x 16 = 872px), fading
   to nothing at the content edges; on phones it fades over the 16-48px gutter */
html.cft-v2.cft-x .cft-strip-viewport {
  --fade-out: calc(50% - min(566px, 50% - 16px));
  --fade-in: calc(50% - min(436px, 50% - 48px));
  -webkit-mask-image: linear-gradient(90deg, transparent var(--fade-out), #000 var(--fade-in), #000 calc(100% - var(--fade-in)), transparent calc(100% - var(--fade-out)));
  mask-image: linear-gradient(90deg, transparent var(--fade-out), #000 var(--fade-in), #000 calc(100% - var(--fade-in)), transparent calc(100% - var(--fade-out)));
}

/* feature cards as one panel, three columns (built by extras.js) */
html.cft-v2.cft-x .cft-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 1132px; overflow: hidden; }
html.cft-v2.cft-x .cft-feat > div { padding: 28px; text-align: left; }
html.cft-v2.cft-x .cft-feat > div + div { border-left: 1px solid var(--line); }
html.cft-v2.cft-x .cft-feat-tile { align-items: center; background: var(--bg); border-radius: 10px; display: flex; height: 120px; justify-content: center; margin-bottom: 20px; padding: 14px; }
html.cft-v2.cft-x .cft-feat-tile img { height: auto; max-height: 92px; max-width: 100%; object-fit: contain; width: auto; }
html.cft-v2.cft-x .cft-feat h3 { color: var(--ink); font-size: 20px; line-height: 1.25; margin: 0; text-wrap: balance; }
html.cft-v2.cft-x .cft-feat p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 6px 0 0; }
@media (max-width: 760px) {
  html.cft-v2.cft-x .cft-feat { grid-template-columns: minmax(0, 1fr); }
  html.cft-v2.cft-x .cft-feat > div { padding: 22px; }
  html.cft-v2.cft-x .cft-feat > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* demo under the plans: one centred line with a link */
html.cft-v2.cft-x .cft-x-demo { padding: 0 24px clamp(40px, 5vw, 64px); }
html.cft-v2.cft-x .cft-x-demo .cft-x-demo-line { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 auto; max-width: 1132px; text-align: center; text-wrap: balance; }
html.cft-v2.cft-x .cft-x-demo .cft-x-demo-line #cft-x-demo-title { color: var(--ink); font-weight: 600; }
html.cft-v2.cft-x body .cft-x-demo .cft-x-demo-line a { color: var(--amber-ink) !important; font-weight: 600; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-x-demo .cft-x-demo-line a:hover { color: var(--amber-deep) !important; text-decoration-thickness: 2px; } }

/* slider tabs: four equal columns, each over its own grey track; the active
   track fills white as the timer (the fill is the existing ::before) */
html.cft-v2.cft-x .cft-slider-tabs { border-top: 0; gap: clamp(12px, 2vw, 24px); overflow: visible; }
html.cft-v2.cft-x .cft-slider-tabs button { flex: 1 1 0; font-weight: 500; min-width: 0; padding: 15px 0 20px !important; text-align: left; white-space: nowrap; }
html.cft-v2.cft-x .cft-slider-tabs button::after { background: rgba(255, 255, 255, .18); border-radius: 3px; content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
html.cft-v2.cft-x .cft-slider-tabs button::before { background: #fff; border-radius: 3px; height: 3px; top: 0; z-index: 1; }
html.cft-v2.cft-x .cft-slider-tabs button[aria-selected="true"] { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-slider-tabs button:hover { color: #fff !important; text-decoration: none; } }
html.cft-v2.cft-x .cft-slider-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* Mock Exam buttons: soft solid */
html.cft-v2.cft-x .cft-slider a.cft-chip { background: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; font-weight: 500; padding: 9px 14px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-slider a.cft-chip:hover { background: rgba(255, 255, 255, .18); } }
html.cft-v2.cft-x .cft-slider a.cft-chip:active { transform: scale(.97); }
html.cft-v2.cft-x .cft-slider a.cft-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* site font (preview): Space Grotesk everywhere --font is used; Arabic keeps
   Noto Sans Arabic, as before. Its heaviest weight is 700, so 800 renders as 700. */
html.cft-v2.cft-x { --font: "Space Grotesk", -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans Arabic", sans-serif; }
html.cft-v2.cft-x, html.cft-v2.cft-x body, html.cft-v2.cft-x [class*="elementor-kit-"] {
  --e-global-typography-primary-font-family: "Space Grotesk";
  --e-global-typography-secondary-font-family: "Space Grotesk";
  --e-global-typography-text-font-family: "Space Grotesk";
  --e-global-typography-accent-font-family: "Space Grotesk";
}

/* announcement bar: dots sit on the text line, centred on the capitals
   (they were centred on the line box, which reads low) */
html.cft-v2.cft-x .cft-topbar-row { align-items: center; }
html.cft-v2.cft-x .cft-topbar-row li { line-height: 1; margin: 0 !important; padding: 0 0 0 28px; }
html.cft-v2.cft-x .cft-topbar-row li::after { content: none; }
html.cft-v2.cft-x .cft-topbar-row li::before { background: var(--amber); border-radius: 50%; content: ""; display: inline-block; height: 5px; margin-right: 28px; transform: translateY(calc(-0.35em + 2.5px)); vertical-align: baseline; width: 5px; }

/* demo line -> "At CMA Fast Track": the two paddings stacked to 144px; now ~72px */
html.cft-v2.cft-x .cft-x-demo { padding-bottom: 0; }
html.cft-v2.cft-x .cft-why { padding-top: clamp(40px, 5vw, 72px); }

/* menu row, option D: larger semi-bold grey labels; the current page is navy
   with the red line under the text, and the line slides in under any hovered item */
@media (min-width: 992px) {
  html.cft-v2.cft-x #site-navigation .main-navigation ul.menu > li > a { color: var(--muted); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; padding: 20px 7px; transition: color 150ms ease; }
  html.cft-v2.cft-x #site-navigation .main-navigation ul.menu > li:first-child > a { padding-left: 0; }
  html.cft-v2.cft-x .main-navigation ul.menu > li > a::before { bottom: 12px; left: 7px; right: 7px; }
  html.cft-v2.cft-x .main-navigation ul.menu > li:first-child > a::before { left: 0; }
  html.cft-v2.cft-x .main-navigation ul.menu > .menu-item-has-children > a::before { right: 22px; }
  html.cft-v2.cft-x #site-navigation .main-navigation ul.menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { color: var(--ink); }
}
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  html.cft-v2.cft-x #site-navigation .main-navigation ul.menu > li:hover > a { color: var(--ink); text-decoration: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  html.cft-v2.cft-x #site-navigation .main-navigation ul.menu > li > a { font-size: 14px; padding-inline: 6px; }
  html.cft-v2.cft-x .main-navigation ul.menu > li > a::before { left: 6px; right: 6px; }
  html.cft-v2.cft-x .main-navigation ul.menu > .menu-item-has-children > a::before { right: 20px; }
}

/* search: closing shrinks the field back into the magnifier (extras.js adds
   .is-closing for 200 ms) while the hidden menu items fade back in */
@media (min-width: 992px) {
  html.cft-v2.cft-x #site-navigation li.menu-item-search.is-closing .search-form { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: max(280px, 30%); z-index: 5; }
  html.cft-v2.cft-x #site-navigation li.menu-item-search.is-closing .search-field { animation: cft-search-close 200ms cubic-bezier(.23, 1, .32, 1) forwards; width: 100%; }
}
@keyframes cft-search-close { from { clip-path: inset(0 0 0 0 round 999px); opacity: 1; } to { clip-path: inset(0 0 0 calc(100% - 40px) round 999px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x #site-navigation li.menu-item-search.is-closing .search-field { animation: none; } }

/* header account (desktop), option A: one "Account" button with a menu */
html.cft-v2.cft-x .header-right #meta-member .member-navigation.cft-acct-replaced { display: none; }
html.cft-v2.cft-x .header-right #meta-member .user { display: none; }
html.cft-v2.cft-x .cft-acct { display: flex; justify-content: flex-end; position: relative; }
html.cft-v2.cft-x .cft-acct-trig { -webkit-tap-highlight-color: transparent; align-items: center; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 999px !important; box-shadow: none !important; color: var(--ink) !important; cursor: pointer; display: inline-flex; font-family: var(--font) !important; font-size: 14px; font-weight: 600; gap: 9px; line-height: 1; min-height: 42px; padding: 4px 14px 4px 4px !important; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-acct-trig:hover { background: var(--bg) !important; } }
html.cft-v2.cft-x .cft-acct-trig:active { transform: scale(.97); }
html.cft-v2.cft-x .cft-acct-trig:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
html.cft-v2.cft-x .cft-acct-av { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; display: flex; height: 32px; justify-content: center; width: 32px; }
html.cft-v2.cft-x .cft-acct-chev { opacity: .6; transition: transform 200ms var(--ease-out); }
html.cft-v2.cft-x .cft-acct.is-open .cft-acct-chev { transform: rotate(180deg); }
html.cft-v2.cft-x .cft-acct-menu { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .12); opacity: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); transform: scale(.97) translateY(-4px); transform-origin: top right; transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms; visibility: hidden; width: 240px; z-index: 1000; }
html.cft-v2.cft-x .cft-acct.is-open .cft-acct-menu { opacity: 1; transform: none; transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s; visibility: visible; }
html.cft-v2.cft-x body .cft-acct-menu a.cft-acct-item { align-items: center; border-radius: 8px; color: var(--ink) !important; display: flex; font-size: 14px; font-weight: 500; gap: 10px; padding: 10px; text-decoration: none !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-acct-menu a.cft-acct-item:hover { background: var(--bg); } }
html.cft-v2.cft-x body .cft-acct-menu a.cft-acct-item.is-out { color: var(--amber-ink) !important; }
html.cft-v2.cft-x body .cft-acct-menu a.cft-acct-item:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
html.cft-v2.cft-x .cft-acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x .cft-acct-menu, html.cft-v2.cft-x .cft-acct-chev { transition: none; } }

/* visitors: "Log In" as a plain link, "Register" as the one red button */
html.cft-v2.cft-x .header-right #meta-member .member-navigation a[href*="/login"] { background: transparent; border-color: transparent; }
html.cft-v2.cft-x .header-right #meta-member .member-navigation a[href*="/login"]::before { content: none; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .header-right #meta-member .member-navigation a[href*="/login"]:hover { background: var(--bg); border-color: transparent; } }
html.cft-v2.cft-x .header-right #meta-member .member-navigation li:last-child a:is([href*="action=register"], [href*="membership-levels"]) { background: var(--amber); border-color: var(--amber); border-radius: 999px; color: #fff; padding: 0 18px; }
html.cft-v2.cft-x .header-right #meta-member .member-navigation li:last-child a:is([href*="action=register"], [href*="membership-levels"])::before { content: none; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .header-right #meta-member .member-navigation li:last-child a:is([href*="action=register"], [href*="membership-levels"]):hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; } }
/* the header (z 60) sits under the sticky menu bar (z 999): lift it while the account menu is open */
html.cft-v2.cft-x #masthead:has(.cft-acct.is-open) { z-index: 1001; }
html.cft-v2.cft-x body .header-right .cft-acct-menu a.cft-acct-item { display: flex !important; justify-content: flex-start; line-height: 1.2; text-align: left; width: 100%; }
html.cft-v2.cft-x .cft-acct-menu svg { flex: none; }

/* list cards (categories, tags, blog, search), materials option C:
   one quiet line under the title instead of pills, a two-line intro, and a
   pill button; members-only posts get an outlined button with a lock */
html.cft-v2.cft-x .site-main > article .entry-title { font-size: clamp(19px, 1.8vw, 21px); font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
html.cft-v2.cft-x .cft-card-x { gap: 10px; margin-top: 6px; }
html.cft-v2.cft-x .cft-card-line { align-items: center; color: var(--subtle); display: flex; flex-wrap: wrap; font-size: 13px; font-variant-numeric: tabular-nums; gap: 4px 14px; }
html.cft-v2.cft-x .cft-card-acc { align-items: center; display: inline-flex; gap: 5px; white-space: nowrap; }
html.cft-v2.cft-x .cft-card-acc.is-members { color: var(--amber-deep); font-weight: 600; }
html.cft-v2.cft-x .cft-card-acc .cft-lock-ic { flex: none; }
html.cft-v2.cft-x .site-main > article .entry-content .cft-card-x .cft-card-desc { -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
html.cft-v2.cft-x .cft-card-x .cft-card-actions { margin-top: 6px; }
html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn { align-items: center; background: var(--ink); border: 0; border-radius: 999px; box-shadow: none; color: #fff !important; display: inline-flex; font-size: 14px; font-weight: 600; gap: 8px; line-height: 1; padding: 11px 18px; text-decoration: none; -webkit-text-fill-color: #fff; transition: background-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn::after { content: none; }
html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn:active { transform: scale(.97); }
html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn.is-members { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink) !important; -webkit-text-fill-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn:hover { background: var(--ink-3); }
  html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn.is-members:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink-3); }
}
html.cft-v2.cft-x .cft-card-x .cft-card-actions a.btn .cft-lock-ic { height: 14px; width: 14px; }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x body .site-main > article .entry-content .cft-card-x .cft-card-actions a.btn { transition: none; } }

/* articles page, option A: newest article large, then one row per article */
html.cft-v2.cft-x #primary:has(.cft-ax) { float: none; margin-inline: auto; max-width: 1180px; width: 100%; }
html.cft-v2.cft-x .site-main > article:has(.cft-ax) { background: transparent; border: 0; box-shadow: none; padding: 0; }
html.cft-v2.cft-x .site-main > article:has(.cft-ax) > .entry-header { display: none; }
html.cft-v2.cft-x .cft-ax { font-family: var(--font); }
html.cft-v2.cft-x .cft-ax-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 24px; }
html.cft-v2.cft-x .cft-ax-bar.is-in-band { margin: 18px 0 0; }
html.cft-v2.cft-x .cft-ax-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
html.cft-v2.cft-x body .cft-ax-tabs button { -webkit-tap-highlight-color: transparent; background: rgba(255, 255, 255, .1); border: 0; border-radius: 999px; box-shadow: none; color: #fff; cursor: pointer; font: 500 14px/1 var(--font); min-height: 38px; padding: 10px 14px; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
html.cft-v2.cft-x body .cft-ax-tabs button span { font-variant-numeric: tabular-nums; margin-left: 4px; opacity: .6; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-ax-tabs button:hover { background: rgba(255, 255, 255, .18); } }
html.cft-v2.cft-x body .cft-ax-tabs button:active { transform: scale(.97); }
html.cft-v2.cft-x body .cft-ax-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); }
html.cft-v2.cft-x body .cft-ax-bar:not(.is-in-band) .cft-ax-tabs button { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
html.cft-v2.cft-x body .cft-ax-bar:not(.is-in-band) .cft-ax-tabs button[aria-pressed="true"] { background: var(--ink); box-shadow: none; color: #fff; }
html.cft-v2.cft-x .cft-ax-sel { margin: 0 0 0 auto; }
html.cft-v2.cft-x body .cft-ax-sel select { background-color: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; color: #fff; font: 500 14px var(--font); min-height: 38px; padding: 8px 12px; width: auto; }
html.cft-v2.cft-x body .cft-ax-sel select option { color: var(--ink); }
html.cft-v2.cft-x body .cft-ax-bar:not(.is-in-band) .cft-ax-sel select { background-color: #fff; border: 1px solid var(--line); color: var(--ink); }
html.cft-v2.cft-x .cft-ax-av { align-items: center; background: #dfe5ee; border-radius: 50%; color: var(--ink); display: inline-flex; flex: none; font-size: 12px; font-weight: 700; height: 32px; justify-content: center; width: 32px; }
html.cft-v2.cft-x .cft-ax-av.is-lg { font-size: 18px; height: 56px; width: 56px; }
html.cft-v2.cft-x body a.cft-ax-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr; margin: 0 0 24px; padding: 28px; text-decoration: none; transition: border-color 150ms ease, box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body a.cft-ax-feat:hover { border-color: #cfd6e2; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); } html.cft-v2.cft-x body a.cft-ax-feat:hover .cft-ax-feat-title { color: var(--amber-ink); } }
html.cft-v2.cft-x .cft-ax-kicker { color: var(--amber-ink); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
html.cft-v2.cft-x .cft-ax .cft-ax-feat-title { color: var(--ink); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; line-height: 1.2; margin: 0 0 12px; transition: color 150ms ease; }
html.cft-v2.cft-x .cft-ax-feat-intro { -webkit-box-orient: vertical; color: var(--muted); display: -webkit-box; font-size: 16px; -webkit-line-clamp: 4; line-height: 1.6; margin: 0; overflow: hidden; }
html.cft-v2.cft-x .cft-ax-feat-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; justify-content: space-between; padding-left: 28px; }
html.cft-v2.cft-x .cft-ax-by { align-items: center; display: flex; font-size: 14px; gap: 10px; margin: 0; }
html.cft-v2.cft-x .cft-ax-by b { display: block; font-weight: 600; }
html.cft-v2.cft-x .cft-ax-role { color: var(--subtle); display: block; font-size: 13px; }
html.cft-v2.cft-x .cft-ax-meta { color: var(--subtle); display: flex; flex-wrap: wrap; font-size: 13px; font-variant-numeric: tabular-nums; gap: 4px 12px; margin: 0; }
html.cft-v2.cft-x .cft-ax-lock { color: var(--amber-deep); font-weight: 600; }
html.cft-v2.cft-x .cft-ax-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; list-style: none; margin: 0; overflow: hidden; padding: 0; }
html.cft-v2.cft-x .cft-ax-list li { margin: 0 !important; padding: 0; }
html.cft-v2.cft-x .cft-ax-list li::before { content: none; }
html.cft-v2.cft-x .cft-ax-list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
html.cft-v2.cft-x body .cft-ax-list a { align-items: center; color: var(--ink); display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 240px 170px; padding: 16px 22px; text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-ax-list a:hover { background: var(--bg); } html.cft-v2.cft-x body .cft-ax-list a:hover .cft-ax-t { color: var(--amber-ink); } }
html.cft-v2.cft-x .cft-ax-t { font-size: 16px; font-weight: 600; line-height: 1.35; transition: color 150ms ease; }
html.cft-v2.cft-x .cft-ax-topic { color: var(--subtle); display: block; font-size: 13px; font-weight: 400; margin-top: 2px; }
html.cft-v2.cft-x .cft-ax-list .cft-ax-meta { justify-content: flex-end; white-space: nowrap; }
html.cft-v2.cft-x .cft-ax-empty { color: var(--muted); padding: 24px 0; text-align: center; }
@media (max-width: 860px) {
  html.cft-v2.cft-x body a.cft-ax-feat { grid-template-columns: 1fr; padding: 22px; }
  html.cft-v2.cft-x .cft-ax-feat-side { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  html.cft-v2.cft-x body .cft-ax-list a { gap: 6px; grid-template-columns: 1fr; padding: 14px 16px; }
  html.cft-v2.cft-x .cft-ax-list .cft-ax-meta { justify-content: flex-start; }
  html.cft-v2.cft-x .cft-ax-list .cft-ax-by { font-size: 13px; }
  html.cft-v2.cft-x .cft-ax-list .cft-ax-av { height: 24px; width: 24px; font-size: 10px; }
  html.cft-v2.cft-x .cft-ax-sel { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x body .cft-ax-tabs button, html.cft-v2.cft-x body a.cft-ax-feat, html.cft-v2.cft-x body .cft-ax-list a { transition: none; } }
/* articles page: beat the no-sidebar page width and the page panel */
html.cft-v2.cft-x body #content > .row > #primary:has(.cft-ax) { max-width: 1180px !important; width: 100%; }
html.cft-v2.cft-x body .site-main > article:has(.cft-ax) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.cft-v2.cft-x.cft-ax-page body .masthead > .row { max-width: 1180px !important; }
html.cft-v2.cft-x.cft-ax-page body .masthead > .row > .columns { max-width: none; width: 100%; padding-inline: 23.5px; }
html.cft-v2.cft-x body .cft-ax a, html.cft-v2.cft-x body .cft-ax a * { text-decoration: none !important; }

/* videos page, option A: course player with the lesson list beside it */
html.cft-v2.cft-x body #content > .row > #primary:has(.cft-vx) { max-width: 1180px !important; width: 100%; }
html.cft-v2.cft-x body .site-main > article:has(.cft-vx) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.cft-v2.cft-x .cft-vx { font-family: var(--font); }
html.cft-v2.cft-x .cft-vx-head { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin: 0 0 24px; }
html.cft-v2.cft-x .cft-vx-head p { color: var(--muted); font-size: 15px; margin: 0; }
html.cft-v2.cft-x .cft-vx-head.is-in-band { margin: 8px 0 0; }
html.cft-v2.cft-x .cft-vx-head.is-in-band p { color: rgba(255, 255, 255, .72); }
/* subscribe: a white pill with the YouTube mark */
html.cft-v2.cft-x body a.cft-vx-sub { -webkit-tap-highlight-color: transparent; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 4px 14px rgba(15, 23, 42, .12); color: var(--ink) !important; display: inline-flex; font-size: 15px; font-weight: 600; gap: 10px; line-height: 1; padding: 10px 20px 10px 14px; text-decoration: none !important; -webkit-text-fill-color: var(--ink); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; white-space: nowrap; }
html.cft-v2.cft-x .cft-vx-head:not(.is-in-band) a.cft-vx-sub { box-shadow: inset 0 0 0 1px var(--line); }
html.cft-v2.cft-x .cft-vx-ytlogo { flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2.cft-x body a.cft-vx-sub:hover { box-shadow: 0 2px 4px rgba(15, 23, 42, .14), 0 10px 24px rgba(15, 23, 42, .18); }
  html.cft-v2.cft-x body a.cft-vx-sub:hover .cft-vx-ytlogo { transform: scale(1.08); }
}
html.cft-v2.cft-x body a.cft-vx-sub:active { transform: scale(.97); }
html.cft-v2.cft-x .cft-vx-course { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
html.cft-v2.cft-x .cft-vx-stage .cft-yt-player { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
html.cft-v2.cft-x .cft-vx-stage .cft-yt-player iframe { border: 0; display: block; height: 100%; width: 100%; }
html.cft-v2.cft-x .cft-vx-kicker { color: var(--amber-ink); font-size: 13px; font-weight: 600; margin: 16px 0 4px; }
html.cft-v2.cft-x .cft-vx .cft-vx-title { color: var(--ink); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; line-height: 1.25; margin: 0 0 8px; }
html.cft-v2.cft-x .cft-vx-foot { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
html.cft-v2.cft-x .cft-vx-date, html.cft-v2.cft-x .cft-vx-meta { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; margin: 0; }
html.cft-v2.cft-x .cft-vx-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; max-height: min(640px, 80vh); overflow: hidden; position: sticky; top: calc(var(--cft-adminbar, 0px) + 80px); }
html.cft-v2.cft-x .cft-vx-list-head { border-bottom: 1px solid var(--line); padding: 16px 18px; }
html.cft-v2.cft-x .cft-vx .cft-vx-list-head h2 { color: var(--ink); font-size: 16px; margin: 0; }
html.cft-v2.cft-x .cft-vx-list-head p { color: var(--subtle); font-size: 13px; margin: 2px 0 0; }
html.cft-v2.cft-x .cft-vx-list ol { list-style: none; margin: 0; overflow: auto; overscroll-behavior: contain; padding: 6px; }
html.cft-v2.cft-x .cft-vx-list li { margin: 0 !important; padding: 0; }
html.cft-v2.cft-x .cft-vx-list li::before { content: none; }
html.cft-v2.cft-x body .cft-vx-item { align-items: baseline; background: transparent; border: 0; border-radius: 8px; box-shadow: none; color: var(--ink); cursor: pointer; display: grid; font: 500 14px/1.4 var(--font); gap: 10px; grid-template-columns: 26px 1fr; padding: 9px 10px; text-align: left; transition: background-color 150ms ease; width: 100%; }
html.cft-v2.cft-x .cft-vx-n { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-vx-item:not([aria-current]):hover { background: var(--bg); } }
html.cft-v2.cft-x body .cft-vx-item[aria-current] { background: var(--ink); color: #fff; }
html.cft-v2.cft-x body .cft-vx-item[aria-current] .cft-vx-n { color: rgba(255, 255, 255, .7); }
html.cft-v2.cft-x body .cft-vx-item:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
html.cft-v2.cft-x .cft-vx-more { margin-top: 40px; }
html.cft-v2.cft-x .cft-vx .cft-vx-more > h2 { color: var(--ink); font-size: 20px; margin: 0 0 14px; }
html.cft-v2.cft-x .cft-vx-grid { display: grid; gap: 24px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; margin: 0; padding: 0; }
html.cft-v2.cft-x .cft-vx-grid li { margin: 0 !important; padding: 0; }
html.cft-v2.cft-x .cft-vx-grid li::before { content: none; }
html.cft-v2.cft-x .cft-vx-grid .cft-yt-player { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
html.cft-v2.cft-x .cft-vx-grid .cft-video-title { font-size: 15px; line-height: 1.35; margin: 10px 0 2px; }
html.cft-v2.cft-x body .cft-vx-grid .cft-video-title a { color: var(--ink); text-decoration: none; }
html.cft-v2.cft-x .cft-vx .cft-videos-more { margin: 32px 0 0; text-align: center; }
@media (max-width: 900px) {
  html.cft-v2.cft-x .cft-vx-course { grid-template-columns: 1fr; }
  html.cft-v2.cft-x .cft-vx-list { max-height: 360px; position: static; }
}
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x body a.cft-vx-sub, html.cft-v2.cft-x .cft-vx-ytlogo, html.cft-v2.cft-x body .cft-vx-item { transition: none; } }

/* videos page: no stray rule above Share */
html.cft-v2.cft-x .cft-vx-foot .cft-share-menu { border: 0; }

/* footer "Back to Top": just the arrow, in a round button (the words stay as its label) */
html.cft-v2.cft-x #colophon a.skip-link.btn { align-items: center; border-radius: 50%; display: inline-flex; font-size: 0; height: 44px; justify-content: center; line-height: 0; padding: 0; width: 44px; }
html.cft-v2.cft-x #colophon a.skip-link.btn i { display: none; }
html.cft-v2.cft-x #colophon a.skip-link.btn::before { background: currentColor; content: ""; height: 18px; width: 18px; -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.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 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.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x #colophon a.skip-link.btn:hover::before { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x #colophon a.skip-link.btn::before { transition: none; } }

/* demo offer, option B: one slim floating bar at the bottom centre */
html.cft-v2.cft-x .cft-offer.is-bar { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; bottom: 20px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 14px 36px rgba(15, 23, 42, .16); display: flex; gap: 16px; left: 50%; max-width: calc(100vw - 32px); padding: 8px 8px 8px 22px; right: auto; transform: translate(-50%, 16px); transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out); width: max-content; }
html.cft-v2.cft-x .cft-offer.is-bar.is-open { transform: translate(-50%, 0); }
html.cft-v2.cft-x .cft-offer.is-bar .cft-offer-line { color: var(--muted); font-size: 15px; line-height: 1.35; margin: 0; padding: 0; }
html.cft-v2.cft-x .cft-offer.is-bar .cft-offer-line b { color: var(--ink); font-weight: 600; }
html.cft-v2.cft-x body .cft-offer.is-bar a.cft-btn { border-radius: 999px; flex: none; font-size: 14px; min-height: 40px; padding: 10px 18px; white-space: nowrap; }
html.cft-v2.cft-x body .cft-offer.is-bar .cft-offer-close { align-items: center; border-radius: 50% !important; display: inline-flex; flex: none; height: 36px; justify-content: center; position: static; transition: background-color 150ms ease; width: 36px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-offer.is-bar .cft-offer-close:hover { background: var(--bg) !important; } }
@media (max-width: 640px) {
  html.cft-v2.cft-x .cft-offer.is-bar { border-radius: 16px; bottom: 12px; flex-wrap: wrap; gap: 10px 12px; left: 12px; max-width: none; padding: 14px 10px 12px 16px; right: 12px; transform: translateY(16px); width: auto; }
  html.cft-v2.cft-x .cft-offer.is-bar.is-open { transform: none; }
  html.cft-v2.cft-x .cft-offer.is-bar .cft-offer-line { flex: 1 1 0; min-width: 0; }
  html.cft-v2.cft-x body .cft-offer.is-bar a.cft-btn { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.cft-v2.cft-x .cft-offer.is-bar { transform: translateX(-50%); transition: opacity 120ms ease; }
  html.cft-v2.cft-x .cft-offer.is-bar.is-open { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { html.cft-v2.cft-x .cft-offer.is-bar, html.cft-v2.cft-x .cft-offer.is-bar.is-open { transform: none; } }

/* chat assistant (AI Engine chatbot), design A: refined white card.
   Navy "Ask a question" pill; white panel with a CF badge header; soft
   bubbles; page links as small pills; quiet grey input. */
html.cft-v2.cft-x .cft-chat .mwai-chat {
  --mwai-fontSize: 14.5px; --mwai-lineHeight: 1.5; --mwai-borderRadius: 20px; --mwai-spacing: 14px;
  --mwai-width: 380px; --mwai-maxHeight: min(480px, 62vh);
  --mwai-fontColor: var(--ink); --mwai-headerColor: var(--ink); --mwai-linkColor: var(--ink);
  --mwai-backgroundPrimaryColor: #fff; --mwai-backgroundSecondaryColor: var(--bg);
  --mwai-backgroundHeaderColor: #fff; --mwai-bubbleColor: var(--ink);
  --mwai-accentColor: var(--amber-ink); --mwai-borderColor: var(--line);
  --mwai-iconTextColor: #fff; --mwai-iconTextBackgroundColor: var(--ink);
  --mwai-errorBackgroundColor: #fdecec; --mwai-errorTextColor: var(--amber-deep);
  font-family: var(--font); z-index: 9980;
}
html.cft-v2.cft-x .cft-chat .mwai-chat * { font-family: var(--font); }
/* launcher */
html.cft-v2.cft-x.cft-chat-wait .cft-chat .mwai-chat:not(.mwai-open) .mwai-trigger { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms; }
html.cft-v2.cft-x.cft-chat-wait .cft-chat .mwai-chat:not(.mwai-open) .mwai-trigger .mwai-icon-container { pointer-events: none !important; }
/* while closed, AI Engine's chat box still covers a 380px strip beside the
   launcher and swallows clicks on the page under it; only the pill takes clicks */
html.cft-v2.cft-x .cft-chat .mwai-chat:not(.mwai-open), html.cft-v2.cft-x .cft-chat .mwai-chat:not(.mwai-open) .mwai-window-box { pointer-events: none !important; }
html.cft-v2.cft-x .cft-chat .mwai-chat:not(.mwai-open) .mwai-trigger .mwai-icon-container { pointer-events: auto !important; }
html.cft-v2.cft-x .cft-chat .mwai-trigger.mwai-open-button { background: var(--ink); border-radius: 999px; box-shadow: 0 2px 6px rgba(15, 23, 42, .12), 0 10px 28px rgba(15, 23, 42, .28); cursor: pointer; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 0s; }
html.cft-v2.cft-x .cft-chat .mwai-trigger .mwai-icon-container { align-items: center; display: flex; gap: 8px; height: auto; padding: 11px 18px 11px 14px; width: auto; }
html.cft-v2.cft-x .cft-chat .mwai-trigger .mwai-icon { display: none; }
html.cft-v2.cft-x .cft-chat .mwai-trigger .mwai-icon-container::before { background: #fff; content: ""; height: 18px; width: 18px; -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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
html.cft-v2.cft-x .cft-chat .mwai-trigger .mwai-icon-container::after { color: #fff; content: "Ask a question"; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
html.cft-v2.cft-x .cft-chat .mwai-trigger:active { transform: scale(.97); }
/* panel */
html.cft-v2.cft-x .cft-chat .mwai-window-box { background: #fff; border: 1px solid transparent; border-radius: 20px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .06), 0 24px 56px rgba(15, 23, 42, .22); overflow: hidden; transform-origin: bottom right; }
/* header: CF badge + name, close on the right */
html.cft-v2.cft-x .cft-chat .mwai-header { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 10px; min-height: 64px; padding: 14px 12px 14px 16px; }
html.cft-v2.cft-x .cft-chat .mwai-header::before { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; content: "CF"; display: flex; flex: none; font-size: 13px; font-weight: 700; height: 36px; justify-content: center; letter-spacing: .02em; order: 0; width: 36px; }
html.cft-v2.cft-x .cft-chat .mwai-header::after { color: var(--ink); content: "CMA Fast Track help"; font-size: 15.5px; font-weight: 600; line-height: 1.3; order: 1; }
html.cft-v2.cft-x .cft-chat .mwai-header .mwai-buttons { margin-left: auto; order: 2; }
html.cft-v2.cft-x .cft-chat .mwai-header .mwai-close-button { border-radius: 50%; height: 32px; opacity: 1; position: relative; transition: background-color 150ms ease; width: 32px; }
html.cft-v2.cft-x .cft-chat .mwai-header .mwai-close-button::before, html.cft-v2.cft-x .cft-chat .mwai-header .mwai-close-button::after { background-color: var(--subtle) !important; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x .cft-chat .mwai-header .mwai-close-button:hover { background: var(--bg); } }
/* phones: AI Engine goes full screen with its own header ("AI Engine");
   give it the same CF badge and name as the desktop header */
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 10px; min-height: 60px; padding: 10px 8px 10px 16px; }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header::before { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; content: "CF"; display: flex; flex: none; font-size: 13px; font-weight: 700; height: 36px; justify-content: center; letter-spacing: .02em; width: 36px; }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header-title { font-size: 0 !important; line-height: 1.3; }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header-title::after { color: var(--ink); content: "CMA Fast Track help"; font-size: 16px; font-weight: 600; }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header-close { align-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--muted) !important; display: flex; height: 44px; justify-content: center; margin-left: auto; padding: 0; width: 44px; -webkit-tap-highlight-color: transparent; }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header-close:active { background: var(--bg); }
html.cft-v2.cft-x body .cft-chat .mwai-mobile-header-close svg { height: 20px; stroke: currentColor; width: 20px; }
/* the open chat sits above the WordPress admin bar (admins only) */
html.cft-v2.cft-x body .cft-chat .mwai-chat.mwai-open { z-index: 100000 !important; }
/* the demo bar steps aside while the chat is open (it covered the input on phones) */
html.cft-v2.cft-x body:has(.cft-chat .mwai-chat.mwai-open) .cft-offer { visibility: hidden; }
/* conversation */
html.cft-v2.cft-x .cft-chat .mwai-body, html.cft-v2.cft-x .cft-chat .mwai-conversation { background: #fff; }
html.cft-v2.cft-x .cft-chat .mwai-conversation { overscroll-behavior: contain; padding: 16px; }
html.cft-v2.cft-x .cft-chat .mwai-reply { margin: 0 0 12px; padding: 0; }
html.cft-v2.cft-x .cft-chat .mwai-name { display: none; }
html.cft-v2.cft-x .cft-chat .mwai-reply.mwai-ai { align-items: flex-start; display: flex; gap: 8px; }
html.cft-v2.cft-x .cft-chat .mwai-reply.mwai-ai::before { align-items: center; background: var(--bg); border-radius: 50%; color: var(--ink); content: "CF"; display: flex; flex: none; font-size: 10px; font-weight: 700; height: 24px; justify-content: center; margin-top: 2px; width: 24px; }
html.cft-v2.cft-x .cft-chat .mwai-reply.mwai-ai .mwai-text { background: var(--bg); border-radius: 4px 16px 16px 16px; color: var(--ink); display: inline-block; max-width: 100%; padding: 10px 13px; }
html.cft-v2.cft-x .cft-chat .mwai-reply.mwai-user { display: flex; justify-content: flex-end; }
html.cft-v2.cft-x .cft-chat .mwai-reply.mwai-user .mwai-text { background: var(--ink); border-radius: 16px 16px 4px 16px; color: #fff; display: inline-block; max-width: 82%; padding: 9px 13px; }
html.cft-v2.cft-x .cft-chat .mwai-text p { margin: 0 0 8px; }
html.cft-v2.cft-x .cft-chat .mwai-text p:last-child { margin-bottom: 0; }
/* page links in answers: small pills (extras.js names them) */
html.cft-v2.cft-x body .cft-chat .mwai-text a.cft-chat-link { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; display: inline-flex; font-size: 12.5px; font-weight: 600; gap: 4px; line-height: 1.2; margin: 2px 2px; padding: 4px 10px; text-decoration: none !important; -webkit-text-fill-color: var(--ink); vertical-align: 1px; white-space: nowrap; }
html.cft-v2.cft-x body .cft-chat .mwai-text a.cft-chat-link::after { background: currentColor; content: ""; height: 11px; width: 11px; -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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-chat .mwai-text a.cft-chat-link:hover { border-color: var(--line-strong); } }
/* suggested questions (AI Engine shortcuts) */
html.cft-v2.cft-x .cft-chat .mwai-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
html.cft-v2.cft-x body .cft-chat .mwai-shortcuts button, html.cft-v2.cft-x body .cft-chat .mwai-shortcut { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 999px !important; box-shadow: none !important; color: var(--ink) !important; cursor: pointer; font-size: 13px !important; font-weight: 500; line-height: 1.3; margin: 0 !important; padding: 6px 11px !important; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-chat .mwai-shortcuts button:hover, html.cft-v2.cft-x body .cft-chat .mwai-shortcut:hover { border-color: var(--line-strong) !important; } }
html.cft-v2.cft-x body .cft-chat .mwai-shortcuts button:active, html.cft-v2.cft-x body .cft-chat .mwai-shortcut:active { transform: scale(.97); }
/* "jump to the latest message" (shows when scrolled up): white circle, navy arrow */
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-jump-to-latest { align-items: center; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 50% !important; box-shadow: 0 2px 8px rgba(15, 23, 42, .14) !important; color: var(--ink) !important; cursor: pointer; display: flex; height: 34px !important; justify-content: center; min-width: 0 !important; padding: 0 !important; width: 34px !important; }
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-jump-to-latest svg { color: var(--ink); display: block; height: 16px; stroke: currentColor; width: 16px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-jump-to-latest:hover { border-color: var(--line-strong) !important; } }
/* input: quiet grey field, red send square */
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input, html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input.mwai-active { align-items: center; background: #fff; border: 0 !important; border-radius: 0 !important; border-top: 1px solid var(--line) !important; box-shadow: none !important; gap: 8px; margin: 0 !important; padding: 10px 14px 0 !important; }
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input-text { background: var(--bg) !important; border: 0 !important; border-radius: 14px !important; box-shadow: none !important; outline: 0 !important; }
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input-text:focus-within { box-shadow: 0 0 0 2px var(--line-strong) !important; }
html.cft-v2.cft-x .cft-chat .mwai-input-text textarea { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ink); font-size: 14.5px; outline: 0 !important; }
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input button.mwai-input-submit { background-color: var(--amber-ink) !important; border: 0 !important; border-radius: 10px !important; color: #fff !important; flex: none; height: 36px; padding: 0 !important; width: 36px; }
@media (hover: hover) and (pointer: fine) { html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input button.mwai-input-submit:hover { background-color: var(--amber-deep) !important; } }
html.cft-v2.cft-x body .cft-chat .mwai-chat .mwai-input button.mwai-input-submit svg { height: 16px; width: 16px; }
html.cft-v2.cft-x .cft-chat .mwai-footer, html.cft-v2.cft-x .cft-chat .mwai-compliance { background: #fff; color: var(--subtle); font-size: 11.5px; text-align: center; }
html.cft-v2.cft-x .cft-chat .mwai-footer { padding: 8px 14px 12px; }
/* phones: sit above the demo bar while it is showing */
@media (max-width: 640px) {
  html.cft-v2.cft-x body:has(.cft-offer.is-open) .cft-chat .mwai-trigger { margin-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { html.cft-v2.cft-x .cft-chat .mwai-trigger, html.cft-v2.cft-x .cft-chat .mwai-shortcut { transition: none; } }
