:root{--k-ink:#17233c;--k-blue:#3157d5;--k-violet:#7656d8;--k-canvas:#f6f8fc;--k-surface:#fff;--k-border:#dfe5f0;--k-muted:#65718a;--k-shadow:0 16px 45px rgba(31,48,86,.10)}
html{scroll-behavior:smooth}body{background:var(--k-canvas)}.wp-site-blocks{padding-top:0;padding-bottom:0}.kourse-site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(223,229,240,.9)}.admin-bar .kourse-site-header{top:32px}.kourse-header-inner{min-height:72px;padding:10px 24px;gap:28px}.kourse-brand{gap:10px}.kourse-brand .wp-block-site-title{font-size:1.35rem;font-weight:800;letter-spacing:-.035em}.kourse-brand .wp-block-site-title a{color:var(--k-ink)}.kourse-header-actions{gap:22px}.wp-block-navigation-item__content{color:#3b4760!important}.wp-block-navigation-item__content:hover{color:var(--k-blue)!important}.kourse-account-nav{display:flex;align-items:center;gap:10px;white-space:nowrap}.kourse-nav-link{font-weight:700;color:var(--k-ink)!important}.kourse-nav-cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:12px;background:var(--k-blue);color:#fff!important;font-weight:750;box-shadow:0 6px 16px rgba(49,87,213,.22)}.kourse-hello{font-size:.88rem;color:var(--k-muted)}.kourse-main:not(.kourse-front-main):not(.kourse-landing){padding:56px 24px 72px}.kourse-main>.wp-block-post-title{margin-bottom:30px}.kourse-hero{padding:82px 24px 76px;background:radial-gradient(circle at 85% 20%,rgba(118,86,216,.18),transparent 34%),linear-gradient(145deg,#f8fbff 0%,#eef3ff 100%);border-bottom:1px solid var(--k-border)}.kourse-hero-grid{align-items:center;gap:64px}.kourse-hero h1{font-size:clamp(2.7rem,6vw,5.1rem);max-width:800px;margin-top:12px}.kourse-hero p{color:#536079}.kourse-eyebrow{display:inline-block;margin:0;color:var(--k-blue)!important;font-size:.78rem!important;font-weight:800;letter-spacing:.14em}.kourse-hero-panel{background:rgba(255,255,255,.88);padding:34px;border:1px solid rgba(255,255,255,.9);border-radius:24px;box-shadow:var(--k-shadow)}.kourse-mini-grid{gap:12px}.kourse-mini-grid>p{background:#f6f8fc;padding:16px;border-radius:14px;margin:0;font-size:.92rem}.kourse-section{padding:76px 24px}.kourse-section h2{font-size:clamp(2rem,4vw,3.2rem);margin-bottom:40px}.kourse-feature-grid{gap:20px}.kourse-card{height:100%;box-sizing:border-box;padding:28px;background:var(--k-surface);border:1px solid var(--k-border);border-radius:20px;box-shadow:0 8px 24px rgba(31,48,86,.055);transition:transform .18s ease,box-shadow .18s ease}.kourse-card:hover{transform:translateY(-3px);box-shadow:var(--k-shadow)}.kourse-card h3{margin-top:0}.kourse-footer{padding:46px 24px;background:#121c31;color:#fff}.kourse-footer a,.kourse-footer .wp-block-site-title a{color:#fff!important}.kourse-footer-tagline{color:#aeb9cf;margin-top:5px}.kourse-full-screen{min-height:100vh;margin:0!important;padding:0!important}.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--k-blue);border-color:var(--k-blue)}
/* Gentle modernization for plugin-owned interfaces without taking over their layouts. */
body:not(.wp-admin) :where(input[type=text],input[type=email],input[type=password],input[type=number],select,textarea){border-radius:10px;border-color:#cfd7e6}body:not(.wp-admin) :where(button,.button,input[type=submit]){border-radius:10px}
@media(max-width:900px){.kourse-header-inner{padding:9px 16px}.kourse-header-actions{gap:10px}.kourse-hello{display:none}.kourse-hero{padding:58px 20px}.kourse-hero-grid,.kourse-feature-grid{grid-template-columns:1fr!important}.kourse-hero-grid{gap:34px}.kourse-section{padding:56px 20px}}@media(max-width:782px){.admin-bar .kourse-site-header{top:46px}}@media(max-width:600px){.kourse-account-nav .kourse-nav-link{display:none}.kourse-nav-cta{padding:9px 12px}.kourse-mini-grid{grid-template-columns:1fr!important}}
/* v1.0.1: dependable theme-owned navigation */
.kourse-primary-nav{display:flex;align-items:center;gap:22px}.kourse-primary-nav a{color:#3b4760!important;text-decoration:none;font-size:.94rem;font-weight:700}.kourse-primary-nav a:hover{color:var(--k-blue)!important}.kourse-site-header{display:block!important;visibility:visible!important;opacity:1!important}.kourse-header-inner{display:flex!important}.kourse-header-actions{display:flex!important}
@media(max-width:980px){.kourse-primary-nav{gap:13px}.kourse-primary-nav a{font-size:.86rem}}
@media(max-width:760px){.kourse-primary-nav{display:none}.kourse-header-inner{min-height:64px}.kourse-brand .wp-block-site-title{font-size:1.15rem}}

/* v1.0.3: corrective integration pass */
.kourse-app-page .kourse-main{max-width:none!important;padding:18px 24px 44px!important}
.kourse-app-page .kourse-main>.wp-block-post-title,.kourse-app-page .kourse-main>.wp-block-post-featured-image{display:none!important}
.kourse-app-page .kourse-main>.wp-block-post-content{max-width:1720px!important;width:min(1720px,100%)!important;margin:0 auto!important}
.kourse-app-dashboard .kourse-main{padding-top:14px!important}
.kourse-app-dashboard .kourse-main>.wp-block-post-content{max-width:1720px!important}
.kourse-app-dashboard .wp-block-post-content>:first-child{margin-top:0!important}
.kourse-nav-cta{padding:9px 14px;border-radius:10px;font-size:.92rem;box-shadow:0 4px 12px rgba(49,87,213,.16)}
.kourse-hello{font-size:.84rem}

/* Keep every top-level item as a distinct flex item. Explicit padding prevents theme/plugin CSS from collapsing labels together. */
.kourse-primary-nav{display:flex!important;align-items:center!important;gap:6px!important;white-space:nowrap}
.kourse-primary-nav>a,.kourse-nav-group>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:40px!important;margin:0!important;padding:10px 11px!important;color:#3b4760!important;text-decoration:none!important;font-family:inherit!important;font-size:.92rem!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;background:transparent!important;border:0!important;border-radius:9px!important;cursor:pointer!important}
.kourse-primary-nav>a:hover,.kourse-nav-group>button:hover{color:var(--k-blue)!important;background:#f3f6fc!important}
.kourse-nav-group{position:relative!important;display:flex!important;align-items:center!important;margin:0!important;padding:0!important}
.kourse-nav-group>button span{font-size:.8em;margin-left:5px}
.kourse-nav-menu{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-6px);width:300px;padding:8px;background:#fff;border:1px solid var(--k-border);border-radius:15px;box-shadow:0 18px 45px rgba(31,48,86,.15);opacity:0;visibility:hidden;pointer-events:none;transition:.16s ease;z-index:1002}
.kourse-nav-group>button[aria-expanded=true]+.kourse-nav-menu,.kourse-nav-group:hover .kourse-nav-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
.kourse-nav-menu a{display:block!important;padding:12px 13px!important;border-radius:10px!important;color:var(--k-ink)!important;text-decoration:none!important}
.kourse-nav-menu a:hover{background:#f3f6fc!important}
.kourse-nav-menu strong,.kourse-nav-menu small{display:block}.kourse-nav-menu small{margin-top:3px;color:var(--k-muted);font-size:.76rem;font-weight:500;line-height:1.35}

/* Games: only provide a clean wide canvas. The game plugin/page owns its own listing markup and artwork. */
.kourse-app-games{background:#f6f8fc}
.kourse-app-games .kourse-main{padding:22px 24px 54px!important}
.kourse-app-games .kourse-main>.wp-block-post-content{max-width:1720px!important;padding:0!important}
.kourse-app-games .kourse-game-card{all:unset}

@media(max-width:1050px){.kourse-primary-nav>a,.kourse-nav-group>button{padding-left:7px!important;padding-right:7px!important;font-size:.86rem!important}.kourse-header-actions{gap:10px!important}}
@media(max-width:900px){.kourse-app-page .kourse-main{padding:14px 16px 34px!important}}
@media(max-width:760px){.kourse-primary-nav{display:none!important}.kourse-nav-group{display:none!important}}

/* v1.0.4: hard reset/rebuild of desktop navigation markup. */
.kourse-primary-nav-v104,
.kourse-primary-nav-v104 .kourse-nav-list,
.kourse-primary-nav-v104 .kourse-nav-item{
  margin:0!important;padding:0!important;border:0!important;list-style:none!important;
}
.kourse-primary-nav-v104{display:block!important;width:auto!important;white-space:nowrap!important}
.kourse-primary-nav-v104 .kourse-nav-list{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;width:auto!important}
.kourse-primary-nav-v104 .kourse-nav-item{position:relative!important;display:block!important;flex:0 0 auto!important;width:auto!important}
.kourse-primary-nav-v104 .kourse-nav-item-link{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;min-height:40px!important;box-sizing:border-box!important;
  margin:0!important;padding:9px 12px!important;border:0!important;border-radius:9px!important;
  background:transparent!important;color:#3b4760!important;text-decoration:none!important;
  font-family:inherit!important;font-size:.92rem!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;white-space:nowrap!important;cursor:pointer!important;
}
.kourse-primary-nav-v104 .kourse-nav-item-link:hover{background:#f3f6fc!important;color:var(--k-blue)!important}
.kourse-primary-nav-v104 .kourse-nav-item-learn>.kourse-nav-item-link span{display:inline-block!important;margin-left:6px!important}
.kourse-primary-nav-v104 .kourse-nav-item-learn>.kourse-nav-menu{left:50%!important}
.kourse-primary-nav-v104 .kourse-nav-item-learn:hover>.kourse-nav-menu,
.kourse-primary-nav-v104 .kourse-nav-item-learn>.kourse-nav-item-link[aria-expanded=true]+.kourse-nav-menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,0)!important}
@media(max-width:1050px){.kourse-primary-nav-v104 .kourse-nav-list{gap:4px!important}.kourse-primary-nav-v104 .kourse-nav-item-link{padding:9px 8px!important;font-size:.86rem!important}}
@media(max-width:760px){.kourse-primary-nav-v104{display:none!important}}

/* v1.0.5: normalize the Learn dropdown button to match anchor-based nav items exactly. */
.kourse-primary-nav-v104 button.kourse-nav-item-link.kourse-learn-toggle{
  -webkit-appearance:none!important;appearance:none!important;
  font-family:inherit!important;font-size:.92rem!important;font-weight:700!important;line-height:1.2!important;
  color:#3b4760!important;background:transparent!important;
}
.kourse-primary-nav-v104 button.kourse-nav-item-link.kourse-learn-toggle:hover,
.kourse-primary-nav-v104 button.kourse-nav-item-link.kourse-learn-toggle:focus-visible{
  background:#f3f6fc!important;color:var(--k-blue)!important;
}
@media(max-width:1050px){.kourse-primary-nav-v104 button.kourse-nav-item-link.kourse-learn-toggle{font-size:.86rem!important}}


/* v1.0.6: true application viewport for Kourse Suite dashboards.
   Dashboard pages break out of Twenty Twenty-Five's constrained content wrapper.
   Kourse Suite remains responsible for centering/sizing its own sidebar + workspace. */
body.kourse-app-dashboard .kourse-main{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body.kourse-app-dashboard .kourse-main>.wp-block-post-content{
  box-sizing:border-box!important;
  width:100vw!important;
  max-width:none!important;
  position:relative!important;
  left:50%!important;
  margin-left:-50vw!important;
  margin-right:-50vw!important;
  padding:38px 0 64px!important;
  overflow:visible!important;
}
body.kourse-app-dashboard .kourse-main>.wp-block-post-content>*{
  margin-top:0;
}
/* Neutralize block-theme constrained-width rules only at the dashboard shell level. */
body.kourse-app-dashboard .kourse-main>.wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)){
  max-width:none!important;
}
@media(max-width:900px){
  body.kourse-app-dashboard .kourse-main>.wp-block-post-content{padding:22px 0 42px!important}
}

/* v1.1.0 — platform navigation and account shell */
.kourse-primary-nav-v110 .kourse-nav-list{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important;list-style:none!important}
.kourse-primary-nav-v110 .kourse-nav-item{position:relative!important;display:block!important;margin:0!important;padding:0!important;list-style:none!important}
.kourse-primary-nav-v110 .kourse-nav-item-link{display:flex!important;align-items:center!important;gap:5px!important;min-height:42px!important;padding:9px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#303c55!important;text-decoration:none!important;font:700 .92rem/1.2 inherit!important;white-space:nowrap!important;cursor:pointer!important}
.kourse-primary-nav-v110 button.kourse-nav-item-link{appearance:none!important;-webkit-appearance:none!important;font-family:inherit!important;font-size:.92rem!important;font-weight:700!important}
.kourse-primary-nav-v110 .kourse-nav-item-link:hover,.kourse-primary-nav-v110 .kourse-nav-item-link:focus-visible{background:#f3f6fc!important;color:var(--k-blue)!important;outline:none!important}
.kourse-chevron{font-size:.76em;transition:transform .15s ease}.kourse-menu-toggle[aria-expanded=true] .kourse-chevron,.kourse-account-toggle[aria-expanded=true] .kourse-chevron{transform:rotate(180deg)}
.kourse-primary-nav-v110 .kourse-nav-menu{width:350px!important;padding:10px!important;top:calc(100% + 9px)!important;left:50%!important;transform:translate(-50%,-5px)!important}
.kourse-primary-nav-v110 .kourse-nav-menu a{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;padding:11px!important}
.kourse-menu-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef3ff;color:var(--k-blue);font-size:1rem;font-weight:800}
.kourse-primary-nav-v110 .kourse-has-menu:hover>.kourse-nav-menu,.kourse-primary-nav-v110 .kourse-menu-toggle[aria-expanded=true]+.kourse-nav-menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,0)!important}
.kourse-account-menu{position:relative}.kourse-account-toggle{display:flex;align-items:center;gap:8px;padding:6px 9px 6px 6px;border:1px solid #e0e6f1;border-radius:13px;background:#fff;color:var(--k-ink);font-family:inherit;font-weight:750;cursor:pointer;box-shadow:0 3px 12px rgba(31,48,86,.06)}
.kourse-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--k-blue);color:#fff;font-weight:800}.kourse-account-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kourse-account-dropdown{position:absolute;right:0;top:calc(100% + 9px);width:240px;padding:8px;background:#fff;border:1px solid var(--k-border);border-radius:14px;box-shadow:0 18px 45px rgba(31,48,86,.15);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px);transition:.16s ease;z-index:1003}
.kourse-account-toggle[aria-expanded=true]+.kourse-account-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:none}.kourse-account-dropdown a{display:block;padding:10px 11px;border-radius:9px;color:var(--k-ink)!important;text-decoration:none;font-size:.88rem}.kourse-account-dropdown a:hover{background:#f3f6fc}.kourse-account-dropdown small{display:block;margin-top:2px;color:var(--k-muted);font-size:.74rem;font-weight:500}.kourse-account-primary{background:#f5f8ff;margin-bottom:4px}
.kourse-mobile-toggle,.kourse-mobile-panel{display:none}
@media(max-width:980px){.kourse-primary-nav-v110 .kourse-nav-item-link,.kourse-primary-nav-v110 button.kourse-nav-item-link{padding:8px 7px!important;font-size:.84rem!important}.kourse-account-name{display:none}}
@media(max-width:760px){.kourse-primary-nav-v110{display:none!important}.kourse-mobile-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;width:40px;height:40px;padding:9px;border:1px solid var(--k-border);border-radius:10px;background:#fff;cursor:pointer}.kourse-mobile-toggle span{display:block;width:100%;height:2px;background:var(--k-ink);border-radius:2px}.kourse-header-actions{position:relative}.kourse-mobile-panel{position:absolute;display:none;top:calc(100% + 12px);right:0;width:min(310px,calc(100vw - 32px));padding:10px;background:#fff;border:1px solid var(--k-border);border-radius:15px;box-shadow:0 18px 45px rgba(31,48,86,.15);z-index:1005}.kourse-mobile-panel.is-open{display:grid;grid-template-columns:1fr}.kourse-mobile-panel a{padding:11px 12px;border-radius:9px;color:var(--k-ink)!important;text-decoration:none;font-weight:700}.kourse-mobile-panel a:hover{background:#f3f6fc}.kourse-account-menu{order:2}.kourse-mobile-toggle{order:1}.kourse-account-dropdown{right:0}.kourse-header-actions{gap:8px!important}}

/* v1.1.1 — robust account/menu interaction states */
.kourse-account-menu{isolation:isolate!important;z-index:1004!important}
.kourse-account-toggle{position:relative!important;z-index:1005!important;pointer-events:auto!important}
.kourse-account-dropdown{z-index:1006!important}
.kourse-account-toggle[aria-expanded="true"] + .kourse-account-dropdown{display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important}

/* v1.1.2 — native account dropdown: works without JavaScript */
.kourse-account-native{position:relative!important;display:block!important}
.kourse-account-native>summary{list-style:none!important}
.kourse-account-native>summary::-webkit-details-marker{display:none!important}
.kourse-account-native>summary::marker{display:none!important;content:""}
.kourse-account-native[open]>.kourse-account-toggle .kourse-chevron{transform:rotate(180deg)}
.kourse-account-native>.kourse-account-dropdown{display:none!important}
.kourse-account-native[open]>.kourse-account-dropdown{display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}

/* v1.1.3 — core Kourse apps receive an unconstrained application viewport. */
body.kourse-app-literacy .kourse-main,
body.kourse-app-mastery .kourse-main,
body.kourse-app-writing .kourse-main,
body.kourse-app-labs .kourse-main{
  max-width:none!important;
  width:100%!important;
  padding:18px 24px 44px!important;
  box-sizing:border-box!important;
}
body.kourse-app-literacy .kourse-main>.wp-block-post-content,
body.kourse-app-mastery .kourse-main>.wp-block-post-content,
body.kourse-app-writing .kourse-main>.wp-block-post-content,
body.kourse-app-labs .kourse-main>.wp-block-post-content{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
body.kourse-app-literacy .kourse-main>.wp-block-post-content>:first-child,
body.kourse-app-mastery .kourse-main>.wp-block-post-content>:first-child,
body.kourse-app-writing .kourse-main>.wp-block-post-content>:first-child,
body.kourse-app-labs .kourse-main>.wp-block-post-content>:first-child{
  width:100%!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:760px){
  body.kourse-app-literacy .kourse-main,
  body.kourse-app-mastery .kourse-main,
  body.kourse-app-writing .kourse-main,
  body.kourse-app-labs .kourse-main{padding:12px 12px 30px!important}
}

/* Kourse Modern 1.2 — homepage ecosystem */
.kourse-home-ecosystem{padding:86px 28px 72px;background:#fff;border-top:1px solid #e8edf6}.kourse-home-section-inner{width:min(1480px,calc(100% - 32px));margin:0 auto}.kourse-home-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:34px}.kourse-home-section-heading>div{max-width:820px}.kourse-home-kicker{display:inline-block;margin-bottom:10px;color:#4770e8;font-size:.76rem;font-weight:850;letter-spacing:.16em}.kourse-home-section-heading h2,.kourse-home-connected h2{margin:0;color:#13213b;font-size:clamp(2rem,3.4vw,3.35rem);line-height:1.04;letter-spacing:-.045em}.kourse-home-section-heading p,.kourse-home-connected p{margin:14px 0 0;color:#66738c;font-size:1.05rem;line-height:1.65}.kourse-home-workspace{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;padding:13px 18px;border-radius:13px;background:#315fd7;color:#fff!important;font-weight:800;text-decoration:none;box-shadow:0 9px 22px rgba(49,95,215,.18)}.kourse-home-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.kourse-home-app-card{position:relative;display:flex;min-height:270px;box-sizing:border-box;flex-direction:column;padding:27px;border:1px solid #e0e7f1;border-radius:22px;background:#fbfcff;color:#13213b!important;text-decoration:none!important;box-shadow:0 8px 25px rgba(25,43,78,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.kourse-home-app-card:hover{transform:translateY(-4px);border-color:#c8d6f4;box-shadow:0 18px 40px rgba(25,43,78,.1)}.kourse-home-app-icon{display:grid;width:48px;height:48px;place-items:center;margin-bottom:20px;border-radius:14px;background:#edf3ff;color:#315fd7;font-size:1.35rem;font-weight:850}.kourse-home-app-type{position:absolute;top:28px;right:28px;color:#7a879f;font-size:.69rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.kourse-home-app-card h3{margin:0 0 9px;font-size:1.42rem;letter-spacing:-.025em}.kourse-home-app-card p{margin:0 0 22px;color:#68758d;line-height:1.55}.kourse-home-app-link{display:flex;align-items:center;gap:7px;margin-top:auto;color:#315fd7;font-weight:800}.kourse-home-connected{padding:24px 28px 86px;background:#fff}.kourse-home-connected-inner{display:grid;grid-template-columns:minmax(0,.8fr) minmax(520px,1.2fr);align-items:center;gap:54px;padding:42px 46px;border:1px solid #dce5f3;border-radius:26px;background:linear-gradient(135deg,#f7faff,#f2f7ff);box-shadow:0 12px 34px rgba(30,53,94,.055)}.kourse-home-connected h2{font-size:clamp(1.8rem,2.7vw,2.7rem)}.kourse-home-flow{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.kourse-home-flow span{display:flex;align-items:center;justify-content:center;min-height:68px;padding:10px 16px;border:1px solid #dce4f0;border-radius:15px;background:#fff;text-align:center;color:#263653;font-weight:750;box-shadow:0 5px 15px rgba(31,48,86,.045)}.kourse-home-flow b{color:#8b98ad;font-size:1.1rem}
@media(max-width:1000px){.kourse-home-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-home-connected-inner{grid-template-columns:1fr}.kourse-home-flow{justify-content:flex-start;overflow-x:auto;padding-bottom:5px}.kourse-home-flow span{flex:0 0 auto}.kourse-home-section-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.kourse-home-ecosystem{padding:58px 18px 48px}.kourse-home-section-inner{width:100%}.kourse-home-app-grid{grid-template-columns:1fr}.kourse-home-app-card{min-height:230px}.kourse-home-connected{padding:0 18px 58px}.kourse-home-connected-inner{padding:28px 22px}.kourse-home-workspace{width:100%;box-sizing:border-box;justify-content:center}}


/* v1.2.2: authentication-independent typography.
   Do not name Inter here: some Kourse plugins load it only for authenticated
   users, which made the public site silently switch typefaces after login. */
.kourse-site-header,
.kourse-site-header *,
body.kourse-front-page .kourse-front-main,
body.kourse-front-page .kourse-front-main * ,
body.kourse-front-page .kourse-home-ecosystem,
body.kourse-front-page .kourse-home-ecosystem *,
body.kourse-front-page .kourse-home-connected,
body.kourse-front-page .kourse-home-connected * {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Keep the shared shell weights explicit so plugin CSS cannot change them
   based on whether its authenticated assets are present. */
.kourse-brand .wp-block-site-title,
.kourse-brand .wp-block-site-title a { font-weight:800 !important; }
.kourse-primary-nav-v110 .kourse-nav-item-link,
.kourse-primary-nav-v110 button.kourse-nav-item-link,
.kourse-nav-link { font-weight:700 !important; }
.kourse-nav-cta,
.kourse-account-toggle,
.kourse-account-name { font-weight:700 !important; }
body.kourse-front-page .kourse-front-main h1,
body.kourse-front-page .kourse-front-main .wp-block-heading:first-of-type { font-weight:800 !important; }
body.kourse-front-page .kourse-front-main p { font-weight:400; }
body.kourse-front-page .kourse-front-main strong,
body.kourse-front-page .kourse-front-main b { font-weight:700; }


/* 1.2.6 — avoid class collision with Kourse Suite's .kourse-home component.
   The old body class made the Suite rule `.kourse-home{overflow:hidden}` apply
   to <body>, which prevented the extended homepage from scrolling into view. */
body.kourse-front-page {
  height:auto !important;
  min-height:100% !important;
  max-height:none !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}
body.kourse-front-page .kourse-front-main,
body.kourse-front-page .kourse-home.kh-no-header {
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}


/* 1.2.8 — signed-in homepage compact viewport.
   The Suite hero has min-height:640px plus large vertical padding. Because the
   hero used content-box sizing, that padding was added on top of the minimum
   height and made the authenticated homepage taller than the viewport. */
body.logged-in.kourse-front-page {
  height:auto !important;
  min-height:0 !important;
  display:block !important;
}
body.logged-in.kourse-front-page .kourse-front-main,
body.logged-in.kourse-front-page .kourse-home.kh-no-header,
body.logged-in.kourse-front-page .kourse-home.kh-no-header > main {
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  display:block !important;
  overflow:visible !important;
}
body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero {
  box-sizing:border-box !important;
  min-height:0 !important;
  padding-top:clamp(38px,4.5vw,58px) !important;
  padding-bottom:clamp(38px,4.5vw,58px) !important;
}
body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero-visual {
  min-height:390px !important;
}
body.logged-in.kourse-front-page .kourse-footer {
  margin:0 !important;
}
@media (max-width:980px) {
  body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero-visual {
    min-height:360px !important;
  }
}
@media (max-width:640px) {
  body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero {
    padding-top:34px !important;
    padding-bottom:34px !important;
  }
  body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero-visual {
    min-height:310px !important;
  }
}

/* 1.2.9 — signed-in homepage ends cleanly at the viewport/footer. */
html:has(body.logged-in.kourse-front-page){min-height:100%;background:#121c31}
body.logged-in.kourse-front-page{
  min-height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
  background:#f7f9fd !important;
}
body.logged-in.kourse-front-page > .kourse-site-header{flex:0 0 auto}
body.logged-in.kourse-front-page > .kourse-front-main{
  flex:1 0 auto !important;
  width:100% !important;
  display:block !important;
}
body.logged-in.kourse-front-page > .kourse-footer{
  flex:0 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero{
  min-height:calc(100vh - 72px - 205px) !important;
  display:flex !important;
  align-items:center !important;
}
/* Dashboard/access pages are app surfaces, even when the WP page is named Access. */
body.kourse-app-dashboard .kourse-main{padding:28px 24px 56px !important}
body.kourse-app-dashboard .kourse-main>.wp-block-post-title,
body.kourse-app-dashboard .kourse-main>.entry-title{display:none!important}
body.kourse-app-dashboard .kourse-main>.wp-block-post-content{margin-top:0!important}
@media(max-width:782px){body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero{min-height:0!important}}


/* v1.2.11 — native Kourse appearance control */
.kourse-theme-picker{margin:5px 0;padding:10px 11px 11px;border-top:1px solid var(--k-border);border-bottom:1px solid var(--k-border)}
.kourse-theme-label{display:block;margin-bottom:7px;color:var(--k-muted);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.kourse-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:3px;background:#eef2f8;border-radius:9px}
.kourse-theme-options button{min-width:0;padding:7px 4px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--k-muted)!important;font:inherit!important;font-size:.72rem!important;font-weight:700!important;cursor:pointer}
.kourse-theme-options button.is-active{background:#fff!important;color:var(--k-ink)!important;box-shadow:0 1px 5px rgba(31,48,86,.12)}

html[data-kourse-theme="dark"]{color-scheme:dark;--k-ink:#edf3ff;--k-blue:#7f9cff;--k-violet:#a38cf2;--k-canvas:#0b1220;--k-surface:#121c2f;--k-border:#293650;--k-muted:#a9b5cb;--k-shadow:0 16px 45px rgba(0,0,0,.28)}
html[data-kourse-theme="dark"] body{background:var(--k-canvas);color:var(--k-ink)}
html[data-kourse-theme="dark"] .kourse-site-header{background:rgba(11,18,32,.94);border-bottom-color:#26334a}
html[data-kourse-theme="dark"] .kourse-brand .wp-block-site-title a,
html[data-kourse-theme="dark"] .kourse-nav-link,
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 .kourse-nav-item-link,
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 button.kourse-nav-item-link{color:#e8eefb!important}
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 .kourse-nav-item-link:hover,
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 button.kourse-nav-item-link:hover{background:#18243a!important;color:#fff!important}
html[data-kourse-theme="dark"] .kourse-nav-menu,
html[data-kourse-theme="dark"] .kourse-mobile-panel,
html[data-kourse-theme="dark"] .kourse-account-toggle,
html[data-kourse-theme="dark"] .kourse-account-dropdown{background:#111b2e!important;border-color:#2b3850!important;color:#edf3ff!important;box-shadow:0 18px 45px rgba(0,0,0,.35)}
html[data-kourse-theme="dark"] .kourse-nav-menu a,
html[data-kourse-theme="dark"] .kourse-mobile-panel a,
html[data-kourse-theme="dark"] .kourse-account-dropdown a{color:#edf3ff!important}
html[data-kourse-theme="dark"] .kourse-nav-menu a:hover,
html[data-kourse-theme="dark"] .kourse-mobile-panel a:hover,
html[data-kourse-theme="dark"] .kourse-account-dropdown a:hover,
html[data-kourse-theme="dark"] .kourse-account-primary{background:#18243a!important}
html[data-kourse-theme="dark"] .kourse-menu-icon{background:#1d2b48;color:#9eb1ff}
html[data-kourse-theme="dark"] .kourse-avatar{background:#5877ee}
html[data-kourse-theme="dark"] .kourse-mobile-toggle{background:#111b2e;border-color:#2b3850}
html[data-kourse-theme="dark"] .kourse-mobile-toggle span{background:#edf3ff}
html[data-kourse-theme="dark"] .kourse-theme-options{background:#0b1323}
html[data-kourse-theme="dark"] .kourse-theme-options button.is-active{background:#273650!important;color:#fff!important;box-shadow:none}
html[data-kourse-theme="dark"] .kourse-footer{background:#070d18}
html[data-kourse-theme="dark"] .kourse-hero{background:radial-gradient(circle at 85% 20%,rgba(118,86,216,.18),transparent 34%),linear-gradient(145deg,#101a2d 0%,#0c1424 100%);border-color:#293650}
html[data-kourse-theme="dark"] .kourse-hero p{color:#b7c2d6}
html[data-kourse-theme="dark"] .kourse-hero-panel,
html[data-kourse-theme="dark"] .kourse-card{background:#121c2f;border-color:#293650;color:#edf3ff}
html[data-kourse-theme="dark"] .kourse-mini-grid>p{background:#18243a;color:#dbe4f5}
html[data-kourse-theme="dark"] body:not(.wp-admin) :where(input[type=text],input[type=email],input[type=password],input[type=number],select,textarea){background:#0e1728!important;border-color:#33425d!important;color:#eef3ff!important}
html[data-kourse-theme="dark"] body:not(.wp-admin) :where(input,textarea)::placeholder{color:#8290aa}
/* Shared Kourse plugin surfaces: opt into dark colors without altering layout. */
html[data-kourse-theme="dark"] body:not(.wp-admin) :where(.kourse-dashboard,.kourse-dashboard-shell,.kourse-student-dashboard,.kourse-student-portal,.kourse-teacher-dashboard,.kourse-teacher-shell,.kourse-app-shell,.kourse-workspace,.kourse-learning-lab,.kourse-mastery,.kourse-literacy,.kourse-essay-builder){background-color:#0b1220!important;color:#edf3ff}
html[data-kourse-theme="dark"] body:not(.wp-admin) :where(.kourse-dashboard,.kourse-dashboard-shell,.kourse-student-dashboard,.kourse-student-portal,.kourse-teacher-dashboard,.kourse-teacher-shell,.kourse-app-shell,.kourse-workspace,.kourse-learning-lab,.kourse-mastery,.kourse-literacy,.kourse-essay-builder) :where(.card,.panel,.section,.content,.workspace,.main,.dashboard-card,[class*="card"],[class*="panel"]){border-color:#293650}
@media(max-width:760px){.kourse-theme-picker{margin-top:4px}.kourse-theme-options button{padding:8px 3px!important}}

/* 1.2.13 — global Kourse document/footer shell.
   Short Kourse pages should fill the viewport BEFORE the footer, never after it. */
html:not(.wp-toolbar){
  min-height:100%;
}
body:not(.wp-admin){
  min-height:100vh !important;
  height:auto !important;
  display:flex !important;
  flex-direction:column !important;
  overflow-x:hidden !important;
}
body.admin-bar:not(.wp-admin){
  min-height:calc(100vh - 32px) !important;
}
body:not(.wp-admin) > .kourse-site-header,
body:not(.wp-admin) > header.wp-block-template-part{
  flex:0 0 auto !important;
}
body:not(.wp-admin) > .kourse-main,
body:not(.wp-admin) > .kourse-front-main,
body:not(.wp-admin) > main{
  flex:1 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin) > .kourse-footer,
body:not(.wp-admin) > footer.wp-block-template-part{
  flex:0 0 auto !important;
  width:100% !important;
  margin-top:auto !important;
  margin-bottom:0 !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin) > .kourse-footer:last-child,
body:not(.wp-admin) > footer.wp-block-template-part:last-child{
  margin-bottom:0 !important;
}
/* Override older front-page experiments: the shared shell now owns viewport fill. */
body.logged-in.kourse-front-page{
  min-height:100vh !important;
}
body.admin-bar.logged-in.kourse-front-page{
  min-height:calc(100vh - 32px) !important;
}
body.logged-in.kourse-front-page > .kourse-front-main{
  flex:1 0 auto !important;
}
body.logged-in.kourse-front-page .kourse-home.kh-no-header .kh-hero{
  min-height:0 !important;
}
@media(max-width:782px){
  body.admin-bar:not(.wp-admin),
  body.admin-bar.logged-in.kourse-front-page{
    min-height:calc(100vh - 46px) !important;
  }
}

/* 1.2.14 — WordPress block-theme shell fix.
   Block templates render header/main/footer inside .wp-site-blocks, so that wrapper—not
   body—is the element that must own the vertical flex layout. */
body:not(.wp-admin){
  display:block !important;
  min-height:100vh !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
body:not(.wp-admin) > .wp-site-blocks{
  min-height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
}
body.admin-bar:not(.wp-admin) > .wp-site-blocks{
  min-height:calc(100vh - 32px) !important;
}
body:not(.wp-admin) > .wp-site-blocks > header,
body:not(.wp-admin) > .wp-site-blocks > .wp-block-template-part:first-child{
  flex:0 0 auto !important;
}
body:not(.wp-admin) > .wp-site-blocks > main,
body:not(.wp-admin) > .wp-site-blocks > .kourse-main,
body:not(.wp-admin) > .wp-site-blocks > .kourse-front-main{
  flex:1 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin) > .wp-site-blocks > footer,
body:not(.wp-admin) > .wp-site-blocks > .wp-block-template-part:last-child{
  flex:0 0 auto !important;
  width:100% !important;
  margin-top:auto !important;
  margin-bottom:0 !important;
}
body:not(.wp-admin) > .wp-site-blocks > :last-child{
  margin-bottom:0 !important;
}
@media(max-width:782px){
  body.admin-bar:not(.wp-admin) > .wp-site-blocks{
    min-height:calc(100vh - 46px) !important;
  }
}

/* 1.2.15 — definitive dual-shell footer layout.
   PHP templates render header/main/footer directly under body; block templates
   render them inside .wp-site-blocks. Never give a block-level body a viewport
   min-height without also making that exact shell flex. */
html:not(.wp-toolbar){
  min-height:0 !important;
  height:auto !important;
}
body:not(.wp-admin){
  height:auto !important;
  min-height:100vh !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
  overflow-x:hidden !important;
}
/* PHP/direct-child shell (front-page.php and other PHP-owned Kourse pages). */
body:not(.wp-admin):not(:has(> .wp-site-blocks)){
  display:flex !important;
  flex-direction:column !important;
}
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > .kourse-site-header,
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > header{
  flex:0 0 auto !important;
}
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > .kourse-main,
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > .kourse-front-main,
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > main{
  flex:1 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > .kourse-footer,
body:not(.wp-admin):not(:has(> .wp-site-blocks)) > footer{
  flex:0 0 auto !important;
  width:100% !important;
  margin-top:auto !important;
  margin-bottom:0 !important;
}
/* Native block-template shell. */
body:not(.wp-admin):has(> .wp-site-blocks){
  display:block !important;
  min-height:0 !important;
}
body:not(.wp-admin) > .wp-site-blocks{
  min-height:100vh !important;
  height:auto !important;
  display:flex !important;
  flex-direction:column !important;
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin) > .wp-site-blocks > main{
  flex:1 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body:not(.wp-admin) > .wp-site-blocks > footer,
body:not(.wp-admin) > .wp-site-blocks > .wp-block-template-part:last-child{
  flex:0 0 auto !important;
  width:100% !important;
  margin-top:auto !important;
  margin-bottom:0 !important;
}
/* Admin bar occupies viewport space outside the page shell. */
body.admin-bar:not(.wp-admin):not(:has(> .wp-site-blocks)){
  min-height:calc(100vh - 32px) !important;
}
body.admin-bar:not(.wp-admin) > .wp-site-blocks{
  min-height:calc(100vh - 32px) !important;
}
@media(max-width:782px){
  body.admin-bar:not(.wp-admin):not(:has(> .wp-site-blocks)){
    min-height:calc(100vh - 46px) !important;
  }
  body.admin-bar:not(.wp-admin) > .wp-site-blocks{
    min-height:calc(100vh - 46px) !important;
  }
}


/* 1.2.16 — natural-height app shell fix.
   Kourse Suite/app pages must not let the outer WordPress main grow to fill
   the viewport. The .wp-site-blocks shell owns viewport fill; footer follows
   the actual app content. */
body.kourse-app-page > .wp-site-blocks > main.kourse-main,
body.kourse-app-dashboard > .wp-site-blocks > main.kourse-main {
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
}
body.kourse-app-page > .wp-site-blocks > footer,
body.kourse-app-dashboard > .wp-site-blocks > footer,
body.kourse-app-page > .wp-site-blocks > .wp-block-template-part:last-child,
body.kourse-app-dashboard > .wp-site-blocks > .wp-block-template-part:last-child {
  margin-top:0 !important;
}
/* Direct/PHP app shells use the same natural-height rule. */
body.kourse-app-page:not(:has(> .wp-site-blocks)) > main.kourse-main,
body.kourse-app-dashboard:not(:has(> .wp-site-blocks)) > main.kourse-main {
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
}

/* 1.2.17 — app-page footer/document-flow correction.
   App pages should be content-driven documents, not sticky-footer viewport shells.
   This removes the remaining shell stretch/gap and makes any unavoidable viewport
   remainder visually continue the footer rather than exposing the canvas. */
html:has(body.kourse-app-page),
html:has(body.kourse-app-dashboard){
  min-height:0 !important;
  height:auto !important;
  background:#121c31 !important;
}
body.kourse-app-page,
body.kourse-app-dashboard{
  min-height:0 !important;
  height:auto !important;
  background:#121c31 !important;
}
body.kourse-app-page > .wp-site-blocks,
body.kourse-app-dashboard > .wp-site-blocks{
  min-height:0 !important;
  height:auto !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--k-canvas,#f6f8fc);
}
body.kourse-app-page > .wp-site-blocks > *,
body.kourse-app-dashboard > .wp-site-blocks > *{
  margin-block-start:0 !important;
  margin-block-end:0 !important;
}
body.kourse-app-page > .wp-site-blocks > main.kourse-main,
body.kourse-app-dashboard > .wp-site-blocks > main.kourse-main{
  display:block !important;
  flex:none !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding-top:28px !important;
  padding-bottom:20px !important;
}
body.kourse-app-page > .wp-site-blocks > footer,
body.kourse-app-dashboard > .wp-site-blocks > footer,
body.kourse-app-page > .wp-site-blocks > .wp-block-template-part:last-child,
body.kourse-app-dashboard > .wp-site-blocks > .wp-block-template-part:last-child{
  display:block !important;
  flex:none !important;
  margin:0 !important;
  padding-bottom:0 !important;
  background:#121c31 !important;
}
@media(max-width:900px){
  body.kourse-app-page > .wp-site-blocks > main.kourse-main,
  body.kourse-app-dashboard > .wp-site-blocks > main.kourse-main{
    padding-top:14px !important;
    padding-bottom:16px !important;
  }
}


/* 1.2.18 — canonical light shell + app width ownership.
   The WordPress theme owns the site chrome/canvas. Kourse Suite owns the
   interior dashboard layout. No guest/dark/system mode may recolor the shell. */
html,
html[data-kourse-theme],
body:not(.wp-admin),
body.kourse-app-page,
body.kourse-app-dashboard{
  color-scheme:light !important;
  background:#f6f8fc !important;
}
html[data-kourse-theme="dark"]{
  --k-ink:#17233c !important;
  --k-blue:#3157d5 !important;
  --k-violet:#7656d8 !important;
  --k-canvas:#f6f8fc !important;
  --k-surface:#ffffff !important;
  --k-border:#dfe5f0 !important;
  --k-muted:#68758d !important;
}
.kourse-site-header,
html[data-kourse-theme="dark"] .kourse-site-header{
  background:rgba(255,255,255,.97) !important;
  border-bottom:1px solid #e1e6ef !important;
  color:#17233c !important;
}
.kourse-brand .wp-block-site-title a,
.kourse-nav-link,
.kourse-primary-nav-v110 .kourse-nav-item-link,
.kourse-primary-nav-v110 button.kourse-nav-item-link,
html[data-kourse-theme="dark"] .kourse-brand .wp-block-site-title a,
html[data-kourse-theme="dark"] .kourse-nav-link,
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 .kourse-nav-item-link,
html[data-kourse-theme="dark"] .kourse-primary-nav-v110 button.kourse-nav-item-link{
  color:#17233c !important;
}
/* Undo 1.2.17's dark document remainder. */
html:has(body.kourse-app-page),
html:has(body.kourse-app-dashboard),
body.kourse-app-page,
body.kourse-app-dashboard{
  background:#f6f8fc !important;
}
/* App pages use one centered canvas instead of a 100vw breakout. */
body.kourse-app-dashboard .kourse-main,
body.kourse-app-page .kourse-main{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:28px 24px 44px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
body.kourse-app-dashboard .kourse-main>.wp-block-post-content,
body.kourse-app-page .kourse-main>.wp-block-post-content{
  position:static !important;
  left:auto !important;
  width:min(1600px,100%) !important;
  max-width:1600px !important;
  margin:0 auto !important;
  padding:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
body.kourse-app-dashboard .kourse-main>.wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.kourse-app-page .kourse-main>.wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)){
  max-width:none !important;
}
/* The access/sign-in surface follows the same app canvas. */
body.kourse-page-access .kourse-main>.wp-block-post-content,
body:has([class*="kourse-access"]) .kourse-main>.wp-block-post-content{
  width:min(1600px,100%) !important;
  max-width:1600px !important;
  margin-inline:auto !important;
}
@media(max-width:900px){
  body.kourse-app-dashboard .kourse-main,
  body.kourse-app-page .kourse-main{padding:16px !important;}
}

/* 1.2.19 — front-page sticky-footer correction.
   front-page.php is a direct PHP shell. Keep the footer in normal flow and
   let the homepage main absorb any unused viewport height. This prevents the
   document canvas from appearing as a strip below the footer on short pages. */
html:has(body.kourse-front-page){
  min-height:100% !important;
  height:100% !important;
  /* Do not reset margin-top here. WordPress uses html margin-top to reserve
     space for #wpadminbar on logged-in staff accounts. */
  margin-right:0 !important;
  margin-bottom:0 !important;
  margin-left:0 !important;
  padding:0 !important;
  background:#f6f8fc !important;
}
body.kourse-front-page:not(.wp-admin){
  min-height:100vh !important;
  height:auto !important;
  display:flex !important;
  flex-direction:column !important;
  margin:0 !important;
  padding:0 !important;
  background:#f6f8fc !important;
}
body.admin-bar.kourse-front-page:not(.wp-admin){
  min-height:calc(100vh - 32px) !important;
}
body.kourse-front-page:not(.wp-admin) > header,
body.kourse-front-page:not(.wp-admin) > .kourse-site-header{
  flex:0 0 auto !important;
}
body.kourse-front-page:not(.wp-admin) > main.kourse-front-main{
  flex:1 0 auto !important;
  width:100% !important;
  min-height:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
body.kourse-front-page:not(.wp-admin) > footer,
body.kourse-front-page:not(.wp-admin) > .kourse-footer{
  flex:0 0 auto !important;
  width:100% !important;
  margin-top:auto !important;
  margin-bottom:0 !important;
}
@media(max-width:782px){
  body.admin-bar.kourse-front-page:not(.wp-admin){
    min-height:calc(100vh - 46px) !important;
  }
}

/* 1.2.22 — WordPress toolbar/header integration.
   WordPress reserves toolbar space by applying margin-top to <html>.
   Earlier Kourse CSS reset that margin to zero, causing #wpadminbar to cover
   the first 32/46px of the site header. Preserve WordPress's document offset
   and keep the sticky Kourse header immediately beneath the toolbar. */
body:not(.wp-admin) .kourse-site-header {
  top:0 !important;
}
body.admin-bar:not(.wp-admin) .kourse-site-header {
  top:32px !important;
}
@media screen and (max-width:782px) {
  body.admin-bar:not(.wp-admin) .kourse-site-header {
    top:46px !important;
  }
}

/* v1.2.25 — Per-page content width controls.
   These rules intentionally come last so page-level choices can override
   WordPress constrained layouts and Kourse app-page defaults. */
body.kourse-page-width-narrow .kourse-main>.wp-block-post-content{width:min(760px,100%)!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}
body.kourse-page-width-standard .kourse-main>.wp-block-post-content{width:min(1000px,100%)!important;max-width:1000px!important;margin-left:auto!important;margin-right:auto!important}
body.kourse-page-width-wide .kourse-main>.wp-block-post-content{width:min(1240px,100%)!important;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}
body.kourse-page-width-xwide .kourse-main>.wp-block-post-content{width:min(1600px,100%)!important;max-width:1600px!important;margin-left:auto!important;margin-right:auto!important}
body.kourse-page-width-custom .kourse-main>.wp-block-post-content{width:min(var(--kourse-page-content-width,1240px),100%)!important;max-width:var(--kourse-page-content-width,1240px)!important;margin-left:auto!important;margin-right:auto!important}
body.kourse-page-width-full .kourse-main{max-width:none!important;width:100%!important}
body.kourse-page-width-full .kourse-main>.wp-block-post-content{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
body.kourse-page-width-full .kourse-main>.wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright)),
body.kourse-page-width-full .kourse-main>.wp-block-post-content>*{max-width:none!important}

/* Preset/custom widths also override Gutenberg's inner constrained children so
   shortcode wrappers are not squeezed back to the global 760px contentSize. */
body.kourse-page-width-narrow .kourse-main>.wp-block-post-content.is-layout-constrained>*,
body.kourse-page-width-standard .kourse-main>.wp-block-post-content.is-layout-constrained>*,
body.kourse-page-width-wide .kourse-main>.wp-block-post-content.is-layout-constrained>*,
body.kourse-page-width-xwide .kourse-main>.wp-block-post-content.is-layout-constrained>*,
body.kourse-page-width-custom .kourse-main>.wp-block-post-content.is-layout-constrained>*{max-width:100%!important}


/* v1.2.27 — Per-page title visibility. */
body.kourse-hide-page-title .kourse-main>.wp-block-post-title{display:none!important;}
