/* =====================================================================
   CMA Fast Track: facelift v2
   Every rule is scoped to html.cft-v2. With the class off, the site
   renders exactly as before. No content or words are changed; this
   file only restyles existing markup.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ---------------------------------------------------------------------
   1. Tokens (redefine Memberlite + Elementor variables)
   --------------------------------------------------------------------- */
html.cft-v2 {
  --ink: #0b1f3a;
  --ink-2: #122b4f;
  --ink-3: #1c3a66;
  --amber: #d97706;
  --amber-ink: #b45309;          /* AA on white for text */
  --amber-soft: #fef3c7;
  --amber-deep: #92400e;         /* hover for amber-ink fills */
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --text: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Memberlite theme variables */
  --memberlite-body-font: var(--font);
  --memberlite-header-font: var(--font);
  --memberlite-color-header-text: var(--ink);
  --memberlite-color-site-background: var(--bg);
  --memberlite-color-header-background: var(--surface);
  --memberlite-color-site-navigation-background: var(--surface);
  --memberlite-color-site-navigation: var(--text);
  --memberlite-color-text: var(--text);
  --memberlite-color-link: var(--ink-3);
  --memberlite-color-meta-link: var(--ink-3);
  --memberlite-color-primary: var(--ink);
  --memberlite-color-secondary: var(--teal);
  --memberlite-color-action: var(--amber);
  --memberlite-color-button: var(--ink);
  --memberlite-color-borders: var(--line);
  --memberlite-color-page-masthead-background: var(--ink);
  --memberlite-color-page-masthead: #ffffff;
  --memberlite-hover-brightness: 1;

  /* Elementor kit */
  --e-global-color-primary: var(--ink);
  --e-global-color-secondary: var(--ink-3);
  --e-global-color-text: var(--text);
  --e-global-color-accent: var(--amber);
  --e-global-typography-primary-font-family: "Inter";
  --e-global-typography-secondary-font-family: "Inter";
  --e-global-typography-text-font-family: "Inter";
  --e-global-typography-accent-font-family: "Inter";

  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
html.cft-v2 body,
html.cft-v2 body.custom-background {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
}
html.cft-v2 body :is(p, li, td, th, label, input, select, textarea, button, .entry-content, .elementor-widget-container) {
  font-family: var(--font);
}
html.cft-v2 :is(h1, h2, h3, h4, h5, h6, .site-title, .entry-title, .page-title, .widget-title) {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
html.cft-v2 :is(h1, .h1) { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
html.cft-v2 :is(h2, .h2) { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
html.cft-v2 :is(h3, .h3) { font-size: 20px; font-weight: 650; }
html.cft-v2 :is(h4, .h4) { font-size: 17px; font-weight: 650; }
html.cft-v2 p { text-wrap: pretty; }

html.cft-v2 a {
  color: var(--ink-3);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 a:hover { color: var(--amber-ink); text-decoration-color: currentColor; }
}
html.cft-v2 :focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}
html.cft-v2 ::selection { background: var(--amber-soft); color: var(--ink); }
html.cft-v2 img { border-radius: var(--radius-sm); }
html.cft-v2 hr { border-color: var(--line); }

/* Never transition "all": neutralise theme / plugin defaults */
html.cft-v2 :is(a, button, .btn, input, select, textarea, .elementor-button, .pmpro_btn, img) {
  transition-property: color, background-color, border-color, text-decoration-color, box-shadow, transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

/* Elementor "grow" hover gimmick: off */
html.cft-v2 .elementor-animation-grow,
html.cft-v2 .elementor-animation-grow:hover { transform: none !important; transition: none !important; }

/* ---------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------- */
html.cft-v2 :is(.btn, button:not(.menu-toggle):not(.cft-toggle *), input[type="submit"], input[type="button"],
  .pmpro_btn, a.pmpro_btn, .elementor-button, .mc4wp-form input[type="submit"]) {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 12px 20px;
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 :is(.btn, button:not(.menu-toggle):not(.cft-toggle *), input[type="submit"], input[type="button"],
    .pmpro_btn, a.pmpro_btn, .elementor-button, .mc4wp-form input[type="submit"]):hover {
    background: var(--ink-3);
    border-color: var(--ink-3);
    color: #fff;
    filter: none;
  }
}
html.cft-v2 :is(.btn, button, input[type="submit"], input[type="button"], .pmpro_btn, .elementor-button, .skip-link.btn):active {
  transform: scale(0.97);
}

/* Form fields */
html.cft-v2 :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"],
  input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--text);
  font-size: 16px;
  padding: 11px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
html.cft-v2 :is(input, select, textarea):focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-3) 18%, transparent);
  outline: none;
}
html.cft-v2 label { color: var(--ink); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------------
   4. Header
   --------------------------------------------------------------------- */
html.cft-v2 #masthead.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
html.cft-v2 #masthead > .row { align-items: center; display: flex; flex-wrap: wrap; min-height: 84px; }
html.cft-v2 #masthead .site-branding {
  align-items: center;
  column-gap: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  padding-block: 14px;
}
html.cft-v2 #masthead .custom-logo-link { grid-row: 1 / span 2; line-height: 0; margin: 0; }
html.cft-v2 #masthead .custom-logo {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), var(--shadow-sm);
  height: 56px;
  max-height: none;
  width: 56px;
  object-fit: cover;
}
html.cft-v2 #masthead .site-title {
  align-self: end;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
html.cft-v2 #masthead .site-title a { color: var(--ink); text-decoration: none; }
html.cft-v2 #masthead .site-description {
  align-self: start;
  color: var(--subtle);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.4;
  margin: 2px 0 0;
}
html.cft-v2 #masthead .header-right { align-self: center; margin-left: auto; padding-block: 0; }

/* Log In / Register */
html.cft-v2 .header-right #meta-member,
html.cft-v2 .header-right #meta-member .meta-member-inner {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
html.cft-v2 .header-right #meta-member .member-navigation ul.menu { display: flex; gap: 8px; justify-content: flex-end; margin: 0; }
html.cft-v2 .header-right #meta-member .member-navigation li { border: 0; float: none; margin: 0; padding: 0; }
html.cft-v2 .header-right #meta-member .member-navigation a {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
html.cft-v2 .header-right #meta-member .member-navigation li:last-child a { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .header-right #meta-member .member-navigation a:hover { background: var(--bg); border-color: var(--ink-3); color: var(--ink); }
  html.cft-v2 .header-right #meta-member .member-navigation li:last-child a:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
}
html.cft-v2 .header-right #meta-member .member-navigation a:active { transform: scale(0.97); }

/* Account links: a small icon + the label ("Log In", "Register"). Matched
   by href, so logged-in links ("My Account", "Log Out") get icons too. */
html.cft-v2 .header-right #meta-member .member-navigation ul.menu { align-items: center; }
html.cft-v2 .header-right #meta-member .member-navigation a:is([href*="/login"], [href*="action=register"], [href*="membership-levels"], [href*="logout"], [href*="action=logout"], [href*="membership-account"]) {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  white-space: nowrap;
}
html.cft-v2 .header-right #meta-member .member-navigation a:is([href*="/login"], [href*="action=register"], [href*="membership-levels"], [href*="logout"], [href*="action=logout"], [href*="membership-account"])::before {
  background: currentColor;
  content: "";
  flex: 0 0 18px;
  height: 18px;
  -webkit-mask: var(--cft-icon) center / contain no-repeat;
          mask: var(--cft-icon) center / contain no-repeat;
  width: 18px;
}
/* lucide: user (account), user-plus (register), log-in, log-out. Later rules
   win when a link matches several (e.g. a Log In link whose redirect_to
   points at the levels page). */
html.cft-v2 .header-right #meta-member .member-navigation a[href*="membership-account"] {
  --cft-icon: 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='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
html.cft-v2 .header-right #meta-member .member-navigation a:is([href*="action=register"], [href*="membership-levels"]) {
  --cft-icon: 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='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E");
}
html.cft-v2 .header-right #meta-member .member-navigation a[href*="/login"] {
  --cft-icon: 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='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E");
}
html.cft-v2 .header-right #meta-member .member-navigation a:is([href*="logout"], [href*="action=logout"]) {
  --cft-icon: 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='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   5. Primary navigation + dropdowns
   --------------------------------------------------------------------- */
html.cft-v2 #site-navigation {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  border-top: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 999;
}
html.cft-v2.cft-admin-bar #site-navigation { top: var(--cft-adminbar, 32px); }
html.cft-v2 #site-navigation .main-navigation { padding-block: 0; }
html.cft-v2 .main-navigation ul.menu { display: flex; flex-wrap: wrap; gap: 2px; }
html.cft-v2 .main-navigation ul.menu > li { float: none; position: relative; }
html.cft-v2 .main-navigation ul.menu > li > a {
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  padding: 18px 14px;
  position: relative;
  text-decoration: none;
}
html.cft-v2 .main-navigation ul.menu > li:first-child > a { padding-left: 0; }
/* amber underline indicator, drawn with transform for a compositor-only animation */
html.cft-v2 .main-navigation ul.menu > li > a::before {
  background: var(--amber);
  border-radius: 2px;
  bottom: -1px;
  content: "";
  height: 2px;
  left: 14px;
  position: absolute;
  right: 14px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}
html.cft-v2 .main-navigation ul.menu > li:first-child > a::before { left: 0; }
html.cft-v2 .main-navigation ul.menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { color: var(--ink); }
html.cft-v2 .main-navigation ul.menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .main-navigation ul.menu > li:hover > a { color: var(--ink); text-decoration: none; }
  html.cft-v2 .main-navigation ul.menu > li:hover > a::before { transform: scaleX(1); }
}
html.cft-v2 .main-navigation ul.menu > .menu-item-has-children > a::after {
  color: var(--subtle);
  font-size: 11px;
  margin-left: 6px;
  transition: transform 200ms var(--ease-out);
}
html.cft-v2 .main-navigation ul.menu > .menu-item-has-children:is(:hover, :focus-within) > a::after { transform: rotate(180deg); }

