/*
Theme Name: ACL Community
Theme URI: https://abacourselab.com
Author: Hillock Tech
Author URI: https://hillocktech.com
Description: A warm WordPress block theme for ABA Course Lab. Integrates with LearnDash LMS. Designed for non-technical content editors with template locking and curated block patterns.
Version: 1.0.58
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acl-community
Tags: full-site-editing, block-patterns, education, custom-colors
*/

/* ── Reset ─────────────────────────────────────────────── */
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
*,*::before,*::after{box-sizing:border-box}

/* ── Font Pairing Override ─────────────────────────────── */
:root{
  --acl-font-display:"Fraunces", Georgia, serif;
  --acl-font-body:Inter, system-ui, sans-serif;
}
body{font-family:var(--acl-font-body)}
h1,h2,h3,h4,h5,h6,
.has-display-font-family,
.acl-track-card h3,
.acl-feature-card h3,
.acl-support-card h2,
.acl-testimonial blockquote,
.wp-block-site-title,
.acl-header-brand-text .wp-block-site-title{
  font-family:var(--acl-font-display);
}

/* ── Kicker / Label ────────────────────────────────────── */
.acl-kicker{
  color:var(--wp--preset--color--clay);
  font-family:var(--wp--preset--font-family--body);
  font-size:12px;
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

/* ── Badge Pill ────────────────────────────────────────── */
.acl-badge{
  background:var(--wp--preset--color--cream);
  border-radius:999px;
  color:var(--wp--preset--color--forest);
  display:inline-flex;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.2px;
  padding:10px 16px;
  text-transform:uppercase;
}

/* ── Pill Nav (header) ─────────────────────────────────── */
.acl-pill-nav{
  display:flex;
  justify-content:center;
}
.acl-pill-nav .acl-pill-nav-list,
.acl-pill-nav .menu{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:999px;
  display:flex;
  gap:6px;
  list-style:none;
  margin:0;
  padding:6px;
}
.acl-pill-nav .acl-pill-nav-list li,
.acl-pill-nav .menu li{list-style:none}
.acl-pill-nav .menu-item-has-children{position:relative}
.acl-pill-nav a{
  border-radius:999px;
  color:var(--wp--preset--color--ink);
  font-family:var(--acl-font-body);
  font-size:14px;
  font-weight:700;
  padding:10px 16px;
  text-decoration:none;
  transition:background .15s;
  white-space:nowrap;
  display:block;
}
.acl-pill-nav a:hover,
.acl-pill-nav .current-menu-item a,
.acl-pill-nav .acl-active a{
  background:var(--wp--preset--color--sage);
}
.acl-pill-nav .sub-menu{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(31,42,36,.12);
  display:block;
  left:0;
  list-style:none;
  margin:0;
  min-width:220px;
  opacity:0;
  padding:8px;
  pointer-events:none;
  position:absolute;
  top:calc(100% + 6px);
  transition:opacity .15s ease;
  z-index:30;
}
.acl-pill-nav .sub-menu::before{
  content:"";
  height:16px;
  left:0;
  position:absolute;
  right:0;
  top:-16px;
}
.acl-pill-nav .sub-menu .sub-menu{
  left:100%;
  top:0;
}
.acl-pill-nav .sub-menu .sub-menu::before{
  bottom:0;
  height:auto;
  left:-10px;
  right:auto;
  top:0;
  width:10px;
}
.acl-pill-nav .menu-item-has-children:hover > .sub-menu,
.acl-pill-nav .menu-item-has-children:focus-within > .sub-menu{
  opacity:1;
  pointer-events:auto;
}
.acl-pill-nav .sub-menu li{display:block}
.acl-pill-nav .sub-menu a{
  border-radius:12px;
  display:block;
  font-size:14px;
  line-height:1.25;
  padding:11px 12px;
  white-space:normal;
}
.acl-pill-nav .menu-item-has-children > a::after{
  content:"";
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  display:inline-block;
  margin-left:8px;
  transform:translateY(-1px);
}
.acl-pill-nav .sub-menu .menu-item-has-children > a::after{
  border-bottom:4px solid transparent;
  border-left:5px solid currentColor;
  border-right:0;
  border-top:4px solid transparent;
  float:right;
  margin-left:10px;
  margin-top:5px;
}

/* ── Pill Nav — Editor ─────────────────────────────────── */
.editor-styles-wrapper .acl-pill-nav,
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation__container{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:999px;
  gap:6px;
  padding:6px;
}
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation__container{
  background:none;
  border:none;
  padding:0;
}
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation-item__content,
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation-link__content{
  border-radius:999px;
  color:var(--wp--preset--color--ink);
  font-size:14px;
  font-weight:700;
  padding:10px 16px;
  text-decoration:none;
}

/* ── Card Base ─────────────────────────────────────────── */
.acl-card{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:28px;
  box-shadow:0 18px 50px rgba(31,42,36,.08);
  padding:18px;
}

/* ── Track / Course Path Card ──────────────────────────── */
.acl-track-card{
  background:var(--wp--preset--color--paper);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:24px;
  padding:28px;
}
.acl-track-card .acl-kicker{margin-bottom:14px}
.acl-track-card h3{
  font-family:var(--wp--preset--font-family--display);
  font-size:36px;
  line-height:1;
  margin:0 0 12px;
}
.acl-track-card p{
  color:var(--wp--preset--color--ink);
  font-size:17px;
  line-height:1.45;
  margin:0;
}
.acl-track-meta{
  border-top:1px solid var(--wp--preset--color--rule);
  color:var(--wp--preset--color--forest);
  font-size:14px;
  font-weight:800;
  margin-top:24px;
  padding-top:16px;
}

/* ── Support Feature Card ──────────────────────────────── */
.acl-feature-card{
  border:1px solid var(--wp--preset--color--rule);
  border-radius:24px;
  padding:28px;
}
.acl-feature-card h3{
  font-family:var(--wp--preset--font-family--display);
  font-size:36px;
  margin:0;
}
.acl-feature-card p{
  color:#405047;
  font-size:18px;
  line-height:1.45;
  margin:10px 0 0;
}

/* ── Instructor Cards ──────────────────────────────────── */
.acl-instructor-card{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:28px;
  box-shadow:0 18px 50px rgba(31,42,36,.08);
  padding:18px;
}
.acl-instructor-portrait{
  align-items:center;
  background:var(--wp--preset--color--sage);
  border-radius:22px;
  color:var(--wp--preset--color--forest);
  display:flex;
  font-family:var(--wp--preset--font-family--display);
  font-size:64px;
  height:240px;
  justify-content:center;
  line-height:1;
  margin:0;
}
.acl-instructor-portrait--cream{background:var(--wp--preset--color--cream)}
.acl-instructor-portrait--blue{background:var(--wp--preset--color--blue)}
.acl-instructor-body{
  padding:20px 4px 6px;
}
.acl-instructor-body h3{
  font-family:var(--wp--preset--font-family--display);
  font-size:30px;
  line-height:1;
  margin:0;
}
.acl-instructor-role{
  color:var(--wp--preset--color--clay);
  font-size:13px;
  font-weight:800;
  letter-spacing:.8px;
  margin:8px 0 14px;
  text-transform:uppercase;
}
.acl-instructor-focus{
  color:var(--wp--preset--color--ink);
  font-size:16px;
  line-height:1.45;
  margin:0;
}

/* ── Hero ──────────────────────────────────────────────── */
.acl-hero{
  overflow:hidden;
  position:relative;
}
.acl-hero::before{
  background:radial-gradient(circle at center, rgba(141,169,183,.2), rgba(141,169,183,0) 62%);
  content:"";
  height:420px;
  pointer-events:none;
  position:absolute;
  right:0;
  top:72px;
  width:420px;
}
.acl-hero-copy{
  max-width:720px;
  position:relative;
  z-index:1;
}
.acl-hero-copy p.has-ink-color{
  max-width:680px;
}
.acl-hero-visual{
  position:relative;
  z-index:1;
}
.acl-hero-card{
  background:linear-gradient(180deg,var(--wp--preset--color--white),#fbf6ed);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:28px;
  box-shadow:0 28px 70px rgba(31,42,36,.12);
  margin-left:auto;
  max-width:490px;
  padding:30px;
  position:relative;
}
.acl-hero-card::before{
  background:var(--wp--preset--color--clay);
  border-radius:999px;
  box-shadow:0 0 0 9px rgba(201,111,74,.12);
  content:"";
  height:16px;
  position:absolute;
  right:30px;
  top:30px;
  width:16px;
}
.acl-hero-card-label{
  color:var(--wp--preset--color--clay);
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  margin:0 32px 12px 0;
  text-transform:uppercase;
}
.acl-hero-card-title{
  font-family:var(--wp--preset--font-family--display);
  font-size:clamp(34px, 3vw, 48px);
  line-height:1;
  margin:0;
}
.acl-hero-progress{
  background:var(--wp--preset--color--sage);
  border-radius:999px;
  height:12px;
  margin:26px 0;
  overflow:hidden;
  position:relative;
}
.acl-hero-progress::before{
  background:var(--wp--preset--color--forest);
  border-radius:inherit;
  content:"";
  inset:0 38% 0 0;
  position:absolute;
}
.acl-hero-lessons{
  display:grid;
  gap:10px;
}
.acl-hero-lesson{
  align-items:center;
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:16px;
  color:#405047;
  display:flex;
  font-size:16px;
  font-weight:800;
  gap:12px;
  line-height:1.25;
  margin:0;
  min-height:64px;
  padding:14px;
}
.acl-hero-lesson span{
  align-items:center;
  background:var(--wp--preset--color--cream);
  border-radius:999px;
  color:var(--wp--preset--color--forest);
  display:inline-flex;
  flex:0 0 38px;
  font-size:12px;
  height:38px;
  justify-content:center;
}
.acl-hero-lesson.is-complete span{
  background:var(--wp--preset--color--forest);
  color:var(--wp--preset--color--paper);
}
.acl-hero-lesson.is-active{
  background:var(--wp--preset--color--cream);
  border-color:#e9c75f;
  color:var(--wp--preset--color--ink);
}
.acl-hero-note{
  background:var(--wp--preset--color--forest);
  border-radius:20px;
  color:var(--wp--preset--color--paper);
  margin-top:18px;
  padding:22px;
}
.acl-hero-note .acl-kicker{
  color:var(--wp--preset--color--cream);
  margin:0 0 8px;
}
.acl-hero-note p:last-child{
  color:rgba(251,246,237,.82);
  font-size:16px;
  line-height:1.45;
  margin:0;
}
/* ── Support Model (green sticky card) ─────────────────── */
.acl-support-card{
  background:var(--wp--preset--color--forest);
  border-radius:34px;
  color:var(--wp--preset--color--paper);
  padding:44px;
}
.acl-support-card .acl-kicker{color:var(--wp--preset--color--cream)}
.acl-support-card h2{
  font-family:var(--wp--preset--font-family--display);
  font-size:clamp(42px, 4vw, 62px);
  line-height:.95;
  margin:18px 0 22px;
}
.acl-support-card p{
  color:rgba(251,246,237,.78);
  font-size:20px;
  line-height:1.45;
  margin:0;
}

/* ── Testimonial ───────────────────────────────────────── */
.acl-testimonial{
  margin-left:auto;
  margin-right:auto;
  max-width:var(--acl-content-max-width, 1440px);
  padding:104px 72px;
  text-align:center;
}
.acl-testimonial blockquote{
  border:none;
  font-family:var(--wp--preset--font-family--display);
  font-size:clamp(36px,5vw,64px);
  line-height:1.08;
  margin:0 auto;
  max-width:980px;
  padding:0;
}
.acl-testimonial cite,
.acl-testimonial .acl-kicker{
  display:block;
  margin-top:28px;
}

/* ── Header ────────────────────────────────────────────── */
.acl-header{
  align-items:center;
  display:grid;
  gap:24px;
  grid-template-columns:1fr auto 1fr;
  margin-left:auto;
  margin-right:auto;
  max-width:var(--acl-content-max-width, 1440px);
  padding:24px 56px;
}
.acl-header-brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.acl-header-brand.is-layout-flow > *{
  margin-block-start:0;
  margin-block-end:0;
}
.acl-header-logo img{
  height:var(--acl-header-logo-h, 52px) !important;
  width:auto !important;
}
.acl-header-logo.is-default-size img{
  width:auto !important;
}
.acl-header-brand figure{margin:0}
.acl-header-tagline{
  color:var(--acl-tagline-color, #c96f4a);
  font-size:var(--acl-tagline-size, 12px);
  font-weight:800;
  letter-spacing:1px;
  line-height:1;
  margin:0;
  text-transform:var(--acl-tagline-transform, uppercase);
}
.acl-header-cta{
  display:flex;
  justify-content:flex-end;
}

/* ── Footer ────────────────────────────────────────────── */
.acl-footer{
  background:var(--wp--preset--color--ink);
  color:var(--wp--preset--color--paper);
  margin-left:auto;
  margin-right:auto;
  padding:64px 72px 0;
}
.acl-footer-main{display:flex;gap:60px;padding-bottom:48px}
.acl-footer-brand-col{flex:0 0 300px;max-width:340px}
.acl-footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.acl-footer-brand .custom-logo,.acl-footer-brand .acl-footer-logo-img{height:var(--acl-footer-logo-h, 40px);width:auto}
.acl-footer-brand-name a{color:var(--wp--preset--color--paper);text-decoration:none;font-family:var(--wp--preset--font-family--display);font-size:26px}
.acl-footer-desc{color:rgba(251,246,237,.68);font-size:15px;line-height:1.6;margin:0}
.acl-footer-columns{display:grid;grid-template-columns:repeat(var(--acl-footer-cols,3),1fr);gap:40px;flex:1;align-items:start}
.acl-footer-columns.is-layout-flow > *{margin-block-start:0}
.acl-footer-heading{color:var(--wp--preset--color--paper);font-family:var(--wp--preset--font-family--display);font-size:16px;font-weight:600;margin:0 0 16px;text-transform:uppercase;letter-spacing:.06em}
.acl-footer-links{list-style:none;margin:0;padding:0}
.acl-footer-links li{margin-bottom:10px;color:rgba(251,246,237,.68);font-size:15px}
.acl-footer-links a{color:rgba(251,246,237,.68);font-size:15px;text-decoration:none;transition:color .15s}
.acl-footer-links a:hover{color:var(--wp--preset--color--paper)}
.acl-footer-placeholder{color:rgba(251,246,237,.35);font-size:14px;font-style:italic}
.acl-footer-bottom{padding:32px 0;border-top:1px solid rgba(251,246,237,.15)}
.acl-footer-credit{color:rgba(251,246,237,.68);font-size:14px;margin:0;text-align:center}

/* ── Post Content Typography ────────────────────────────── */
.wp-block-post-template .acl-card{height:100%;display:flex;flex-direction:column}
.wp-block-post-template .acl-card .wp-block-post-excerpt{margin-top:auto}
.wp-block-post-template .acl-card .wp-block-post-excerpt__excerpt{
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.wp-block-post-template .acl-card .wp-block-post-title{
  display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;
  font-size:22px !important;line-height:1.3 !important;
}
.wp-block-post-template .acl-card .wp-block-post-title a{font-size:inherit}
.wp-block-post-content h2{font-size:28px;letter-spacing:0}
.wp-block-post-content h3{font-size:22px}
.wp-block-post-content p{font-size:16px;line-height:1.7}
.wp-block-post-content blockquote p{font-size:18px}
.wp-block-post-content .wp-block-separator{margin:32px 0;opacity:.3}

/* ── Section Spacing ───────────────────────────────────── */
.acl-section{
  margin-left:auto;
  margin-right:auto;
  max-width:var(--acl-content-max-width, 1440px);
  padding:80px 72px;
}
.wp-block-group > :first-child,
.acl-section > :first-child,
.acl-section--white > :first-child{
  margin-block-start:0;
  margin-top:0;
}
.wp-block-group > :last-child,
.acl-section > :last-child,
.acl-section--white > :last-child{
  margin-block-end:0;
  margin-bottom:0;
}
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(.acl-footer){
  margin-block-start:0;
}
.acl-section--final-cta{
  padding-bottom:56px !important;
}
main.wp-block-group > .acl-section:last-child{
  padding-bottom:56px;
}
/* ── Section Headers — side-by-side heading + button ──── */
.acl-section--white > .wp-block-heading + .wp-block-buttons,
.acl-section--white > .wp-block-heading + .wp-block-buttons{
  margin-top:-0.5em;
}
.acl-section--white{
  background:var(--acl-section-bg, #fffdf8);
  border-bottom:1px solid var(--wp--preset--color--rule);
  border-top:1px solid var(--wp--preset--color--rule);
  max-width:none;
}
.acl-section--white > *{
  margin-left:auto;
  margin-right:auto;
  max-width:var(--acl-content-max-width, 1440px);
}

/* ── Grid Helpers ──────────────────────────────────────── */
.acl-grid-3{display:grid;gap:24px;grid-template-columns:repeat(3,1fr)}
.acl-grid-2{display:grid;gap:24px;grid-template-columns:repeat(2,1fr)}
.acl-grid-3 > *,
.acl-grid-2 > *{margin-block-start:0}

/* ── Layout Precision (match React prototype) ──────────── */

/* Hero: left flexible, right fixed 520px */
.acl-section .wp-block-columns{align-items:center}

/* Section header: space-between, bottom-aligned */
.acl-section--white > .wp-block-columns{
  align-items:flex-end;
  display:flex;
  justify-content:space-between;
}

/* Support model: left fixed ~520px */
.acl-support-card{position:sticky;top:32px}

/* Feature cards stack */
.acl-feature-card + .acl-feature-card{margin-top:18px}

/* ── Responsive ────────────────────────────────────────── */
/* ── Boxed Mode ────────────────────────────────────────── */
body.acl-boxed .wp-site-blocks{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:28px;
  box-shadow:0 20px 60px rgba(31,42,36,.08);
  margin:24px auto;
  max-width:var(--acl-content-max-width, 1200px);
  overflow:hidden;
}
body.acl-boxed .acl-section{max-width:none}
body.acl-boxed .acl-header{max-width:none}
body.acl-boxed .acl-testimonial{max-width:none}
body.acl-boxed .acl-section--white > *{max-width:none}


.acl-nav-cta{display:none}
.acl-mobile-toggle{display:none;background:none;border:none;cursor:pointer;width:40px;height:40px;position:relative;padding:0}
.acl-mobile-toggle span{
  display:block;width:24px;height:2px;background:var(--wp--preset--color--ink);
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
}
.acl-mobile-toggle span::before,.acl-mobile-toggle span::after{
  content:'';display:block;width:24px;height:2px;background:inherit;position:absolute;left:0;
}
.acl-mobile-toggle span::before{top:-7px}
.acl-mobile-toggle span::after{top:7px}
.acl-mobile-menu{
  display:none;position:fixed;inset:0;background:var(--wp--preset--color--paper);z-index:99999;
  padding:24px;overflow-y:auto;flex-direction:column;
}
.acl-mobile-menu.is-open{display:flex}
body.acl-menu-open{overflow:hidden}
.acl-mobile-menu-header{display:flex;justify-content:flex-end;margin-bottom:24px}
.acl-mobile-menu-close{background:none;border:none;cursor:pointer;width:40px;height:40px;font-size:28px;color:var(--wp--preset--color--ink);line-height:1}
.acl-mobile-menu ul{list-style:none;margin:0;padding:0}
.acl-mobile-menu li a{
  display:block;padding:16px 0;font-size:18px;font-weight:700;
  color:var(--wp--preset--color--ink);text-decoration:none;
  border-bottom:1px solid var(--wp--preset--color--rule);
}
.acl-mobile-menu li.acl-active > a{color:var(--wp--preset--color--forest)}
.acl-mobile-menu li:last-child a{border-bottom:none}
.acl-mobile-menu .sub-menu{
  border-bottom:1px solid var(--wp--preset--color--rule);
  display:none;
  margin:0 0 8px;
  padding:8px 0 14px 16px;
  text-align:left;
}
.acl-mobile-menu .menu-item-has-children.is-open > .sub-menu{display:block}
.acl-mobile-menu .sub-menu a{
  border-bottom:none;
  color:#405047;
  font-size:17px;
  font-weight:700;
  padding:14px 0;
  text-align:left;
}
.acl-mobile-menu .sub-menu .sub-menu{
  border-bottom:none;
  margin-left:0;
  padding-bottom:0;
}
.acl-mobile-menu .menu-item-has-children > a::after{
  content:"";
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  display:inline-block;
  margin-left:8px;
  transform:translateY(-2px);
  transition:transform .15s ease;
}
.acl-mobile-menu .menu-item-has-children.is-open > a::after{
  transform:rotate(180deg) translateY(2px);
}
.acl-mobile-menu-cta{
  margin-top:auto;padding-top:32px;
}
.acl-mobile-menu-cta a{
  background:var(--wp--preset--color--forest);border-radius:999px;
  color:var(--wp--preset--color--paper);display:block;
  font-size:16px;font-weight:700;padding:16px 24px;
  text-align:center;text-decoration:none;transition:background .15s;
}
.acl-mobile-menu-cta a:hover{background:var(--wp--preset--color--ink)}

@media(max-width:1100px){
  .acl-grid-3{grid-template-columns:repeat(2,1fr)}
  .acl-grid-3 > :last-child:nth-child(odd){grid-column:1 / -1;max-width:50%;margin:0 auto}
  .acl-instructor-portrait{font-size:58px;height:210px}
  .acl-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px}
  .acl-header-cta{display:none}
  .acl-pill-nav{display:none}
  .acl-mobile-toggle{display:block}
  .acl-section{padding:48px 32px}
  .acl-section--final-cta{padding-bottom:40px !important}
  main.wp-block-group > .acl-section:last-child{padding-bottom:40px}
  .acl-support-card{position:static}
  .acl-hero-card{border-radius:24px;margin-left:0;margin-right:0;max-width:none;padding:22px}
  .acl-support-card{border-radius:24px;margin:0;padding:32px}
  .acl-support-card h2{font-size:36px}
  .acl-feature-card h3{font-size:24px}
  .acl-support-card + .wp-block-column .wp-block-group,
  .wp-block-column:last-child > .wp-block-group:has(.acl-feature-card){
    display:grid;grid-template-columns:1fr 1fr;gap:18px;
  }
  .acl-section .wp-block-columns:has(.acl-support-card){flex-direction:column !important}
  .acl-section--white > .wp-block-columns{flex-direction:row;align-items:flex-end}
  body.acl-boxed .wp-site-blocks{border-radius:0;margin:0;border:none;box-shadow:none}
}
@media(max-width:760px){
  .acl-grid-3,.acl-grid-2{grid-template-columns:1fr}
  .acl-grid-3 > :last-child:nth-child(odd){grid-column:auto;max-width:none;margin:0}
  .acl-instructor-portrait{font-size:52px;height:180px}
  .acl-header{padding:16px;gap:12px}
  .acl-section{padding:32px 16px}
  .acl-section--final-cta{padding-bottom:32px !important}
  main.wp-block-group > .acl-section:last-child{padding-bottom:32px}
  .acl-footer{padding:32px 16px 0}
  .acl-footer-main{flex-direction:column;gap:40px}
  .acl-footer-brand-col{flex:none;max-width:none}
  .acl-footer-columns{grid-template-columns:1fr;gap:32px}
  .acl-hero::before{display:none}
  .acl-hero-copy h1{font-size:44px !important;line-height:1.02 !important}
  .acl-hero-copy p.has-ink-color{font-size:18px !important}
  .acl-testimonial{padding:48px 16px}
  .acl-testimonial blockquote{font-size:28px}
  .acl-support-card{padding:28px}
  .acl-support-card h2{font-size:36px}
  .acl-clinician-pill{display:none}
  .acl-section--white > .wp-block-columns{flex-direction:column}
  .acl-hero-card{margin-left:0;margin-right:0}
  .acl-hero-card-title{font-size:32px}
  .acl-hero-lesson{font-size:15px}
}


/* ── Login Modal ────────────────────────────────────────── */
.acl-login-overlay{
  display:none;position:fixed;inset:0;z-index:100000;
  background:rgba(31,42,36,.5);backdrop-filter:blur(4px);
  align-items:center;justify-content:center;
}
.acl-login-overlay.is-open{display:flex}
.acl-login-card{
  background:var(--wp--preset--color--paper);
  border-radius:24px;
  box-shadow:0 28px 70px rgba(31,42,36,.18);
  max-width:420px;width:100%;
  padding:40px;position:relative;
  animation:acl-modal-in .2s ease-out;
}
@keyframes acl-modal-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.acl-login-close{
  position:absolute;top:16px;right:16px;
  background:none;border:none;font-size:24px;cursor:pointer;
  color:var(--wp--preset--color--ink);opacity:.5;
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:50%;transition:opacity .15s,background .15s;
}
.acl-login-close:hover{opacity:1;background:var(--wp--preset--color--sage)}
.acl-login-header{text-align:center;margin-bottom:28px}
.acl-modal-logo{height:48px;width:auto;margin-bottom:12px}
.acl-login-tagline{color:var(--wp--preset--color--ink);opacity:.5;font-size:14px;margin:0}
.acl-login-body label{
  display:block;color:var(--wp--preset--color--ink);
  font-size:14px;font-weight:600;margin-bottom:16px;
}
.acl-login-body input[type="text"],
.acl-login-body input[type="password"]{
  width:100%;border:1px solid var(--wp--preset--color--rule);
  border-radius:10px;font-size:15px;padding:11px 14px;
  margin-top:4px;box-sizing:border-box;
  transition:border-color .15s,box-shadow .15s;
}
.acl-login-body input:focus{
  border-color:var(--wp--preset--color--forest);
  box-shadow:0 0 0 3px rgba(47,93,70,.12);outline:none;
}
.acl-login-body .login-remember{
  display:flex;align-items:center;gap:6px;
  font-size:13px;margin-bottom:20px;
}
.acl-login-body .login-remember input{margin:0}
.acl-login-body input[type="submit"]{
  width:100%;background:var(--wp--preset--color--forest);
  color:var(--wp--preset--color--paper);border:none;
  border-radius:999px;font-size:15px;font-weight:700;
  padding:14px;cursor:pointer;transition:background .15s;
  font-family:var(--wp--preset--font-family--body);
}
.acl-login-body input[type="submit"]:hover{background:var(--wp--preset--color--ink)}
.acl-login-links{
  display:flex;justify-content:space-between;
  margin-top:16px;font-size:13px;
}
.acl-login-links a{color:var(--wp--preset--color--forest);text-decoration:none}
.acl-login-links a:hover{text-decoration:underline}
.acl-login-error{
  background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;
  color:#991b1b;font-size:14px;padding:12px 16px;margin-top:16px;
}
@media(max-width:760px){
  .acl-login-card{margin:16px;padding:28px;border-radius:16px}
  .acl-login-links{flex-direction:column;gap:8px;text-align:center}
}

/* ── Block Editor Overrides ────────────────────────────── */
.editor-styles-wrapper{
  background:var(--wp--preset--color--paper);
  color:var(--wp--preset--color--ink);
  font-family:var(--acl-font-body, Inter, system-ui, sans-serif);
}

/* Header */
.editor-styles-wrapper .acl-header{
  align-items:center;
  display:grid;
  gap:24px;
  grid-template-columns:1fr auto 1fr;
  max-width:1440px;
  margin:0 auto;
  padding:24px 56px;
}
.editor-styles-wrapper .acl-header-brand{
  align-items:center;
  display:flex;
  gap:8px;
}
.editor-styles-wrapper .acl-header-brand figure{margin:0}
.editor-styles-wrapper .acl-header-brand-text p{margin:0}
.editor-styles-wrapper .acl-header-cta{display:flex;justify-content:flex-end}

/* Pill Nav in editor */
.editor-styles-wrapper .acl-pill-nav{
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:999px;
  padding:6px;
}
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation-item__content,
.editor-styles-wrapper .acl-pill-nav .wp-block-navigation-link__content{
  border-radius:999px;
  color:var(--wp--preset--color--ink);
  font-size:14px;
  font-weight:700;
  padding:10px 16px;
  text-decoration:none;
}

/* Footer */
.editor-styles-wrapper .acl-footer{
  align-items:center;
  background:var(--wp--preset--color--ink);
  color:var(--wp--preset--color--paper);
  display:flex;
  justify-content:space-between;
  padding:44px 72px;
}
.editor-styles-wrapper .acl-footer p{color:rgba(251,246,237,.68)}

/* Sections */
.editor-styles-wrapper .acl-section{
  max-width:1440px;
  margin:0 auto;
  padding:80px 72px;
}
.editor-styles-wrapper .acl-section--white{
  background:var(--acl-section-bg, #fffdf8);
  border-bottom:1px solid var(--wp--preset--color--rule);
  border-top:1px solid var(--wp--preset--color--rule);
  max-width:none;
  padding:80px 72px;
}

/* Hero */
.editor-styles-wrapper .acl-badge{
  background:var(--wp--preset--color--cream);
  border-radius:999px;
  color:var(--wp--preset--color--forest);
  display:inline-flex;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.2px;
  padding:10px 16px;
  text-transform:uppercase;
}
.editor-styles-wrapper .acl-hero-card{
  background:linear-gradient(180deg,var(--wp--preset--color--white),#fbf6ed);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:28px;
  box-shadow:0 28px 70px rgba(31,42,36,.12);
  max-width:490px;
  padding:30px;
  position:relative;
}
.editor-styles-wrapper .acl-hero-card::before{
  background:var(--wp--preset--color--clay);
  border-radius:999px;
  box-shadow:0 0 0 9px rgba(201,111,74,.12);
  content:"";
  height:16px;
  position:absolute;
  right:30px;
  top:30px;
  width:16px;
}
.editor-styles-wrapper .acl-hero-card-label{
  color:var(--wp--preset--color--clay);
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  margin:0 32px 12px 0;
  text-transform:uppercase;
}
.editor-styles-wrapper .acl-hero-card-title{
  font-size:clamp(34px, 3vw, 48px);
  line-height:1;
  margin:0;
}
.editor-styles-wrapper .acl-hero-progress{
  background:var(--wp--preset--color--sage);
  border-radius:999px;
  height:12px;
  margin:26px 0;
  overflow:hidden;
  position:relative;
}
.editor-styles-wrapper .acl-hero-progress::before{
  background:var(--wp--preset--color--forest);
  border-radius:inherit;
  content:"";
  inset:0 38% 0 0;
  position:absolute;
}
.editor-styles-wrapper .acl-hero-lessons{
  display:grid;
  gap:10px;
}
.editor-styles-wrapper .acl-hero-lesson{
  align-items:center;
  background:var(--wp--preset--color--white);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:16px;
  color:#405047;
  display:flex;
  font-size:16px;
  font-weight:800;
  gap:12px;
  line-height:1.25;
  margin:0;
  min-height:64px;
  padding:14px;
}
.editor-styles-wrapper .acl-hero-lesson span{
  align-items:center;
  background:var(--wp--preset--color--cream);
  border-radius:999px;
  color:var(--wp--preset--color--forest);
  display:inline-flex;
  flex:0 0 38px;
  font-size:12px;
  height:38px;
  justify-content:center;
}
.editor-styles-wrapper .acl-hero-lesson.is-complete span{
  background:var(--wp--preset--color--forest);
  color:var(--wp--preset--color--paper);
}
.editor-styles-wrapper .acl-hero-lesson.is-active{
  background:var(--wp--preset--color--cream);
  border-color:#e9c75f;
  color:var(--wp--preset--color--ink);
}
.editor-styles-wrapper .acl-hero-note{
  background:var(--wp--preset--color--forest);
  border-radius:20px;
  color:var(--wp--preset--color--paper);
  margin-top:18px;
  padding:22px;
}
.editor-styles-wrapper .acl-hero-note .acl-kicker{
  color:var(--wp--preset--color--cream);
  margin:0 0 8px;
}
.editor-styles-wrapper .acl-hero-note p:last-child{
  color:rgba(251,246,237,.82);
  font-size:16px;
  line-height:1.45;
  margin:0;
}
/* Kicker */
.editor-styles-wrapper .acl-kicker{
  color:var(--wp--preset--color--clay);
  font-size:12px;
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

/* Grid */
.editor-styles-wrapper .acl-grid-3{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3,1fr);
}
.editor-styles-wrapper .acl-grid-3 > *,
.editor-styles-wrapper .acl-grid-2 > *{margin-block-start:0}

/* Support card */
.editor-styles-wrapper .acl-support-card{
  background:var(--wp--preset--color--forest);
  border-radius:34px;
  color:var(--wp--preset--color--paper);
  padding:44px;
}
.editor-styles-wrapper .acl-support-card .acl-kicker{color:var(--wp--preset--color--cream)}
.editor-styles-wrapper .acl-support-card h2{color:var(--wp--preset--color--paper)}
.editor-styles-wrapper .acl-support-card p{color:rgba(251,246,237,.78)}

/* Feature cards */
.editor-styles-wrapper .acl-feature-card{
  border:1px solid var(--wp--preset--color--rule);
  border-radius:24px;
  padding:28px;
  margin-bottom:18px;
}

/* Track cards */
.editor-styles-wrapper .acl-track-card{
  background:var(--wp--preset--color--paper);
  border:1px solid var(--wp--preset--color--rule);
  border-radius:24px;
  padding:28px;
}

/* Testimonial */
.editor-styles-wrapper .acl-testimonial{
  max-width:1440px;
  margin:0 auto;
  padding:104px 72px;
  text-align:center;
}
.editor-styles-wrapper .acl-testimonial blockquote{
  border:none;
  margin:0 auto;
  max-width:980px;
  padding:0;
}

/* ── Trusted Partners Logo Grid ────────────────────────── */
.acl-logo-grid{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  align-items:center;
  justify-content:center;
}
.acl-logo-grid-item{
  margin:0;
  width:clamp(140px, 20%, 200px);
}
.acl-logo-grid-item img{
  width:100%;
  height:auto;
  object-fit:contain;
  filter:grayscale(1);
  opacity:.7;
  transition:filter .2s, opacity .2s;
}
.acl-logo-grid-item img:hover{
  filter:grayscale(0);
  opacity:1;
}
@media(max-width:600px){
  .acl-logo-grid-item{width:clamp(120px, 40%, 180px)}
}
