/* Open Pivot visual preset — course catalog and learner dashboard only. */
.slm-preset-open-pivot{
  --op-ink:#373e48;
  --op-gold:#597b7c;
  --op-gold-deep:#362c66;
  --op-cream:#f5f2fa;
  --op-muted:#687177;
  --op-line:#e3deed;
  --op-white:#fff;
  --op-serif:inherit;
  color:var(--op-ink);
}

.slm-preset-open-pivot .slm-eyebrow{
  color:var(--op-gold-deep);
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
}

.slm-preset-open-pivot .slm-course-grid{
  gap:28px;
  align-items:stretch;
}

/* A cards-only account page should feel editorial, not like a centered app widget. */
.slm-preset-open-pivot.slm-card-embed{
  max-width:1190px;
  margin:0 auto;
  padding:58px 0 54px;
}
.slm-preset-open-pivot.slm-card-embed .slm-course-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  justify-content:start;
}

.slm-preset-open-pivot .slm-course-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--op-line);
  border-radius:8px;
  background:var(--op-white);
  box-shadow:0 10px 30px rgba(27,27,27,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.slm-preset-open-pivot .slm-course-card:hover{
  transform:translateY(-3px);
  border-color:#ded7ec;
  box-shadow:0 16px 34px rgba(27,27,27,.09);
}

.slm-preset-open-pivot .slm-card-image{
  height:auto;
  aspect-ratio:16/9;
  background:linear-gradient(145deg,#597b7c 0%,#597b7c 58%,#362c66 100%);
  border-bottom:1px solid rgba(27,27,27,.08);
}
.slm-preset-open-pivot .slm-card-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.slm-preset-open-pivot .slm-card-image:has(>img){
  background:#fff;
}
.slm-preset-open-pivot .slm-card-image>span{
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:0;
  color:var(--op-ink);
}
.slm-preset-open-pivot .slm-card-image>span:before{
  content:"OP";
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  border:1px solid rgba(27,27,27,.38);
  font-family:var(--op-serif);
  font-size:30px;
  line-height:1;
  letter-spacing:-.04em;
}
.slm-preset-open-pivot .slm-card-image>span:after{
  content:"OPEN PIVOT";
  position:absolute;
  left:20px;
  bottom:16px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
}

.slm-preset-open-pivot .slm-card-body{
  padding:24px 24px 22px;
}
.slm-preset-open-pivot .slm-card-meta{
  gap:8px 14px;
  margin-bottom:10px;
  color:var(--op-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.slm-preset-open-pivot .slm-card-body h3{
  margin:0 0 10px;
  color:var(--op-ink);
  font-size:23px;
  line-height:1.22;
  letter-spacing:-.025em;
  font-weight:750;
}
.slm-preset-open-pivot .slm-card-body>p{
  margin:0 0 22px;
  color:var(--op-muted);
  font-size:14px;
  line-height:1.65;
}
.slm-preset-open-pivot .slm-card-body>p:empty{display:none}

.slm-preset-open-pivot .slm-card-progress{
  margin:18px 0 17px;
  padding-top:17px;
  border-top:1px solid var(--op-line);
}
.slm-preset-open-pivot .slm-card-progress>div{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:8px;
  color:var(--op-muted);
  font-size:11px;
  font-weight:700;
}
.slm-preset-open-pivot .slm-card-progress strong{
  color:var(--op-ink);
}
.slm-preset-open-pivot .slm-card-progress>i{
  height:4px;
  overflow:hidden;
  border-radius:4px;
  background:#f5f2fa;
}
.slm-preset-open-pivot .slm-card-progress>i>b{
  background:var(--op-gold-deep);
  border-radius:4px;
}

.slm-preset-open-pivot .slm-card-actions{
  gap:10px;
}
.slm-preset-open-pivot .slm-primary-btn,
.slm-preset-open-pivot .slm-card-actions .slm-primary-btn{
  min-height:48px;
  padding:13px 16px;
  border:1px solid var(--op-ink);
  border-radius:6px;
  background:var(--op-ink);
  color:#fff!important;
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:none;
}
.slm-preset-open-pivot .slm-primary-btn:hover,
.slm-preset-open-pivot .slm-card-actions .slm-primary-btn:hover{
  border-color:var(--op-gold);
  background:var(--op-gold);
  color:var(--op-ink)!important;
  transform:none;
}
.slm-preset-open-pivot .slm-ghost-btn{
  min-height:48px;
  border:1px solid #a49abb;
  border-radius:6px;
  background:transparent;
  color:var(--op-ink)!important;
}
.slm-preset-open-pivot .slm-ghost-btn:hover{
  border-color:var(--op-ink);
  background:var(--op-cream);
}

.slm-preset-open-pivot .slm-dashboard-head{
  margin-bottom:32px;
}
.slm-preset-open-pivot .slm-dashboard-head h2,
.slm-preset-open-pivot .slm-catalog-head h2{
  font-family:var(--op-serif);
  font-weight:400;
  letter-spacing:-.045em;
}
.slm-preset-open-pivot .slm-dashboard-section{
  margin-top:0;
  padding:34px 0 44px;
  border-top:1px solid var(--op-line);
}
.slm-preset-open-pivot .slm-dashboard-section-head{
  margin-bottom:23px;
}
.slm-preset-open-pivot .slm-dashboard-section-head h3{
  margin:3px 0 6px;
  font-family:var(--op-serif);
  font-size:clamp(28px,3vw,38px);
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:400;
}
.slm-preset-open-pivot .slm-dashboard-section-head p{
  color:var(--op-muted);
}
.slm-preset-open-pivot .slm-dashboard-section-head>strong{
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--op-line);
  border-radius:50%;
  background:var(--op-cream);
  color:var(--op-ink);
  font-size:13px;
}
.slm-preset-open-pivot .slm-dashboard-note{
  border:1px solid var(--op-line);
  border-radius:3px;
  background:var(--op-cream);
  box-shadow:none;
}


/* CU learner page title treatment. The small script adds these classes to the
   theme's existing Your Courses heading so the plugin can polish the page
   without depending on one theme-specific markup structure. */
body.slm-open-pivot-page .slm-op-account-hero{
  padding-top:clamp(58px,6vw,82px)!important;
  padding-bottom:clamp(52px,5vw,70px)!important;
}
body.slm-open-pivot-page .slm-op-account-eyebrow{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 14px;
  color:#597b7c;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}
body.slm-open-pivot-page .slm-op-account-eyebrow:before{
  content:"";
  width:28px;
  height:2px;
  flex:none;
  background:currentColor;
}
body.slm-open-pivot-page .slm-op-account-title{
  margin:0!important;
  font-family:inherit!important;
  font-size:clamp(42px,5.2vw,68px)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
  font-weight:400!important;
}
body.slm-open-pivot-page .slm-op-account-subtitle{
  max-width:560px;
  margin:16px 0 0!important;
  color:#e3deed!important;
  font-size:15px!important;
  line-height:1.6!important;
}

@media(max-width:900px){
  .slm-preset-open-pivot .slm-course-grid,
  .slm-preset-open-pivot.slm-card-embed .slm-course-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .slm-preset-open-pivot.slm-card-embed{
    margin:0;
    padding:34px 0 34px;
  }
  .slm-preset-open-pivot .slm-course-grid,
  .slm-preset-open-pivot.slm-card-embed .slm-course-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
  .slm-preset-open-pivot .slm-card-body{
    padding:21px 20px 19px;
  }
  .slm-preset-open-pivot .slm-card-body h3{
    font-size:21px;
  }
  .slm-preset-open-pivot .slm-card-image>span:before{
    width:64px;
    height:64px;
    font-size:27px;
  }
  .slm-preset-open-pivot .slm-primary-btn,
  .slm-preset-open-pivot .slm-ghost-btn{
    width:100%;
  }
  body.slm-open-pivot-page .slm-op-account-hero{
    padding-top:44px!important;
    padding-bottom:42px!important;
  }
  body.slm-open-pivot-page .slm-op-account-title{
    font-size:clamp(38px,11vw,50px)!important;
  }
  body.slm-open-pivot-page .slm-op-account-subtitle{
    margin-top:12px!important;
    font-size:14px!important;
  }
}


/* 1.14.20 — The Colorado theme can constrain the learner to roughly 900px
   while the browser is still a full desktop viewport. Stellar's generic
   container breakpoint treats that as mobile; CU keeps the desktop course
   rail until the player is truly narrow. Actual <=900px viewports keep the
   standard tablet/mobile drawer. */
@media (min-width:901px){
  @container slm-player (min-width:721px) and (max-width:900px){
    .slm-preset-open-pivot .slm-player{
      display:grid;
      grid-template-columns:300px minmax(0,1fr);
      border-radius:24px;
    }
    .slm-preset-open-pivot .slm-sidebar{
      position:sticky;
      z-index:auto;
      inset:auto;
      top:20px;
      width:auto;
      height:calc(100vh - 40px);
      max-height:900px;
      overflow:hidden;
      box-shadow:none;
      opacity:1;
      visibility:visible;
      pointer-events:auto;
      transform:translateX(0);
    }
    .slm-preset-open-pivot .slm-content{
      width:100%;
      min-width:0;
      max-width:100%;
      overflow:visible;
    }
    .slm-preset-open-pivot .slm-mobile-head{display:none!important}
    .slm-preset-open-pivot .slm-collapse{font-size:23px}
    .slm-preset-open-pivot .slm-collapse:after{content:none}
    .slm-preset-open-pivot .slm-lesson{
      width:100%;
      padding:60px 42px 45px!important;
    }
    .slm-preset-open-pivot .slm-player.is-collapsed{
      grid-template-columns:0 minmax(0,1fr);
    }
    .slm-preset-open-pivot .slm-player.is-collapsed .slm-sidebar{
      opacity:0;
      visibility:hidden;
      pointer-events:none;
      transform:translateX(-40px);
    }
    .slm-preset-open-pivot .slm-player.is-collapsed .slm-sidebar-reopen{
      display:grid!important;
      place-items:center;
    }
  }
}

/* 1.14.21 — CU learner pages should use the available desktop viewport rather
   than inherit the theme's narrow editorial content width. This breakout is
   desktop-only so the existing tablet/mobile drawer remains unchanged. */
@media (min-width:1100px){
  .slm-app.slm-learning.slm-preset-open-pivot{
    position:relative;
    left:50%;
    width:min(1400px,calc(100vw - 48px));
    max-width:min(1400px,calc(100vw - 48px));
    margin-left:0;
    margin-right:0;
    margin-top:-24px;
    transform:translateX(-50%);
  }
}


/* 1.14.22 — On CU learner routes the theme's generic Learn page hero is
   redundant with Stellar's course player. JS marks only the external exact
   "Learn" heading/hero, leaving lesson and course headings untouched. */
body.slm-open-pivot-learner-page .slm-op-hidden-learn-hero{
  display:none!important;
}


/* 1.14.23 — CU learner spacing polish. The generic Stellar lesson is capped at
   850px with 55px side padding; inside the wide CU player that reads as excess
   whitespace. Keep this desktop-only and CU-only, while leaving mobile rules
   and other Stellar installs untouched. */
@media (min-width:901px){
  body.slm-open-pivot-learner-page .slm-app.slm-learning.slm-preset-open-pivot{
    margin-top:-36px;
  }
  body.slm-open-pivot-learner-page .slm-app.slm-learning.slm-preset-open-pivot .slm-lesson{
    max-width:1100px;
    padding:34px 32px 32px!important;
  }
}


/* 1.14.24 — CU course-home routes use the same wide desktop canvas as the
   lesson player and remove inherited page-wrapper breathing room. */
@media (min-width:1100px){
  body.slm-course-home-page.slm-open-pivot-learner-page .slm-app.slm-course-home.slm-preset-open-pivot{
    position:relative;
    left:50%;
    width:min(1400px,calc(100vw - 48px));
    max-width:min(1400px,calc(100vw - 48px));
    margin-left:0;
    margin-right:0;
    margin-top:-28px;
    padding-top:0!important;
    padding-bottom:42px;
    transform:translateX(-50%);
  }
  body.slm-course-home-page.slm-open-pivot-learner-page .slm-home-hero-copy{
    padding:40px 42px;
  }
}

/* 1.14.44 — CU / Open Pivot Your Courses: break both shortcode views out of a narrow
   theme content column so three desktop cards use the available canvas rather
   than bunching in the center. Keep a modest 24px viewport gutter. */
@media (min-width:1100px){
  body.slm-your-courses-page.slm-open-pivot-page .slm-app.slm-card-embed.slm-preset-open-pivot,
  body .slm-app.slm-unified-dashboard.slm-preset-open-pivot{
    position:relative;
    left:50%;
    width:min(1280px,calc(100vw - 48px));
    max-width:min(1280px,calc(100vw - 48px));
    margin-left:0;
    margin-right:0;
    padding:58px 24px 54px;
    transform:translateX(-50%);
  }
}