/* Dropdown panels: origin-aware, interruptible transitions, exit faster than enter */
html.cft-v2 .main-navigation ul.sub-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  left: 0;
  min-width: 240px;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  top: calc(100% + 4px);
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
  visibility: hidden;
}
html.cft-v2 .main-navigation ul.menu > li:last-child > ul.sub-menu,
html.cft-v2 .main-navigation ul.menu > li:nth-last-child(2) > ul.sub-menu { left: auto; right: 0; transform-origin: top right; }
/* hover bridge so the pointer can cross the 4px gap */
html.cft-v2 .main-navigation ul.sub-menu::before { content: ""; height: 8px; left: 0; position: absolute; right: 0; top: -8px; }
html.cft-v2 .main-navigation ul li:is(:hover, :focus-within) > ul.sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
  visibility: visible;
}
html.cft-v2 .main-navigation ul li:first-child:hover > ul { left: 0; }
html.cft-v2 .main-navigation ul.sub-menu li { position: relative; }
html.cft-v2 .main-navigation ul.sub-menu a {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 1.4;
  padding: 9px 12px !important;
  text-decoration: none;
  width: 280px;
}
html.cft-v2 .main-navigation ul.sub-menu > .menu-item-has-children > a::after { color: var(--subtle); margin-left: 12px; }
html.cft-v2 .main-navigation ul.sub-menu li:hover > a,
html.cft-v2 .main-navigation ul.sub-menu li:focus-within > a { background: var(--bg); color: var(--ink); }
html.cft-v2 .main-navigation ul.sub-menu ul.sub-menu {
  left: calc(100% + 6px);
  top: -7px;
  transform: translateX(-4px) scale(0.98);
}
html.cft-v2 .main-navigation ul.sub-menu ul.sub-menu::before { height: auto; left: -8px; top: 0; bottom: 0; width: 8px; right: auto; }
html.cft-v2 .main-navigation ul ul li:is(:hover, :focus-within) > ul.sub-menu { left: calc(100% + 6px); transform: none; }
html.cft-v2 .main-navigation ul.menu > li:is(:last-child, :nth-last-child(2)) ul.sub-menu ul.sub-menu { left: auto; right: calc(100% + 6px); transform-origin: top right; }
html.cft-v2 .main-navigation ul.menu > li:is(:last-child, :nth-last-child(2)) ul ul li:is(:hover, :focus-within) > ul.sub-menu { left: auto; right: calc(100% + 6px); }
html.cft-v2 .main-navigation ul.menu > li:is(:last-child, :nth-last-child(2)) ul.sub-menu ul.sub-menu::before { left: auto; right: -8px; }

/* ---------------------------------------------------------------------
   6. Mobile navigation (drawer)
   --------------------------------------------------------------------- */
html.cft-v2 .menu-toggle,
html.cft-v2 .menu-toggle:is(:hover, :focus, :active) {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  padding: 10px 12px;
}
html.cft-v2 .menu-toggle:active { transform: scale(0.97); }
html.cft-v2 #mobile-navigation {
  background: var(--ink);
  bottom: 0;
  box-shadow: none;
  left: 0 !important;
  max-width: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 16px 40px;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: transform 400ms var(--ease-drawer), box-shadow 300ms ease;
  width: 86%;
  z-index: 100000;
}
html.cft-v2 #mobile-navigation.toggled {
  box-shadow: 0 0 0 100vmax rgba(11, 31, 58, .45);
  transform: none;
}
html.cft-v2 #mobile-navigation-height-col { display: none !important; }
html.cft-v2 #mobile-navigation a { border-radius: var(--radius-sm); color: rgba(255, 255, 255, .92); display: block; font-size: 15px; padding: 10px 12px; }
html.cft-v2 #mobile-navigation a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
html.cft-v2 #mobile-navigation ul.sub-menu { border-left: 1px solid rgba(255, 255, 255, .14); margin-left: 12px; padding-left: 6px; }
html.cft-v2 #mobile-navigation ul.sub-menu a { color: rgba(255, 255, 255, .72); font-size: 14px; padding-block: 8px; }
html.cft-v2 #mobile-navigation #meta-member { border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 12px; padding-bottom: 12px; }

/* ---------------------------------------------------------------------
   7. Page masthead (title band)
   --------------------------------------------------------------------- */
html.cft-v2 #content > header.masthead {
  background:
    radial-gradient(1200px 300px at 85% -20%, rgba(217, 119, 6, .16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border: 0;
  color: #fff;
  padding-block: 56px 48px;
}
html.cft-v2 #content > header.masthead :is(h1, .page-title, .entry-title) {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0;
}
html.cft-v2 #content > header.masthead :is(p, .taxonomy-description) { color: rgba(255, 255, 255, .72); font-size: 16px; margin-top: 8px; }
html.cft-v2 #content > header.masthead a { color: rgba(255, 255, 255, .85); }
/* homepage: the masthead band is empty, so collapse it */
html.cft-v2 body.home #content > header.masthead { display: none; }

html.cft-v2 #content > .row { padding-top: 48px; padding-bottom: 72px; }
html.cft-v2 body.home #content > .row { padding-top: 0; padding-bottom: 0; }
html.cft-v2 body.home #content > .row,
html.cft-v2 body.home #primary { max-width: none; padding-left: 0; padding-right: 0; width: 100%; }
html.cft-v2 body.elementor-page:not(.home) #content > .row { padding-top: 40px; }

/* ---------------------------------------------------------------------
   8. Articles, archives, single posts
   --------------------------------------------------------------------- */
html.cft-v2 .site-main { color: var(--text); }
html.cft-v2 .entry-content { color: var(--text); font-size: 17px; }
html.cft-v2 .entry-content > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 72ch; }
html.cft-v2 .entry-content :is(h2, h3) { margin-top: 1.6em; }
html.cft-v2 .entry-content blockquote {
  background: var(--surface);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-style: normal;
  margin-inline: 0;
  padding: 16px 20px;
}

/* archive cards */
html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
  padding: 28px 28px 24px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}
html.cft-v2 .site-main > article .entry-header { margin: 0 0 8px; padding: 0; }
html.cft-v2 .site-main > article .entry-header .entry-header-content { padding: 0; }
html.cft-v2 .site-main > article .post_author_avatar { display: none; }
html.cft-v2 .site-main > article .entry-title { font-size: clamp(20px, 2vw, 24px); font-weight: 700; margin: 0; }
html.cft-v2 .site-main > article .entry-title a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .site-main > article .entry-title a:hover { color: var(--amber-ink); }
}
html.cft-v2 .site-main > article .entry-meta { color: var(--subtle); font-size: 13px; }
html.cft-v2 .site-main > article .entry-content { color: var(--muted); font-size: 16px; }
html.cft-v2 .site-main > article .entry-content > p:first-child { margin-top: 0; }
html.cft-v2 .site-main > article .entry-footer { border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; margin-top: 16px; padding-top: 12px; }
html.cft-v2 .site-main > article .entry-footer:empty { display: none; }
html.cft-v2 body.single .site-main > article,
html.cft-v2 body.page:not(.elementor-page) .site-main > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
}

/* pagination */
html.cft-v2 :is(.paging-navigation, .post-navigation, .nav-links) a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
}
html.cft-v2 :is(.paging-navigation, .post-navigation) { border-top: 0; }

/* ---------------------------------------------------------------------
   9. Paid Memberships Pro
   --------------------------------------------------------------------- */
html.cft-v2 .pmpro { color: var(--text); font-family: var(--font); }
html.cft-v2 .pmpro :is(.pmpro_card) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
html.cft-v2 .pmpro .pmpro_card_title { color: var(--ink); font-weight: 700; }
html.cft-v2 .pmpro .pmpro_card_actions { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* members-only notice: one calm callout instead of a heavy box */
html.cft-v2 .pmpro .pmpro_content_message {
  background: linear-gradient(180deg, #fffdf7, var(--surface));
  border: 1px solid #f3e3c3;
  border-radius: var(--radius);
  box-shadow: none;
  margin-top: 16px;
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  padding: 16px 18px 16px 52px;
  position: relative;
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content::before {
  /* lock glyph (CSS only, no text) */
  background: var(--amber-soft);
  border-radius: 8px;
  content: "";
  height: 28px;
  left: 14px;
  -webkit-mask: none;
  position: absolute;
  top: 14px;
  width: 28px;
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content::after {
  background: var(--amber-ink);
  content: "";
  height: 16px;
  left: 20px;
  -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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  position: absolute;
  top: 20px;
  width: 16px;
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content br { display: none; }
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content br:first-of-type { display: block; content: ""; margin-bottom: 2px; }
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content a {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  margin: 10px 8px 0 0;
  padding: 7px 12px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content a:first-of-type { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content a:hover { border-color: var(--ink-3); }
  html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content a:first-of-type:hover { background: var(--ink-3); }
}
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_content a:active { transform: scale(0.97); }
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_actions { background: transparent; border-top: 1px solid #f3e3c3; font-weight: 500; padding: 10px 18px 10px 52px; }
html.cft-v2 .pmpro .pmpro_content_message .pmpro_card_actions a { color: var(--amber-ink); font-weight: 600; }

/* Levels table → plan cards (same markup, same order, same words) */
html.cft-v2 .pmpro_level_group.pmpro_card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
html.cft-v2 .pmpro_level_group .pmpro_card_content { padding: 0; }
html.cft-v2 table.pmpro_levels_table { background: transparent; border: 0; display: block; margin: 0; width: 100%; }
html.cft-v2 table.pmpro_levels_table thead {
  /* visually hidden, still announced and still in the text flow */
  clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px;
}
html.cft-v2 table.pmpro_levels_table tbody {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level::before {
  background: var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level:nth-child(2)::before { background: var(--amber); }
html.cft-v2 table.pmpro_levels_table tr.pmpro_level:nth-child(3)::before { background: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 table.pmpro_levels_table tr.pmpro_level:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :is(th, td) {
  background: transparent;
  border: 0;
  display: block;
  padding: 0;
  text-align: left;
  width: auto;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :first-child {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 14px;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :nth-child(2) {
  color: var(--muted);
  flex: 1;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :nth-child(2) :is(p) { margin: 0 0 6px; }
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :nth-child(2) strong {
  color: var(--ink);
  display: inline-block;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-right: 4px;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :last-child .pmpro_btn,
html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :last-child a {
  display: block;
  text-align: center;
  width: 100%;
}
html.cft-v2 table.pmpro_levels_table tr.pmpro_level:nth-child(2) > :last-child :is(.pmpro_btn, a) { background: var(--amber-ink); border-color: var(--amber-ink); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 table.pmpro_levels_table tr.pmpro_level:nth-child(2) > :last-child :is(.pmpro_btn, a):hover { background: var(--amber-deep); border-color: var(--amber-deep); }
}

/* the levels page: no card-inside-a-card */
html.cft-v2 body.page:not(.elementor-page) .site-main > article:has(.pmpro_levels_table) { background: transparent; border: 0; padding: 0; }

/* PMPro forms (checkout, login, account) */
html.cft-v2 .pmpro :is(.pmpro_form_field, .pmpro_checkout-field) { margin-bottom: 16px; }
html.cft-v2 .pmpro :is(.pmpro_message, .pmpro_error, .pmpro_success, .pmpro_alert) { border-radius: var(--radius); font-size: 15px; padding: 14px 16px; }
html.cft-v2 .pmpro :is(table.pmpro_table:not(.pmpro_levels_table)) { border: 1px solid var(--line); border-collapse: separate; border-radius: var(--radius); border-spacing: 0; overflow: hidden; }
html.cft-v2 .pmpro table.pmpro_table:not(.pmpro_levels_table) :is(th, td) { border-color: var(--line); padding: 12px 14px; }
html.cft-v2 .pmpro table.pmpro_table:not(.pmpro_levels_table) th { background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Show-password: a quiet eye icon inside the field, not a navy button.
   Label, input and toggle share one grid; the toggle overlays the input's cell,
   so it stays vertically centred whatever the input height. PMPro's own grid
   rules use #loginform / #pmpro_user_fields, hence the ID list in :is(). */
html.cft-v2 :is(#loginform, #pmpro_user_fields, #pmpro_form) :is(.login-password, .pmpro_form_field-password):has(> .pmpro_form_field-password-toggle) {
  display: grid;
  grid-template-areas: "label" "field";
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
html.cft-v2 :is(#loginform, #pmpro_user_fields, #pmpro_form) :is(.login-password, .pmpro_form_field-password):has(> .pmpro_form_field-password-toggle) > label { grid-area: label; margin-bottom: 6px; }
html.cft-v2 :is(#loginform, #pmpro_user_fields, #pmpro_form) :is(.login-password, .pmpro_form_field-password):has(> .pmpro_form_field-password-toggle) > input {
  grid-area: field;
  padding-right: 48px;
  width: 100%;
}
html.cft-v2 :is(#loginform, #pmpro_user_fields, #pmpro_form) :is(.login-password, .pmpro_form_field-password):has(> .pmpro_form_field-password-toggle) > .pmpro_form_field-password-toggle {
  align-self: center;
  float: none;
  grid-area: field;
  justify-self: end;
  margin: 0 6px 0 0;
  position: static;
  z-index: 1;
}
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--subtle);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin: 0;
  min-width: 0;
  padding: 0;
  width: 36px;
  transition: transform 120ms var(--ease-out), color 150ms ease, background-color 150ms ease;
}
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn :is(.pmpro_icon, svg) { display: block; height: 18px; margin: 0; width: 18px; }
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn { --pmpro--color--accent: currentColor; }
html.cft-v2 :is(#loginform, #pmpro_user_fields, #pmpro_form) .pmpro_form_field-password-toggle button.pmpro_btn svg { stroke: currentColor; }
/* keep "Show/Hide Password" as the accessible name, just not visible */
html.cft-v2 .pmpro_form_field-password-toggle .pmpro_form_field-password-toggle-state {
  clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn:hover { background: var(--bg); border: 0; color: var(--ink); }
}
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn:focus-visible { box-shadow: 0 0 0 2px var(--ink-3); outline: none; }
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn:active { transform: scale(0.92); }
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn[data-toggle="1"] { color: var(--ink); }

/* ---------------------------------------------------------------------
   10. Sidebar widgets
   --------------------------------------------------------------------- */
html.cft-v2 .widget-area .widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  padding: 20px;
}
html.cft-v2 .widget-area .widget-title,
html.cft-v2 .widget-area .widget-title a {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 12px;
  padding: 0 0 10px;
  text-decoration: none;
  text-transform: uppercase;
}
html.cft-v2 .widget-area .widget-title a { border: 0; padding: 0; }
html.cft-v2 .widget-area .widget ul { margin: 0; }
html.cft-v2 .widget-area .widget li { border: 0; font-size: 14.5px; line-height: 1.45; margin: 0; padding: 0; }
html.cft-v2 .widget-area .widget li a {
  border-radius: var(--radius-sm);
  color: var(--text);
  display: block;
  font-size: 14.5px;
  padding: 6px 8px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .widget-area .widget li a:hover { background: var(--bg); color: var(--ink); }
}
html.cft-v2 .widget-area .widget li :is(.current-cat, .current_page_item, .current-menu-item) > a { background: var(--amber-soft); color: var(--ink); font-weight: 600; }
html.cft-v2 .widget-area .widget ul.children,
html.cft-v2 .widget-area .widget ul.sub-menu { border-left: 1px solid var(--line); margin: 2px 0 4px 10px; padding-left: 6px; }
html.cft-v2 .widget-area .widget :is(ul.children, ul.sub-menu) li a { color: var(--muted); font-size: 13.5px; }
/* match the theme's #secondary (ID) specificity */
html.cft-v2 #secondary .widget-title,
html.cft-v2 #secondary .widget h3.wp-block-heading {
  background: transparent;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  margin: 0 0 10px;
  padding: 0 0 10px;
}
html.cft-v2 #secondary :is(.widget_archive, .widget_recent_entries, .widget_categories, .widget_recent_comments, .widget_meta) ul li,
html.cft-v2 #secondary .widget_categories li { border: 0; color: var(--subtle); padding: 0; }
html.cft-v2 #secondary .widget.widget_categories { font-size: 14px; }
html.cft-v2 #secondary .widget_categories .cat-item a { font-size: 14.5px; }
html.cft-v2 #secondary .widget_categories .cat-item .cat-item a { font-size: 13.5px; }
html.cft-v2 #secondary .widget a:not(.btn):not(.pmpro_btn) { border-bottom: 0; }
html.cft-v2 #secondary select { margin: 0; width: 100%; }

html.cft-v2 .widget-area .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
html.cft-v2 .widget-area .tagcloud a,
html.cft-v2 .tagcloud a {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px !important;
  line-height: 1.3;
  margin: 0;
  padding: 4px 10px;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .tagcloud a:hover { border-color: var(--line-strong); color: var(--ink); }
}
html.cft-v2 .widget-area .widget_text { font-size: 14.5px; }
html.cft-v2 .widget-area .widget_text img { max-width: 120px; }
html.cft-v2 .widget-area .mc4wp-form input:not([type="submit"]) { width: 100%; }
html.cft-v2 .widget-area .mc4wp-form input[type="submit"] { margin-top: 8px; width: 100%; }

/* ---------------------------------------------------------------------
   11. Homepage: Elementor page 2097
   --------------------------------------------------------------------- */
/* 11a. Vertical scroll-jacking slider → three calm, stacked bands */
html.cft-v2 .elementor-2097 .elementor-element-153a1e1 { min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; }
html.cft-v2 .elementor-2097 .elementor-element-153a1e1 > .elementor-container { max-width: none; min-height: 0 !important; height: auto !important; }
html.cft-v2 .elementor-2097 .elementor-element-153a1e1 :is(.elementor-column, .elementor-widget-wrap, .elementor-widget-container) { padding: 0 !important; }
html.cft-v2 .elementor-element-d54962b .swiper-container { height: auto !important; overflow: visible; }
html.cft-v2 .elementor-element-d54962b .swiper-wrapper {
  display: block !important;
  height: auto !important;
  transform: none !important;
  transition: none !important;
}
html.cft-v2 .elementor-element-d54962b .swiper-slide { height: auto !important; opacity: 1 !important; width: 100% !important; }
html.cft-v2 .elementor-element-d54962b :is(.swiper-pagination, .htslider-scroll-navigation-pagination, .swiper-button-next, .swiper-button-prev) { display: none !important; }
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-inner {
  background: var(--surface) !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(56px, 8vw, 104px) 24px !important;
}
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content { height: auto !important; padding: 0 !important; position: static !important; transform: none !important; }
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content > div {
  margin: 0 auto;
  max-width: 760px;
  padding: 0 !important;
  text-align: center;
  width: 100% !important;
}
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content :is(p, h2, h4, span, em, strong) { color: inherit !important; font-family: var(--font) !important; }
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content p { color: var(--muted) !important; font-size: 18px; line-height: 1.7; margin: 0 auto 16px; max-width: 64ch; }
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content h4 {
  color: var(--amber-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content 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 0 20px;
}

/* Slide 1 = hero */
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-inner {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(217, 119, 6, .22), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(15, 118, 110, .25), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%) !important;
  padding-block: clamp(72px, 11vw, 140px) !important;
}
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(1) {
  /* "Welcome to cmafasttrack": a plain eyebrow (no pill, no dot) */
  color: rgba(255, 255, 255, .72) !important;
  display: block;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(2) {
  /* "Your Pathway to CMA Success!": display headline */
  color: #fff !important;
  font-size: clamp(34px, 5.4vw, 64px) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04 !important;
  margin-bottom: 24px;
  max-width: 18ch;
  text-wrap: balance;
}
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(2) :is(em, strong) { font-style: normal; font-weight: 800; }
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(1) :is(em, strong) { font-style: normal; font-weight: 600; }
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(n+3) {
  color: rgba(226, 232, 240, .86) !important;
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 62ch;
}

/* Slide 2 = "WE understand…" on white */
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(2) .htslider-scroll-navigation-inner { background: var(--surface) !important; border-bottom: 1px solid var(--line); }

/* Slide 3 = "Join thousands…" CTA band */
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-inner {
  background: linear-gradient(180deg, var(--bg), #eef2f7) !important;
}
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p :is(em, strong) { color: var(--ink) !important; font-style: normal; font-weight: 650; }
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p a {
  background: var(--amber-ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(180, 83, 9, .3), 0 6px 18px rgba(217, 119, 6, .25);
  color: #fff !important;
  display: inline-block;
  font-size: 16px;
  font-weight: 650;
  margin-top: 8px;
  padding: 14px 28px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p a:hover { background: var(--amber-deep); }
}
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p a:active { transform: scale(0.97); }

/* Elementor negative margins on homepage widgets cause overlaps once sections
   have natural heights: neutralise them in v2 only */
html.cft-v2 .elementor-2097 :is(.elementor-widget-wrap, .elementor-widget-container) { margin-top: 0 !important; margin-bottom: 0 !important; }

/* 11b. Horizontal post carousel → three feature cards */
html.cft-v2 .elementor-2097 .elementor-element-6ec998f { min-height: 0 !important; padding: clamp(56px, 7vw, 96px) 24px !important; }
html.cft-v2 .elementor-2097 .elementor-element-6ec998f { height: auto !important; padding-bottom: 24px !important; }
html.cft-v2 .elementor-2097 .elementor-element-6ec998f > .elementor-container { margin: 0 auto; max-width: 1180px; min-height: 0 !important; height: auto !important; }
html.cft-v2 .elementor-element-149386e .htslider-postslider-area { height: auto !important; }
html.cft-v2 .elementor-element-149386e :is(.slick-arrow, .slick-dots, .htslider-carousel-activation > i, .htslider-carousel-activation > button) { display: none !important; }
html.cft-v2 .elementor-element-149386e .slick-list { height: auto !important; overflow: visible; }
html.cft-v2 .elementor-element-149386e .slick-track {
  display: grid !important;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform: none !important;
  width: auto !important;
}
html.cft-v2 .elementor-element-149386e .slick-track::before,
html.cft-v2 .elementor-element-149386e .slick-track::after { display: none; }
html.cft-v2 .elementor-element-149386e .slick-slide.slick-cloned { display: none !important; }
html.cft-v2 .elementor-element-149386e .slick-slide {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  float: none !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: hidden;
  width: auto !important;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .elementor-element-149386e .slick-slide:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}
html.cft-v2 .elementor-element-149386e .slick-slide :is(.htb-container, .htb-container > div) { height: auto !important; max-width: none; padding: 0 !important; width: auto !important; }
html.cft-v2 .elementor-element-149386e .slick-slide .htb-container > div > div { padding: 28px 24px !important; position: static !important; text-align: left !important; transform: none !important; width: auto !important; }
html.cft-v2 .elementor-element-149386e .htslider-subtitle { color: var(--ink) !important; font-family: var(--font) !important; font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.01em; line-height: 1.3 !important; margin: 0 0 8px !important; }
html.cft-v2 .elementor-element-149386e .htslider-title { color: var(--muted) !important; font-family: var(--font) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.5 !important; margin: 0 0 16px !important; }
html.cft-v2 .elementor-element-149386e .htslider-desc { color: var(--muted) !important; font-size: 15px !important; }
html.cft-v2 .elementor-element-149386e .htslider-desc p:empty { display: none; }
html.cft-v2 .elementor-element-149386e .htslider-desc img { border-radius: var(--radius); display: block; height: auto; margin-top: 8px; max-width: 100%; }
/* a slim accent on each card */
html.cft-v2 .elementor-element-149386e .slick-slide { position: relative; }
html.cft-v2 .elementor-element-149386e .slick-slide::before { background: var(--amber); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }

/* 11c. Pricing (PMPro shortcode) */
html.cft-v2 .elementor-2097 .elementor-element-a42b758 { margin: 0 !important; padding: 24px 24px clamp(48px, 6vw, 80px) !important; }
html.cft-v2 .elementor-2097 .elementor-element-a42b758 > .elementor-container { margin: 0 auto; max-width: 1180px; }

/* 11d. Social row + video */
html.cft-v2 .elementor-2097 .elementor-element-9e1a076 .ekit_social_media { display: flex; gap: 10px; justify-content: center; }
html.cft-v2 .elementor-2097 .elementor-element-9e1a076 .ekit_social_media a {
  align-items: center;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--ink) !important;
  display: inline-flex !important;
  height: 40px !important;
  justify-content: center;
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
  width: 40px !important;
}
html.cft-v2 .elementor-2097 .elementor-element-9e1a076 .ekit_social_media a i { color: var(--ink) !important; font-size: 15px !important; }
html.cft-v2 .elementor-2097 .elementor-element-9e1a076 .ekit_social_media a:active { transform: scale(0.95); }
html.cft-v2 .elementor-2097 .elementor-element-02777f6 { padding-bottom: clamp(48px, 6vw, 80px) !important; }
html.cft-v2 .elementor-2097 .elementor-element-8e54026 .elementor-widget-container { margin: 0 auto; max-width: 960px; }
html.cft-v2 .elementor-2097 .elementor-element-8e54026 :is(.elementor-wrapper, iframe) {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* 11e. Illustration band + bottom CTA (template leftovers: restyled, not removed) */
html.cft-v2 .elementor-2097 :is(.elementor-element-61011bb, .elementor-element-519eb57) {
  background-color: var(--ink) !important;
  margin-block: 0 !important;
}
html.cft-v2 .elementor-2097 .elementor-element-61011bb { padding-block: clamp(48px, 6vw, 80px) !important; }
html.cft-v2 .elementor-2097 .elementor-element-61011bb .elementor-background-overlay,
html.cft-v2 .elementor-2097 .elementor-element-519eb57 .elementor-background-overlay { opacity: 0 !important; }
html.cft-v2 .elementor-2097 .elementor-element-519eb57 { border-top: 1px solid rgba(255, 255, 255, .08); }
html.cft-v2 .elementor-2097 .elementor-element-af52572 .elementor-heading-title { color: #fff !important; font-family: var(--font) !important; font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 750 !important; letter-spacing: -0.02em; }
html.cft-v2 .elementor-2097 .elementor-element-d1c9262,
html.cft-v2 .elementor-2097 .elementor-element-d1c9262 :is(p, span) { color: rgba(226, 232, 240, .8) !important; }
html.cft-v2 .elementor-2097 .elementor-element-0e7158e .elementor-button {
  background: var(--amber-ink) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, .3);
  font-family: var(--font) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  padding: 14px 28px !important;
}

/* ---------------------------------------------------------------------
   12. Generic Elementor polish (other pages: about, gallery, contact…)
   --------------------------------------------------------------------- */
html.cft-v2 .elementor-widget-heading .elementor-heading-title { font-family: var(--font); letter-spacing: -0.015em; }
html.cft-v2 .elementor-widget-text-editor { color: var(--text); font-family: var(--font); }
html.cft-v2 .elementor-widget-image img { border-radius: var(--radius); }
html.cft-v2 .elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); }
html.cft-v2 .elementor-widget-text-editor :is(p, li) { color: var(--text); }
html.cft-v2 .elementor-widget-text-editor *[style*="color"] { color: inherit !important; }
html.cft-v2 .elementor-widget-text-editor h3 *[style*="color"],
html.cft-v2 .elementor-widget-text-editor h2 *[style*="color"] { color: var(--ink) !important; }
html.cft-v2 .gallery .gallery-item img,
html.cft-v2 .elementor-image-gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Contact Form 7 */
html.cft-v2 .wpcf7 form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
html.cft-v2 .wpcf7 .wpcf7-form-control:not(.wpcf7-submit) { width: 100%; }
html.cft-v2 .wpcf7 .wpcf7-response-output { border-radius: var(--radius); font-size: 14px; margin: 16px 0 0; padding: 12px 14px; }

/* ---------------------------------------------------------------------
   13. Footer
   --------------------------------------------------------------------- */
html.cft-v2 #colophon.site-footer {
  background: var(--ink);
  border-top: 0;
  color: rgba(226, 232, 240, .72);
  margin-top: 0;
  padding-block: 40px 28px;
}
html.cft-v2 #colophon .footer-navigation { border: 0; padding: 0; }
html.cft-v2 #colophon .footer-navigation ul.menu { border: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0 0 24px; }
html.cft-v2 #colophon .footer-navigation ul.menu > li { border: 0; float: none; margin: 0; padding: 0; }
html.cft-v2 #colophon .footer-navigation ul.menu > li > a {
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .86);
  display: inline-block;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 10px;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 #colophon .footer-navigation ul.menu > li > a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}
html.cft-v2 #colophon .site-info { align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; padding-top: 20px; }
html.cft-v2 #colophon .site-info p { font-size: 13px; margin: 0; }
html.cft-v2 #colophon .site-info a { color: rgba(226, 232, 240, .6); text-decoration: none; }
html.cft-v2 #colophon .site-info .sep { color: rgba(226, 232, 240, .3); }
html.cft-v2 #colophon .skip-link.btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 #colophon .skip-link.btn:hover { background: rgba(255, 255, 255, .14); }
}
html.cft-v2 #colophon .skip-link.btn:active { transform: scale(0.97); }

/* Essential Addons reading progress bar */
html.cft-v2 .eael-reading-progress { height: 3px !important; }
html.cft-v2 .eael-reading-progress-fill { background: var(--amber) !important; }

/* ---------------------------------------------------------------------
   14. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  html.cft-v2 .main-navigation ul.menu > li > a { font-size: 14px; padding-inline: 10px; }
}
@media (max-width: 900px) {
  html.cft-v2 .elementor-element-149386e .slick-track { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  html.cft-v2 body { font-size: 16px; }
  html.cft-v2 #masthead > .row { flex-wrap: nowrap; min-height: 64px; padding-inline: 16px; }
  html.cft-v2 #masthead .site-branding { column-gap: 10px; flex: 1; min-width: 0; padding-block: 10px; width: auto; }
  html.cft-v2 #masthead .custom-logo { height: 40px; width: 40px; border-radius: 8px; }
  html.cft-v2 #masthead .site-title { font-size: 17px; white-space: nowrap; }
  html.cft-v2 #masthead .site-description { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.cft-v2 #masthead .header-right { display: none; }
  html.cft-v2 #masthead .mobile-navigation-bar { margin-left: 8px; width: auto; }
  html.cft-v2 #content > header.masthead { padding-block: 36px 32px; }
  html.cft-v2 #content > .row { padding-top: 28px; padding-bottom: 48px; }
  html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article { padding: 20px 18px; border-radius: var(--radius); }
  html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-inner { padding: 56px 20px !important; }
  html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-inner { padding-block: 64px 56px !important; }
  html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content p { font-size: 16px; }
  html.cft-v2 .elementor-2097 .elementor-element-6ec998f { padding-inline: 16px !important; }
  html.cft-v2 .elementor-2097 .elementor-element-a42b758 { padding-inline: 16px !important; }
  html.cft-v2 #colophon .site-info { gap: 16px; }
  html.cft-v2 .elementor-2097 .elementor-element-61011bb .elementor-widget-image img { max-width: 200px; margin-inline: auto; }
  html.cft-v2 .elementor-2097 .elementor-element-61011bb .elementor-column { margin-bottom: 8px; }
}

/* ---------------------------------------------------------------------
   15. Polish pass 2 (emil-design-eng review, Nov 20)
   --------------------------------------------------------------------- */
/* Nav chevrons: CSS mask instead of the Font Awesome glyph (which can render as
   an empty gap until the icon font loads, making item spacing uneven). */
html.cft-v2 .main-navigation ul.menu .menu-item-has-children > a::after {
  background: currentColor;
  content: "";
  display: inline-block;
  float: none;
  font-family: inherit;
  height: 10px;
  margin-left: 6px;
  -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='m6 9 6 6 6-6'/%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='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .5;
  position: static;
  vertical-align: 1px;
  width: 10px;
}
html.cft-v2 .main-navigation ul.sub-menu .menu-item-has-children > a::after { margin-left: 12px; transform: rotate(-90deg); }

/* Body links: one calm style instead of default-blue + heavy underline */
html.cft-v2 :is(.entry-content, .elementor-widget-text-editor) a:not(.btn, .pmpro_btn, .elementor-button, [class*="wp-block-button"], .pmpro a, .htslider-scroll-navigation-content a, .htslider-postslider-area a, .ekit_social_media a, .thim-footer-location a) {
  color: var(--ink-3) !important;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink-3) 30%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 :is(.entry-content, .elementor-widget-text-editor) a:not(.btn, .pmpro_btn, .elementor-button, [class*="wp-block-button"], .pmpro a, .htslider-scroll-navigation-content a, .htslider-postslider-area a, .ekit_social_media a, .thim-footer-location a):hover {
    color: var(--ink) !important;
    text-decoration-color: var(--amber);
  }
}

/* Archives: the members-only notice repeats on every card, so make it tighter
   (sentence on one line, both buttons together under it) */
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message { margin-top: 12px; }
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message .pmpro_card_content { font-size: 14px; padding: 12px 14px 12px 50px; }
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message .pmpro_card_content::before { height: 26px; left: 12px; top: 10px; width: 26px; }
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message .pmpro_card_content::after { left: 17px; top: 15px; }
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message .pmpro_card_content a { font-size: 13px; margin: 8px 6px 0 0; padding: 6px 11px; }
html.cft-v2 :is(body.archive, body.blog, body.search) .pmpro .pmpro_content_message .pmpro_card_actions { font-size: 13px; padding: 8px 14px 8px 50px; }

/* Sidebar contact widget: icon + text need a gap and one muted icon colour */
html.cft-v2 .thim-footer-location .info { align-items: baseline; display: flex; gap: 10px; margin: 0 0 10px; }
html.cft-v2 .thim-footer-location .info i { color: var(--subtle); flex: 0 0 14px; font-size: 14px; text-align: center; }
html.cft-v2 .thim-footer-location .info a { color: var(--text); text-decoration: none; }
html.cft-v2 .thim-footer-location img { display: block; height: auto; margin-bottom: 14px; max-width: 120px; }

/* Footer: link row shares the content edge with the credit line below it
   (credit line sits 23px in from the row edge; links carry 10px of their own padding) */
html.cft-v2 #colophon .footer-navigation ul.menu { padding-inline: 13px; }

/* Checkboxes and radios in the brand colour */
html.cft-v2 :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ink); height: 16px; margin-right: 6px; vertical-align: -3px; width: 16px; }

/* Login: one centred card, not a card inside a card pinned to the left */
html.cft-v2 body:has(#pmpro_login) #primary { float: none; margin-inline: auto; max-width: 480px; width: 100%; }
html.cft-v2 body:has(#pmpro_login) .site-main > article { background: transparent; border: 0; box-shadow: none; padding: 0; }
html.cft-v2 #pmpro_login .pmpro_login_wrap { box-shadow: var(--shadow); }
html.cft-v2 #pmpro_login .pmpro_card_content { padding: clamp(24px, 4vw, 36px); }
html.cft-v2 .pmpro #pmpro_login #loginform :is(#wp-submit, input[type="submit"]) {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 .pmpro #pmpro_login #loginform :is(#wp-submit, input[type="submit"]):hover { background: var(--ink-3); border-color: var(--ink-3); }
}
html.cft-v2 .pmpro #pmpro_login #loginform :is(#wp-submit, input[type="submit"]):active { transform: scale(0.97); }
html.cft-v2 #pmpro_login .pmpro_card_actions a { color: var(--ink-3); text-decoration-color: color-mix(in srgb, var(--ink-3) 30%, transparent); text-underline-offset: 3px; }

@media (max-width: 767px) {
  /* PMPro's mobile "Level:" / "Price:" pseudo-labels are redundant on cards */
  html.cft-v2 table.pmpro_levels_table tr.pmpro_level > :is(th, td)::before { content: none !important; display: none !important; }
  /* long centred paragraphs are hard to read on a phone: left-align the bands */
  html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content > div,
  html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content :is(p, h2, h4) { text-align: left !important; }
  html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content p { margin-left: 0; }
  html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(2) { max-width: none; }
}

/* ---------------------------------------------------------------------
   16. Subtle motion (Nov 20)
   Rule of thumb: animate what people see occasionally (homepage, a plan
   choice), never what they revisit all day (archives, posts, test pages).
   Hidden start states only apply while toggle.js has set html.cft-intro /
   html.cft-reveal, so without JS everything is simply visible.
   --------------------------------------------------------------------- */
@keyframes cft-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes cft-fade { from { opacity: 0; } to { opacity: 1; } }

/* 16a. Homepage hero: eyebrow → headline → lead, once per session.
   Short, staggered, ease-out; the content is readable within ~0.5s. */
html.cft-v2.cft-intro .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p {
  animation: cft-rise 420ms var(--ease-out) both;
}
html.cft-v2.cft-intro .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(2) { animation-delay: 60ms; }
html.cft-v2.cft-intro .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(n+3) { animation-delay: 130ms; }
/* 16b. Homepage reveals: section intros and cards rise in once as they enter
   the viewport. Stagger comes from --cft-i (set by toggle.js), 50ms apart. */
html.cft-v2.cft-reveal [data-cft-reveal][data-cft-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  transition-delay: calc(var(--cft-i, 0) * 50ms);
}
html.cft-v2.cft-reveal [data-cft-reveal][data-cft-reveal].cft-in { opacity: 1; transform: none; }

/* 16c. Plan + feature cards: a 2px lift on hover (pointer devices only).
   Exit is quicker than enter. */
html.cft-v2 table.pmpro_levels_table tr.pmpro_level,
html.cft-v2 .elementor-element-149386e .slick-slide {
  transition: transform 160ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease, opacity 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 table.pmpro_levels_table tr.pmpro_level:hover,
  html.cft-v2 .elementor-element-149386e .slick-slide:hover {
    transform: translateY(-2px);
    transition: transform 220ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease;
  }
  /* primary CTA: same lift, with the shadow following */
  html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p a:hover {
    box-shadow: 0 1px 2px rgba(180, 83, 9, .3), 0 10px 24px rgba(217, 119, 6, .3);
    transform: translateY(-1px);
  }
}
/* :active wins over the hover lift so presses still feel pressed */
html.cft-v2 table.pmpro_levels_table tr.pmpro_level:active { transform: none; }

/* 16d. Show/hide password: the new icon swaps in with a tiny scale + blur, so
   the change reads as one morph rather than two icons flashing. PMPro re-renders
   the <svg> on each toggle, so the keyframe replays every time. */
@keyframes cft-icon-swap {
  from { filter: blur(2px); opacity: 0; transform: scale(.8); }
  to   { filter: none; opacity: 1; transform: none; }
}
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn[data-toggle] svg { animation: cft-icon-swap 180ms var(--ease-out); }
/* …but not on first paint */
html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn[data-toggle="0"]:not(.cft-touched) svg { animation: none; }

/* 16e. Focus rings ease in instead of snapping (fields + buttons) */
html.cft-v2 :is(input, select, textarea) { transition: border-color 150ms ease, box-shadow 180ms var(--ease-out); }

/* ---------------------------------------------------------------------
   17. Reduced motion: keep fades, drop movement
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.cft-v2 { scroll-behavior: auto; }
  /* motion section 16: keep the fades, drop every movement */
  html.cft-v2.cft-intro .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p { animation-name: cft-fade; }
  html.cft-v2.cft-reveal [data-cft-reveal][data-cft-reveal] { transform: none; }
  html.cft-v2 table.pmpro_levels_table tr.pmpro_level:hover,
  html.cft-v2 .elementor-element-149386e .slick-slide:hover,
  html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(3) .htslider-scroll-navigation-content p a:hover { transform: none !important; }
  html.cft-v2 .pmpro_form_field-password-toggle button.pmpro_btn[data-toggle] svg { animation-name: cft-fade; }
  html.cft-v2 *, html.cft-v2 *::before, html.cft-v2 *::after { transition-property: opacity, color, background-color, border-color !important; }
  html.cft-v2 .main-navigation ul.sub-menu,
  html.cft-v2 .main-navigation ul li:is(:hover, :focus-within) > ul.sub-menu { transform: none !important; }
  html.cft-v2 #mobile-navigation { transition: none; }
  html.cft-v2 :is(.btn, button, input[type="submit"], .pmpro_btn, .elementor-button, a):active { transform: none !important; }
}

/* ---------------------------------------------------------------------
   18. Log in + sign up (checkout): split layout from the design canvas.
   toggle.js wraps PMPro's own section in .cft-auth and adds the brand
   panel; every PMPro field, ID, nonce and script stays untouched. If the
   JS never runs, the pages fall back to the card styles above.
   --------------------------------------------------------------------- */
html.cft-v2 body:has(.cft-auth) #content > header.masthead { display: none; }
html.cft-v2 body:has(.cft-auth) #content #primary { float: none; margin-inline: auto; max-width: 1180px; padding-block: clamp(24px, 5vw, 56px); width: 100%; }
html.cft-v2 body:has(.cft-auth) #secondary { display: none; }
html.cft-v2 body:has(.cft-auth) #main > article { background: transparent; border: 0; box-shadow: none; margin: 0; padding: 0; }
html.cft-v2 body:has(.cft-auth) .site-main > article .entry-header { display: none; }

html.cft-v2 .cft-auth {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
html.cft-v2 .cft-auth--signup { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
html.cft-v2 .cft-auth--signup .cft-auth-panel { justify-content: flex-start; }
html.cft-v2 .cft-auth--signup .cft-auth-copy { margin-top: 24px; }

/* brand panel */
html.cft-v2 .cft-auth-panel {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: space-between;
  padding: clamp(28px, 4.5vw, 56px);
}
html.cft-v2 .cft-auth-brand { align-items: center; color: #fff; display: flex; gap: 12px; text-decoration: none; }
html.cft-v2 .cft-auth-brand img { background: #fff; border-radius: 10px; height: 44px; object-fit: contain; width: 44px; }
html.cft-v2 .cft-auth-brand .cft-auth-tile { align-items: center; background: var(--ink-3); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; display: flex; font-size: 14px; font-weight: 800; height: 44px; justify-content: center; width: 44px; }
html.cft-v2 .cft-auth-brand b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
html.cft-v2 .cft-auth-brand small { color: rgba(226,232,240,.78); display: block; font-size: 13px; }
html.cft-v2 .cft-auth-copy { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
html.cft-v2 .cft-auth-copy :is(h1, h2) { color: #fff !important; font-size: clamp(30px, 3.4vw, 46px) !important; font-weight: 800; letter-spacing: -0.035em; line-height: 1.07; margin: 0; }
html.cft-v2 .cft-auth-copy p { color: rgba(226,232,240,.86); font-size: 17px; line-height: 1.65; margin: 0; }
html.cft-v2 .cft-auth-stats { border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 24px 0 0; }
html.cft-v2 .cft-auth-stats li { display: flex; flex-direction: column; gap: 4px; margin: 0; }
html.cft-v2 .cft-auth-stats b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
html.cft-v2 .cft-auth-stats span { color: rgba(226,232,240,.78); font-size: 13px; }
html.cft-v2 .cft-auth-checks { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
html.cft-v2 .cft-auth-checks li { color: rgba(255,255,255,.92); display: flex; font-size: 15px; gap: 12px; line-height: 1.5; margin: 0; }
html.cft-v2 .cft-auth-checks li::before {
  background: var(--amber);
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  -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='M20 6 9 17l-5-5'/%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='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* form side */
html.cft-v2 .cft-auth-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4.5vw, 56px); }
html.cft-v2 .cft-auth--login .cft-auth-main { align-items: center; }
html.cft-v2 .cft-auth--login .cft-auth-main > * { margin-inline: 0 !important; max-width: 400px; width: 100%; }
html.cft-v2 .cft-auth--signup .cft-auth-main > * { max-width: 640px; width: 100%; }
html.cft-v2 .cft-auth-head { margin-bottom: 24px; }
html.cft-v2 .cft-auth-head h2 { color: var(--ink) !important; font-size: 30px !important; font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 8px; }
html.cft-v2 .cft-auth-head p { color: var(--muted); font-size: 15px; margin: 0; }
html.cft-v2 .cft-auth-head a { color: var(--ink-3); font-weight: 600; text-underline-offset: 3px; }

/* flatten PMPro's cards inside the split */
html.cft-v2 .cft-auth .pmpro_card { background: transparent; border: 0; border-radius: 0; box-shadow: none !important; margin: 0; }
html.cft-v2 .cft-auth .pmpro_card_content { padding: 0 !important; }
html.cft-v2 .cft-auth .pmpro_card_actions { background: transparent; border: 0; padding: 12px 0 0; }
html.cft-v2 .cft-auth .pmpro_section { margin: 0; }
html.cft-v2 .cft-auth #pmpro_login .pmpro_login_wrap { box-shadow: none; }
html.cft-v2 .cft-auth #pmpro_login .pmpro_card_actions { padding-top: 16px; text-align: center; }
html.cft-v2 .cft-auth #loginform :is(#wp-submit, input[type="submit"]) { height: 50px; width: 100%; }

/* checkout: plan picker → your details → summary + discount → submit */
html.cft-v2 .cft-auth #pmpro_form { display: flex; flex-direction: column; gap: 32px; }
html.cft-v2 .cft-auth #pmpro_form > :is(#pmpro_message, .pmpro_message) { order: -2; }
html.cft-v2 .cft-auth #pmpro_form > .cft-plans { order: -1; }
html.cft-v2 .cft-auth #pmpro_form > #pmpro_user_fields { order: 1; }
html.cft-v2 .cft-auth #pmpro_form > #pmpro_pricing_fields { order: 2; }
html.cft-v2 .cft-auth #pmpro_form > * { order: 3; }
html.cft-v2 .cft-auth #pmpro_form > :is(.pmpro_form_submit, #pmpro_message_bottom) { order: 4; }
html.cft-v2 .cft-auth #pmpro_form > :is(.pmpro_captcha) { order: 3; }
html.cft-v2 .cft-auth #pmpro_form fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
html.cft-v2 .cft-auth :is(.cft-plans-label, .pmpro_form_heading, #pmpro_pricing_fields > .pmpro_card_title) {
  color: var(--amber-ink) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  margin: 0 0 14px !important;
  text-transform: uppercase;
}
html.cft-v2 .cft-auth #pmpro_pricing_fields {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
html.cft-v2 .cft-auth #pmpro_pricing_fields .pmpro_card_content p { margin: 0 0 6px; }
html.cft-v2 .cft-auth #pmpro_pricing_fields .pmpro_card_actions { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }

html.cft-v2 .cft-plans-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
html.cft-v2 a.cft-plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 0 0 1px transparent;
  color: var(--ink) !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  min-height: 116px;
  padding: 16px;
  text-decoration: none !important;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out);
}
html.cft-v2 a.cft-plan[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 4px 16px rgba(15,23,42,.08); }
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 a.cft-plan:not([aria-current="true"]):hover { border-color: var(--line-strong); }
}
html.cft-v2 a.cft-plan:active { transform: scale(0.98); }
html.cft-v2 .cft-plan-top { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; }
html.cft-v2 .cft-plan-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
html.cft-v2 .cft-plan-radio { border: 1.5px solid #94a3b8; border-radius: 50%; box-sizing: border-box; flex: 0 0 18px; height: 18px; width: 18px; }
html.cft-v2 a.cft-plan[aria-current="true"] .cft-plan-radio { border: 5px solid var(--ink); }
html.cft-v2 .cft-plan-price { align-items: baseline; display: flex; flex-wrap: wrap; gap: 2px 6px; min-width: 0; }
html.cft-v2 .cft-plan-price b, html.cft-v2 .cft-plan-price span { white-space: nowrap; }
html.cft-v2 .cft-plan-price b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
html.cft-v2 .cft-plan-price span { color: var(--muted); font-size: 13px; }

html.cft-v2 .cft-auth #pmpro_form .pmpro_form_submit :is(.pmpro_btn-submit-checkout, #pmpro_btn-submit) { align-items: center; display: flex; gap: 8px; height: 52px; justify-content: center; width: 100% !important; }
html.cft-v2 .cft-auth #pmpro_form .pmpro_form_submit > span { display: block; width: 100%; }
/* the new heading already links to log in */
html.cft-v2 .cft-auth:has(.cft-auth-head a) #pmpro_user_fields .pmpro_card_actions { display: none; }
html.cft-v2 .cft-auth #pmpro_form #pmpro_pricing_fields > .pmpro_card_title { padding: 0 !important; }

/* tablet + phone: the panel becomes a compact header above the form */
@media (max-width: 900px) {
  html.cft-v2 .cft-auth, html.cft-v2 .cft-auth--signup { grid-template-columns: minmax(0, 1fr); }
  html.cft-v2 .cft-auth-panel { gap: 24px; padding: 24px; }
  html.cft-v2 .cft-auth-copy { gap: 8px; }
  html.cft-v2 .cft-auth-copy :is(h1, h2) { font-size: 28px !important; }
  html.cft-v2 .cft-auth-copy p { font-size: 15px; }
  html.cft-v2 :is(.cft-auth-stats, .cft-auth-checks) { display: none; }
  html.cft-v2 .cft-auth-main { padding: 28px 20px; }
}
@media (max-width: 600px) {
  html.cft-v2 body:has(.cft-auth) #primary { padding: 0; }
  html.cft-v2 .cft-auth { border: 0; border-radius: 0; box-shadow: none; }
  html.cft-v2 .cft-auth-brand small { display: none; }
  html.cft-v2 .cft-auth-head h2 { font-size: 26px !important; }
  html.cft-v2 .cft-plans-grid { grid-template-columns: minmax(0, 1fr); }
  html.cft-v2 a.cft-plan { align-items: center; flex-direction: row; min-height: 64px; }
  html.cft-v2 .cft-plan-top { align-items: center; flex: 1; flex-direction: row-reverse; justify-content: flex-end; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.cft-v2 a.cft-plan { transition: none; }
  html.cft-v2 a.cft-plan:active { transform: none; }
}

/* ---------------------------------------------------------------------
   19. Every other page: the log-in / sign-up language, site-wide.
   a) The navy title band runs deeper and the content card overlaps it,
      so every page reads as one white card on navy, like the auth screens.
   b) Pages with an intro or contact details (Contact, Demo Accounts,
      Membership Levels, Subscribe, About) get the navy split panel;
      toggle.js moves their own content into it (see buildPageSplit).
   --------------------------------------------------------------------- */
html.cft-v2 body:not(.home) #content > header.masthead { padding-block: 56px 120px; }
html.cft-v2 body:not(.home) #content > header.masthead + .row { margin-top: -88px; padding-top: 0; position: relative; }
html.cft-v2 :is(body.page, body.single):not(.home):not(:has(.cft-auth)) #main > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4.5vw, 56px);
}
html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article { border-radius: 20px; box-shadow: var(--shadow); }
html.cft-v2 body:not(.home) .widget-area .widget { border-radius: 20px; box-shadow: var(--shadow); }
html.cft-v2 body.error404 #main > :is(section, .error-404) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4.5vw, 56px);
}

/* b) split content pages reuse .cft-auth; these are the content-specific parts */
html.cft-v2 .cft-auth--page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
html.cft-v2 .cft-auth--page .cft-auth-panel { justify-content: flex-start; }
html.cft-v2 .cft-auth--page .cft-auth-copy { margin-top: 24px; }
html.cft-v2 .cft-auth--page .cft-auth-main { justify-content: flex-start; }
html.cft-v2 .cft-auth--page .cft-auth-main > .entry-content { color: var(--text); font-size: 16.5px; }
html.cft-v2 .cft-auth--page .cft-auth-main .elementor-section > .elementor-container { max-width: none; }
html.cft-v2 .cft-auth--page .cft-auth-main :is(.elementor-column, .elementor-widget__width-initial) { width: 100% !important; max-width: 100% !important; }
html.cft-v2 .cft-auth--page .cft-auth-main .elementor-widget-wrap { padding: 0 !important; }
html.cft-v2 .cft-auth--page .cft-auth-main .elementor-section { left: auto !important; margin: 0 !important; max-width: 100% !important; padding: 0 !important; width: auto !important; }
html.cft-v2 .cft-auth--page .cft-auth-main .elementor-widget { --container-widget-width: 100%; margin: 0 !important; max-width: 100% !important; width: 100% !important; }
html.cft-v2 .cft-auth--page .cft-auth-main table.pmpro_levels_table tbody { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
html.cft-v2 .cft-auth .cft-hidden,
html.cft-v2 .cft-auth .cft-hidden + br { display: none !important; }
html.cft-v2 .cft-auth-panel .cft-auth-lead { color: rgba(226,232,240,.86); font-size: 17px; line-height: 1.65; margin: 0; }
html.cft-v2 .cft-auth-panel .cft-auth-lead strong { color: #fff; font-weight: 600; }
html.cft-v2 .cft-auth-panel .cft-auth-checks li { font-style: normal; }
html.cft-v2 .cft-auth-panel .cft-auth-checks li em { font-style: normal; }

/* contact details in the panel: real links, crisp icons (the theme's
   Font Awesome glyph for the map pin is missing, so all three are masks) */
html.cft-v2 .cft-contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
html.cft-v2 .cft-contact-list p.info { align-items: center; display: flex; gap: 12px; margin: 0; }
html.cft-v2 .cft-contact-list p.info i.fa { display: none; }
html.cft-v2 .cft-contact-list p.info::before {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  content: "";
  flex: 0 0 40px;
  height: 40px;
}
html.cft-v2 .cft-contact-list p.info { position: relative; }
html.cft-v2 .cft-contact-list p.info::after {
  background: #fff;
  content: "";
  height: 18px;
  left: 11px;
  -webkit-mask: var(--cft-icon) center / contain no-repeat;
          mask: var(--cft-icon) center / contain no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}
html.cft-v2 .cft-contact-list p.info:has(.fa-phone) { --cft-icon: 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='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
html.cft-v2 .cft-contact-list p.info:has(.fa-envelope) { --cft-icon: 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%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
html.cft-v2 .cft-contact-list p.info:has(.fa-map-marker) { --cft-icon: 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='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
html.cft-v2 .cft-contact-list p.info a { color: #fff !important; font-size: 16px; font-weight: 500; text-decoration: none; }
html.cft-v2 .cft-contact-list p.info a[href]:not([href=""]):hover { text-decoration: underline; text-underline-offset: 3px; }

/* about: the founder quote becomes the panel statement */
html.cft-v2 .cft-auth-panel .cft-auth-quote { color: #fff; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; margin: 8px 0 0; }
html.cft-v2 .cft-auth-panel .cft-auth-byline { border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding-top: 16px; }
html.cft-v2 .cft-auth-panel .cft-auth-byline hr { display: none; }
html.cft-v2 .cft-auth-panel .cft-auth-byline .agency strong { color: rgba(226,232,240,.78); font-size: 14px; font-weight: 500; }
html.cft-v2 .cft-auth-panel .cft-auth-byline .agency:first-child strong { color: #fff; font-size: 16px; font-weight: 600; }
html.cft-v2 .cft-auth-panel .cft-auth-byline a { color: #fff !important; text-decoration: none; }
html.cft-v2 .cft-page--about .cft-auth-main h3 { color: var(--ink); font-size: 22px; margin: 0 0 10px; }
html.cft-v2 .cft-page--about .cft-auth-main h3 ~ h3 { margin-top: 32px; }

/* Contact Form 7, everywhere: labels sit above fields, left-aligned */
/* the forms are English but CF7 marks them lang="ar" dir="rtl"; see fixes/README */
html.cft-v2 .wpcf7 { direction: ltr; }
html.cft-v2 .wpcf7-form, html.cft-v2 .wpcf7-form p { text-align: start !important; }
html.cft-v2 .wpcf7-form label { color: var(--ink); display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-align: start !important; }
html.cft-v2 .cft-auth .wpcf7 form { background: transparent; border: 0; border-radius: 0; padding: 0; }
html.cft-v2 .wpcf7-form label .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
html.cft-v2 .wpcf7-form :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { text-align: start; width: 100%; }
html.cft-v2 .wpcf7-form textarea { max-height: 220px; }
html.cft-v2 .cft-auth .wpcf7-form .wpcf7-submit { height: 50px; width: 100%; }

/* demo + levels: plan cards inside the white side */
html.cft-v2 .cft-auth--page #pmpro_levels { margin-block: 8px 24px; }

@media (max-width: 900px) {
  html.cft-v2 body:not(.home) #content > header.masthead { padding-block: 36px 96px; }
  html.cft-v2 body:not(.home) #content > header.masthead + .row { margin-top: -72px; }
  html.cft-v2 .cft-auth--page { grid-template-columns: minmax(0, 1fr); }
  /* on small screens the panel keeps its details (they are content) */
  html.cft-v2 .cft-auth--page :is(.cft-auth-checks) { display: flex; }
}
/* split pages hide the band, so no overlap there */
html.cft-v2 body:has(.cft-auth) #content > header.masthead + .row { margin-top: 0; }
html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level { padding: 20px 18px 18px; }
html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level > :first-child { font-size: 16px !important; }
html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level > :nth-child(2) strong { font-size: 26px !important; }
html.cft-v2 .cft-auth-panel .cft-auth-lead em { font-style: normal; }
html.cft-v2 .wpcf7-form .wpcf7-submit { color: #fff !important; -webkit-text-fill-color: #fff; }
html.cft-v2 .wpcf7-form .cft-cf7-submit { margin: 8px 0 0; }

/* 404: #primary sits straight in #content (no .row), so give it the same frame */
html.cft-v2 body.error404 #content > header.masthead + #primary {
  float: none; margin: -88px auto 0; max-width: 1180px; padding: 0 20px 72px; position: relative;
}
/* pages whose sidebar is empty (toggle.js adds .cft-no-sidebar; nested
   :has() is not valid CSS): drop it and centre a reading-width card */
html.cft-v2 body.cft-no-sidebar #secondary { display: none; }
html.cft-v2 body.cft-no-sidebar:not(:has(.cft-auth)) #content > .row > #primary { float: none; margin-inline: auto; max-width: 880px; width: 100%; }
@media (max-width: 900px) {
  html.cft-v2 body.error404 #content > header.masthead + #primary { margin-top: -72px; padding-inline: 16px; }
}
html.cft-v2 body.cft-no-sidebar #content > header.masthead > .row { max-width: 880px; }

/* ---------------------------------------------------------------------
   20. Video: every YouTube / Vimeo embed at its true 16:9.
   WordPress oEmbeds carry width="852" height="639" (4:3), which left
   black bars above and below; the homepage Elementor video was set to
   21:9, which cropped the top and bottom of the picture.
   --------------------------------------------------------------------- */
html.cft-v2 :is(.entry-content, .elementor-widget-container) iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="player.vimeo.com"]) {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
  height: auto !important;
  max-width: 100%;
  width: 100% !important;
}
html.cft-v2 .elementor-widget-video .elementor-wrapper { --video-aspect-ratio: 1.77777; aspect-ratio: 16 / 9; height: auto !important; }
html.cft-v2 .elementor-widget-video .elementor-wrapper iframe { height: 100% !important; }

/* ---------------------------------------------------------------------
   21. Moving between pages, and things that appear (Nov 20)
   Same rules as section 16: short, ease-out, nothing on repeat actions,
   and everything respects reduced motion (section at the end).
   --------------------------------------------------------------------- */

/* 21a. Page to page: the header stays put; the page underneath fades and
   rises 6px. Browsers without cross-document View Transitions (or with
   reduced motion) simply navigate as before. */
@view-transition { navigation: auto; }
/* a named element becomes its own stacking context; keep the header (and its
   dropdown menus) above the content card that overlaps the title band */
html.cft-v2 #masthead { position: relative; view-transition-name: cft-header; z-index: 60; }
html.cft-v2 #site-navigation { view-transition-name: cft-nav; } /* already sticky, z-index 999 */
@keyframes cft-vt-out { to { opacity: 0; } }
@keyframes cft-vt-in { from { opacity: 0; transform: translateY(6px); } }
html.cft-v2::view-transition-old(root) { animation: cft-vt-out 120ms ease-out both; }
html.cft-v2::view-transition-new(root) { animation: cft-vt-in 260ms var(--ease-out) 40ms both; }
/* header + menu: hold still, just let the active-page underline cross-fade */
/* no sliding: if the old page was scrolled, the header would otherwise glide
   in from above; it simply sits in its new place */
html.cft-v2::view-transition-group(cft-header),
html.cft-v2::view-transition-group(cft-nav) { animation: none; }
html.cft-v2::view-transition-old(cft-header),
html.cft-v2::view-transition-old(cft-nav),
html.cft-v2::view-transition-new(cft-header),
html.cft-v2::view-transition-new(cft-nav) { animation-duration: 180ms; animation-timing-function: ease; }

/* 21b. Split pages (Contact, Demo, Levels, Subscribe, About) and sign-up:
   the navy panel's content settles in, first visit per session only
   (toggle.js sets html.cft-enter before first paint). Log in is skipped:
   members see it all the time. */
html.cft-v2.cft-enter .cft-auth-panel > *,
html.cft-v2.cft-enter .cft-auth-copy > *,
html.cft-v2.cft-enter .cft-auth-panel > ul > li {
  animation: cft-rise 420ms var(--ease-out) both;
}
html.cft-v2.cft-enter .cft-auth-copy > :nth-child(2) { animation-delay: 50ms; }
html.cft-v2.cft-enter .cft-auth-copy > :nth-child(n+3) { animation-delay: 100ms; }
html.cft-v2.cft-enter .cft-auth-panel > ul > li:nth-child(1) { animation-delay: 140ms; }
html.cft-v2.cft-enter .cft-auth-panel > ul > li:nth-child(2) { animation-delay: 170ms; }
html.cft-v2.cft-enter .cft-auth-panel > ul > li:nth-child(3) { animation-delay: 200ms; }
html.cft-v2.cft-enter .cft-auth-panel > ul > li:nth-child(4) { animation-delay: 230ms; }
html.cft-v2.cft-enter .cft-auth-panel > ul > li:nth-child(n+5) { animation-delay: 260ms; }
html.cft-v2.cft-enter .cft-contact-list p.info { animation: cft-rise 420ms var(--ease-out) both; }
html.cft-v2.cft-enter .cft-contact-list p.info:nth-child(2) { animation-delay: 50ms; }
html.cft-v2.cft-enter .cft-contact-list p.info:nth-child(3) { animation-delay: 100ms; }

/* 21c. Things that appear after an action: they arrive instead of popping */
@keyframes cft-drop { from { opacity: 0; transform: translateY(-4px); } }
/* checkout: "enter your discount code" field, PMPro errors/notices */
html.cft-v2 #other_discount_code_fields,
html.cft-v2 .pmpro_message:is(.pmpro_error, .pmpro_success, .pmpro_alert) { animation: cft-drop 200ms var(--ease-out); }
/* Contact Form 7: the result line after Send, and the per-field hints */
html.cft-v2 .wpcf7 form:is(.sent, .invalid, .failed, .spam, .aborted, .unaccepted, .payment-required) .wpcf7-response-output { animation: cft-drop 220ms var(--ease-out); }
html.cft-v2 .wpcf7-not-valid-tip { animation: cft-drop 160ms var(--ease-out); }
/* Mailchimp newsletter result */
html.cft-v2 .mc4wp-response > * { animation: cft-drop 200ms var(--ease-out); }

/* 21d. Post cards on blog/category/tag pages and the plan cards inside
   the split pages: the same 2px hover lift as the homepage cards. */
html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article,
html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level {
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
  html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level:hover { transform: translateY(-2px); }
  /* contact details: the icon tile lightens under the pointer */
  html.cft-v2 .cft-contact-list p.info::before { transition: background-color 150ms ease, border-color 150ms ease; }
  html.cft-v2 .cft-contact-list p.info:has(a[href^="tel:"], a[href^="mailto:"]):hover::before { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.cft-v2.cft-enter :is(.cft-auth-panel > *, .cft-auth-copy > *, .cft-auth-panel > ul > li, .cft-contact-list p.info) { animation-name: cft-fade; }
  html.cft-v2 :is(#other_discount_code_fields, .pmpro_message, .wpcf7-response-output, .wpcf7-not-valid-tip, .mc4wp-response > *) { animation-name: cft-fade !important; }
  html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article:hover,
  html.cft-v2 .cft-auth--page table.pmpro_levels_table tr.pmpro_level:hover { transform: none; }
}

/* ---------------------------------------------------------------------
   22. Tablets and small screens (Nov 20 polish)
   --------------------------------------------------------------------- */
/* header: logo block and account buttons size to their content (the theme's
   75% / 25% grid cut "Register" off on tablets) */
html.cft-v2 #masthead > .row > .site-branding { flex: 1 1 auto; min-width: 0; width: auto; }
html.cft-v2 #masthead > .row > .header-right { flex: 0 0 auto; width: auto; }

/* below 1200px the seven menu items no longer fit on one line; use the
   drawer (as on phones) instead of a ragged two-line menu */
@media (max-width: 1199px) {
  html.cft-v2 #site-navigation { display: none; }
  html.cft-v2 #masthead > .row { flex-wrap: nowrap; }
  html.cft-v2 #masthead .mobile-navigation-bar { display: block; margin-left: 12px; width: auto; }
  html.cft-v2 #masthead .menu-toggle { align-items: center; display: inline-flex; height: 40px; justify-content: center; width: 44px; }
  html.cft-v2 #mobile-navigation { display: block; }
}

/* drawer: clean list, account buttons side by side, page behind stays put */
html.cft-v2 #mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
html.cft-v2 #mobile-navigation ul.menu > li + li { margin-top: 2px; }
html.cft-v2 #mobile-navigation .menu-main-menu-container > ul.menu > li > a { font-weight: 600; }
html.cft-v2 #mobile-navigation #meta-member .meta-member-inner,
html.cft-v2 #mobile-navigation #meta-member .member-navigation { display: block; width: 100%; }
html.cft-v2 #mobile-navigation #meta-member .member-navigation ul.menu { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
html.cft-v2 #mobile-navigation #meta-member .member-navigation li { border: 0; margin: 0; padding: 0; }
html.cft-v2 #mobile-navigation #meta-member .member-navigation li::before,
html.cft-v2 #mobile-navigation #meta-member .member-navigation li::after { content: none; display: none; }
html.cft-v2 #mobile-navigation #meta-member .member-navigation a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-sm);
  color: #fff;
  display: flex;
  font-weight: 600;
  height: 44px;
  justify-content: center;
  padding: 0 12px;
}
html.cft-v2 #mobile-navigation #meta-member .member-navigation li:last-child a { background: #fff; border-color: #fff; color: var(--ink); }
html.cft-v2 #mobile-navigation #meta-member .member-navigation li:only-child { grid-column: 1 / -1; }
html.cft-v2:has(#mobile-navigation.toggled) { overflow: hidden; }

/* the hamburger: a crisp drawn icon (the theme's icon font is hidden above
   767px, which left an empty box on tablets) */
html.cft-v2 #masthead .menu-toggle i { display: none; }
html.cft-v2 #masthead .menu-toggle::before {
  background: var(--ink);
  content: "";
  height: 20px;
  -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'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%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'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 20px;
}
html.cft-v2 #masthead .menu-toggle { align-items: center; display: inline-flex; justify-content: center; }
@media (min-width: 1200px) { html.cft-v2 #masthead .menu-toggle { display: none; } }

/* Labels in sentence case, not tracked capitals: they read as headings for
   what follows, without the shouting. (Overrides sections 7, 11, 12, 18.) */
html.cft-v2 .widget-area .widget-title,
html.cft-v2 .widget-area .widget-title a { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -0.005em; text-transform: none; }
html.cft-v2 .elementor-element-d54962b .htslider-scroll-navigation-content h4 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0; text-transform: none; }
html.cft-v2 .elementor-element-d54962b .swiper-slide:nth-child(1) .htslider-scroll-navigation-content > div > p:nth-child(1) { font-size: 16px !important; font-weight: 500; letter-spacing: 0; text-transform: none; }
html.cft-v2 .cft-auth :is(.cft-plans-label, .pmpro_form_heading, #pmpro_pricing_fields > .pmpro_card_title) { color: var(--ink) !important; font-size: 16px !important; font-weight: 650; letter-spacing: -0.005em; text-transform: none; }
html.cft-v2 .pmpro table.pmpro_table:not(.pmpro_levels_table) th { letter-spacing: 0; text-transform: none; }
/* post cards aren't one big link (only the title and "read more" are), so
   they don't lift on hover */
@media (hover: hover) and (pointer: fine) {
  html.cft-v2 :is(body.archive, body.blog, body.search) .site-main > article:hover { box-shadow: var(--shadow); transform: none; }
}

/* home feature cards: 2 columns on tablets (the wide third card spans both),
   1 column with full-width images on phones */
@media (min-width: 600px) and (max-width: 900px) {
  html.cft-v2 .elementor-element-149386e .slick-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.cft-v2 .elementor-element-149386e .slick-slide:nth-child(3 of :not(.slick-cloned)) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  html.cft-v2 .elementor-element-149386e .htslider-desc img { width: 100%; }
}

/* blog/category/post sidebar: under the content below 1024px, widgets in a
   2-column grid (1 column on phones), instead of a cramped 250px strip */
@media (max-width: 1023px) {
  html.cft-v2 #content > .row > :is(#primary, #secondary) { float: none; max-width: none; width: 100%; }
  html.cft-v2 #content > .row > #secondary:has(.widget) {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }
  html.cft-v2 #content > .row > #secondary .widget { margin: 0; }
}
@media (max-width: 599px) {
  html.cft-v2 #content > .row > #secondary:has(.widget) { grid-template-columns: minmax(0, 1fr); }
}

/* sign-up form uses the full card width once the layout stacks */
@media (max-width: 900px) {
  html.cft-v2 .cft-auth--signup .cft-auth-main > * { max-width: none !important; }
}

html.cft-v2 #colophon a.skip-link { white-space: nowrap; }
/* homepage video: same side margins as the cards above it */
@media (max-width: 1007px) {
  html.cft-v2 .elementor-2097 .elementor-element-8e54026 .elementor-widget-container { margin-inline: 24px; }
}
@media (max-width: 599px) {
  html.cft-v2 .elementor-2097 .elementor-element-8e54026 .elementor-widget-container { margin-inline: 16px; }
}

/* phones: wide tables in posts scroll inside their own box instead of
   zooming the whole page out */
@media (max-width: 767px) {
  html.cft-v2 .entry-content table { display: block; font-size: 14px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  html.cft-v2 .entry-content table :is(th, td) { min-width: 120px; padding: 10px 12px; }
  html.cft-v2 .entry-content :is(p, li, a) { overflow-wrap: break-word; }
}
/* phones: the tagline would be cut off mid-word; the logo + name carry it */
@media (max-width: 420px) {
  html.cft-v2 #masthead .site-description { display: none; }
  html.cft-v2 #masthead .site-title { align-self: center; grid-row: 1 / span 2; }
}
/* stacked split pages: the header already shows the logo right above */
@media (max-width: 900px) {
  html.cft-v2 .cft-auth-panel .cft-auth-brand { display: none; }
  html.cft-v2 .cft-auth-panel .cft-auth-copy { margin-top: 0; }
}
/* plan cards on Demo / Levels: one per row on phones (2 + 1 was cramped) */
@media (max-width: 599px) {
  html.cft-v2 .cft-auth--page .cft-auth-main table.pmpro_levels_table tbody { grid-template-columns: minmax(0, 1fr); }
  html.cft-v2 .cft-auth--page .cft-auth-main table.pmpro_levels_table tr.pmpro_level { min-height: 0; }
}
/* tablet header keeps a side gutter (phones already have 16px) */
@media (min-width: 768px) and (max-width: 1199px) {
  html.cft-v2 #masthead > .row { padding-inline: 24px; }
}
/* checkout: Password and Confirm Password sit on the same line (the
   show-password wrapper pushed the first one 6px down) */
html.cft-v2 #pmpro_user_fields .pmpro_cols-2 { align-items: end; }
html.cft-v2 #pmpro_user_fields .pmpro_form_field-password-toggle { margin: 0; }
html.cft-v2 .cft-auth--page .cft-auth-main .elementor-container { flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   23. Wide wordmark logo ("CMA Fast Track", Nov 21). toggle.js adds
   html.cft-logo-wide when the custom logo is wider than 1.6:1.
   --------------------------------------------------------------------- */
html.cft-v2.cft-logo-wide #masthead .custom-logo {
  border-radius: 0;
  box-shadow: none;
  height: 52px;
  object-fit: contain;
  width: auto;
}
/* the wordmark spells the name: keep the title for screen readers / SEO */
html.cft-v2.cft-logo-wide #masthead .site-title {
  clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}
html.cft-v2.cft-logo-wide #masthead .site-description { align-self: center; grid-row: 1 / span 2; }
html.cft-v2.cft-logo-wide .cft-auth-brand img { height: 44px; padding: 6px 10px; width: auto; }
html.cft-v2.cft-logo-wide .cft-auth-brand b { display: none; }
@media (max-width: 767px) {
  html.cft-v2.cft-logo-wide #masthead .custom-logo { height: 38px; width: auto; }
}
@media (max-width: 420px) {
  html.cft-v2.cft-logo-wide #masthead .custom-logo { height: 34px; }
}

/* ---------------------------------------------------------------------
   24. Search in the main menu (Memberlite "nav_menu_search", Nov 21).
   Desktop: a 40px magnifier at the end of the menu row that opens into a
   field over the menu on focus, so the row never wraps. Drawer: full width.
   Enter submits; the Search button stays for screen readers.
   --------------------------------------------------------------------- */
html.cft-v2 #site-navigation ul.menu > li.menu-item-search { align-self: center; margin-left: auto; position: relative; }
html.cft-v2 #site-navigation li.menu-item-search .search-form { margin: 0; position: relative; }
html.cft-v2 #site-navigation li.menu-item-search label { display: block; margin: 0; }
html.cft-v2 li.menu-item-search .search-submit {
  clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}
html.cft-v2 #site-navigation li.menu-item-search .search-field {
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  font-size: 14px;
  height: 40px;
  margin: 0;
  min-width: 0; /* Memberlite: #site-navigation .search-form input[type=search] { min-width: 150px } */
  padding: 0 0 0 40px;
  transition: width .25s var(--ease-out), border-color .15s, box-shadow .15s;
  width: 40px;
}
html.cft-v2 #site-navigation li.menu-item-search .search-field::placeholder { color: transparent; }
html.cft-v2 #site-navigation li.menu-item-search .search-field:hover { border-color: var(--line-strong); }
html.cft-v2 #site-navigation li.menu-item-search:focus-within .search-form { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; }
html.cft-v2 #site-navigation li.menu-item-search .search-field:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(28, 58, 102, .15), var(--shadow);
  color: var(--text);
  cursor: text;
  outline: none;
  padding-right: 14px;
  width: min(320px, 60vw);
}
html.cft-v2 #site-navigation li.menu-item-search .search-field:focus::placeholder { color: var(--subtle); }
/* the last real menu item's dropdown now sits one place earlier */
html.cft-v2 .main-navigation ul.menu:has(> li.menu-item-search) > li:nth-last-child(3) > ul.sub-menu { left: auto; right: 0; transform-origin: top right; }

/* drawer (phones / tablets) */
html.cft-v2 #mobile-navigation li.menu-item-search { margin-top: 10px; }
html.cft-v2 #mobile-navigation li.menu-item-search .search-form { margin: 0; }
html.cft-v2 #mobile-navigation li.menu-item-search label { display: block; margin: 0; }
html.cft-v2 #mobile-navigation li.menu-item-search .search-field {
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px; /* no iOS zoom */
  height: 44px;
  padding: 0 12px 0 40px;
  width: 100%;
}
html.cft-v2 #mobile-navigation li.menu-item-search .search-field::placeholder { color: rgba(255, 255, 255, .6); }
@media (prefers-reduced-motion: reduce) {
  html.cft-v2 #site-navigation li.menu-item-search .search-field { transition: none; }
}
