/* Open Pivot — automatic palette and discovery styling.
   Applied with the companion theme, or via Brand Studio. The palette applies to plugin controls; authored lesson HTML is preserved. */
body.slm-open-pivot-page,
.slm-app.slm-preset-open-pivot{
  --slm-brand:#362c66;--slm-accent:#597b7c;--slm-soft:#f5f2fa;
  --slm-ink:#373e48;--slm-muted:#687177;--slm-button:#362c66;
  --op-primary:#362c66;
  --op-deep:#362c66;
  --op-ink:#373e48;
  --op-muted:#687177;
  --op-line:#e3deed;
  --op-soft:#f5f2fa;
  /* Shared learning components also appear outside the catalog/dashboard. */
  --op-ink:var(--slm-ink);--op-gold:var(--slm-brand);--op-gold-deep:var(--slm-brand);
  --op-cream:var(--slm-soft);--op-muted:var(--slm-muted);--op-line:var(--op-line);
}

.slm-app.slm-preset-open-pivot .slm-home-certificate{background:var(--slm-soft)}

/* Shared controls: foreground/background pairs stay readable on dark accents. */
.slm-app.slm-preset-open-pivot :is(.slm-primary-btn,.slm-next-btn,.slm-mobile-curriculum){
  background:var(--slm-button);border-color:var(--slm-button);color:white!important;
}
.slm-app.slm-preset-open-pivot :is(.slm-primary-btn,.slm-next-btn,.slm-mobile-curriculum):hover{
  background:var(--slm-brand);border-color:var(--slm-brand);color:white!important;filter:brightness(.88);
}
.slm-app.slm-preset-open-pivot .slm-complete:not(.is-complete){background:var(--slm-button);color:white!important}
.slm-app.slm-preset-open-pivot .slm-side-progress b{background:var(--slm-accent)}
.slm-app.slm-preset-open-pivot :is(.slm-prompt-icon,.slm-access-details li i),
.slm-app.slm-preset-open-pivot .slm-home-goals li:before{background:var(--slm-soft);color:var(--slm-brand)}
.slm-app.slm-preset-open-pivot :is(.slm-download,.slm-quiz){background:var(--slm-soft);border-color:#e3deed}
.slm-app.slm-preset-open-pivot .slm-quiz-result.is-pass{background:#eaf6ee;color:#145c36}
.slm-app.slm-preset-open-pivot .slm-lesson-link:hover{background:var(--slm-soft)}
body.slm-open-pivot-page .slm-learning .slm-lesson-link.is-active:not(.is-done),
body.slm-open-pivot-page .slm-outline-panel .slm-lesson-link.is-active:not(.is-done){
  background:var(--slm-soft);border-left-color:var(--slm-brand);color:var(--slm-brand)!important;
}
body.slm-open-pivot-page .slm-outline-panel,
body.slm-open-pivot-page .slm-outline-rail{background:#f5f2fa;border-color:#e3deed}
body.slm-open-pivot-page .slm-outline-panel .slm-side-progress b{background:var(--slm-accent)}
.slm-app.slm-preset-open-pivot :is(.slm-collapse:hover,.slm-mobile-percent){background:var(--slm-soft)!important;color:var(--slm-brand)!important}
body.slm-open-pivot-page .slm-learning .slm-sidebar-reopen.slm-outline-inline{color:var(--slm-brand);border-color:#ded7ec}
body.slm-open-pivot-page .slm-is-portaled.slm-floating-next{
  background:var(--slm-button)!important;color:white!important;
}
body.slm-open-pivot-page .slm-is-portaled.slm-floating-next:is(:hover,:focus-visible){
  background:var(--slm-brand)!important;color:white!important;filter:brightness(.88);
}
body.slm-open-pivot-page :is(.slm-floating-prev,.slm-back-top){color:var(--slm-brand);border-color:#ded7ec}
body.slm-open-pivot-page .slm-notes-trigger{
  background:white!important;color:var(--slm-brand)!important;border-color:#ded7ec!important;
}
body.slm-open-pivot-page .slm-notes-trigger:is(:hover,:focus-visible),
body.slm-open-pivot-page .slm-notes-trigger span{background:var(--slm-soft)!important;color:var(--slm-brand)}
body.slm-open-pivot-page .slm-notes-save,
body.slm-open-pivot-page .slm-notes-save:hover{
  background:var(--slm-button)!important;border-color:var(--slm-button)!important;color:white!important;
}
body.slm-open-pivot-page .slm-notes-context{background:var(--slm-soft)}
body.slm-open-pivot-page .slm-notes-body textarea{background:#fff;border-color:#ded7ec}
body.slm-open-pivot-page .slm-notes-body textarea:focus{border-color:var(--slm-brand);box-shadow:0 0 0 3px #362c6625}
body.slm-open-pivot-page .slm-notes-download:hover{background:var(--slm-soft);border-color:#ded7ec}
body.slm-open-pivot-page .slm-notes-status[data-state=saved]{color:#145c36}
.slm-app.slm-preset-open-pivot.slm-catalog,
.slm-app.slm-preset-open-pivot.slm-dashboard{
  --op-ink:var(--op-ink);--op-gold:var(--op-primary);--op-gold-deep:var(--op-primary);
  --op-cream:var(--op-soft);--op-muted:var(--op-muted);--op-line:var(--op-line);
  color:var(--op-ink);
}
.slm-app.slm-preset-open-pivot.slm-card-embed{
  width:100%;max-width:1240px;padding:24px 0 36px;
}
.slm-app.slm-preset-open-pivot .slm-course-grid,
.slm-app.slm-preset-open-pivot.slm-card-embed .slm-course-grid{
  grid-template-columns:repeat(var(--slm-cols,3),minmax(0,1fr));
  align-items:stretch;gap:26px;
}
.slm-app.slm-preset-open-pivot .slm-course-card{
  min-width:0;border:1px solid var(--op-line);border-radius:16px;background:white;
  box-shadow:0 3px 14px rgba(54,44,102,.025);overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
@media(hover:hover){
  .slm-app.slm-preset-open-pivot .slm-course-card:hover{
    transform:translateY(-4px);border-color:#a49abb;
    box-shadow:0 15px 34px rgba(54,44,102,.09);
  }
}
.slm-app.slm-preset-open-pivot .slm-card-image{
  height:auto;aspect-ratio:16/9;position:relative;
  background:linear-gradient(135deg,#362c66,#362c66);border:0;overflow:hidden;
}
.slm-app.slm-preset-open-pivot .slm-card-image img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.slm-app.slm-preset-open-pivot .slm-card-image:has(>img){background:#f5f2fa}
.slm-app.slm-preset-open-pivot .slm-card-image:after{display:none}
.slm-app.slm-preset-open-pivot .slm-card-image>span{
  display:grid;place-items:center;position:absolute;inset:0;width:100%;height:100%;color:white;font-size:0;
}
.slm-app.slm-preset-open-pivot .slm-card-image>span:before{
  content:"OP";font:400 33px/1 inherit;letter-spacing:-.03em;
  display:grid;place-items:center;width:76px;height:76px;border:1px solid #ffffff65;border-radius:50%;
}
.slm-app.slm-preset-open-pivot .slm-card-image>span:after{
  content:"OPEN PIVOT";position:absolute;left:22px;bottom:17px;
  color:white;font-size:9px;font-weight:600;letter-spacing:.16em;
}
.slm-app.slm-preset-open-pivot .slm-card-body{padding:25px 24px 23px;gap:0}
.slm-app.slm-preset-open-pivot .slm-card-meta{
  display:flex;flex-wrap:wrap;gap:7px 12px;margin:0 0 13px;
  color:var(--op-primary);font-size:10px;letter-spacing:.035em;text-transform:uppercase;font-weight:600;
}
.slm-app.slm-preset-open-pivot .slm-card-meta>span{
  display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;background:var(--op-soft);border-radius:4px;
}
.slm-app.slm-preset-open-pivot .slm-card-body h3{
  color:var(--op-ink);font-family:inherit;
  font-size:25px;font-weight:400;line-height:1.28;letter-spacing:-.025em;margin:0 0 12px;
  overflow-wrap:anywhere;
}
.slm-app.slm-preset-open-pivot .slm-card-body>p{
  flex:1;margin:0 0 24px;color:var(--op-muted);font-size:13px;line-height:1.8;
}
.slm-app.slm-preset-open-pivot .slm-card-progress{
  border-top:1px solid var(--op-line);padding-top:16px;margin:0 0 18px;
}
.slm-app.slm-preset-open-pivot .slm-card-progress>div{
  margin-bottom:9px;color:var(--op-muted);font-weight:500;font-size:11px;
}
.slm-app.slm-preset-open-pivot .slm-card-progress strong{color:var(--op-primary);font-weight:700}
.slm-app.slm-preset-open-pivot .slm-card-progress>i{height:5px;background:#e3deed;border-radius:5px}
.slm-app.slm-preset-open-pivot .slm-card-progress>i>b{background:var(--op-primary);border-radius:5px}
.slm-app.slm-preset-open-pivot .slm-card-actions{
  display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin-top:auto;
}
.slm-app.slm-preset-open-pivot .slm-card-actions>*{flex:1 1 140px;min-width:0}
.slm-app.slm-preset-open-pivot .slm-course-card .slm-primary-btn,
.slm-app.slm-preset-open-pivot .slm-card-actions .slm-primary-btn{
  display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  min-height:47px;padding:13px 16px;border:1px solid var(--op-primary);border-radius:6px;
  background:var(--op-primary);color:white!important;box-shadow:none;
  font-size:12px;font-weight:600;line-height:1.4;letter-spacing:0;text-align:left;white-space:normal;
}
.slm-app.slm-preset-open-pivot .slm-course-card .slm-primary-btn:hover,
.slm-app.slm-preset-open-pivot .slm-card-actions .slm-primary-btn:hover{
  background:var(--op-deep);border-color:var(--op-deep);color:white!important;filter:none;transform:none;
}
/* A drawn SVG arrow avoids emoji substitution on iOS; existing button markup/handlers stay intact. */
.slm-app.slm-preset-open-pivot .slm-course-card .slm-primary-btn>span{
  flex:none;display:inline-block;width:18px;height:18px;font-size:0;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.slm-app.slm-preset-open-pivot .slm-course-card .slm-ghost-btn{
  min-height:47px;padding:13px 16px;border:1px solid #ded7ec;border-radius:6px;
  background:white;color:var(--op-primary)!important;justify-content:center;
  font-size:12px;font-weight:600;line-height:1.4;text-align:center;
}
.slm-app.slm-preset-open-pivot .slm-course-card .slm-ghost-btn:hover{background:var(--op-soft);border-color:var(--op-primary)}
.slm-app.slm-preset-open-pivot .slm-course-card :is(a,button):focus-visible{
  outline:3px solid var(--op-primary);outline-offset:3px;
}
.slm-app.slm-preset-open-pivot .slm-catalog-hero{
  padding:38px 35px;background:#f5f2fa;border:1px solid var(--op-line);border-top:3px solid var(--op-primary);
  border-radius:12px;color:var(--op-ink);margin-bottom:18px;gap:25px;
}
.slm-app.slm-preset-open-pivot .slm-catalog-hero:after{display:none}
.slm-app.slm-preset-open-pivot .slm-catalog-hero .slm-eyebrow{color:var(--op-primary);font-size:10px;font-weight:600}
.slm-app.slm-preset-open-pivot .slm-catalog-copy h2{
  font-family:inherit;color:var(--op-ink);font-weight:400;
  font-size:clamp(30px,3.8vw,46px);line-height:1.12;letter-spacing:-.035em;
}
.slm-app.slm-preset-open-pivot .slm-catalog-copy p{color:var(--op-muted);font-size:14px;line-height:1.8}
.slm-app.slm-preset-open-pivot .slm-catalog-stat{
  flex:0 0 108px;width:108px;height:auto;min-height:80px;padding:12px;border:1px solid var(--op-line);
  border-radius:8px;background:white;box-shadow:none;
}
.slm-app.slm-preset-open-pivot .slm-catalog-stat strong{color:var(--op-primary);font-size:30px}
.slm-app.slm-preset-open-pivot .slm-catalog-stat span{color:var(--op-muted);font-size:9px;line-height:1.5}
.slm-app.slm-preset-open-pivot .slm-course-search input{border-color:var(--op-line);border-radius:7px;box-shadow:none}
.slm-app.slm-preset-open-pivot .slm-course-search input:focus{border-color:var(--op-primary);outline:2px solid #362c6635}
.slm-app.slm-preset-open-pivot .slm-catalog-account{
  border-color:var(--op-line);border-radius:7px;color:var(--op-primary)!important;background:white;font-size:12px;
}
.slm-app.slm-preset-open-pivot.slm-dashboard .slm-eyebrow{color:var(--op-primary)}
.slm-app.slm-preset-open-pivot .slm-dashboard-section-head>strong{
  color:var(--op-primary)!important;background:var(--op-soft)!important;border-color:var(--op-line);
}
body.slm-open-pivot-page .slm-op-account-eyebrow{color:white}
@media(max-width:900px){
  .slm-app.slm-preset-open-pivot .slm-course-grid,
  .slm-app.slm-preset-open-pivot.slm-card-embed .slm-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:620px){
  .slm-app.slm-preset-open-pivot .slm-course-grid,
  .slm-app.slm-preset-open-pivot.slm-card-embed .slm-course-grid{grid-template-columns:1fr;gap:20px}
  .slm-app.slm-preset-open-pivot .slm-card-body{padding:23px 22px}
  .slm-app.slm-preset-open-pivot .slm-card-body h3{font-size:24px}
  .slm-app.slm-preset-open-pivot .slm-catalog-hero{padding:28px 24px}
  .slm-app.slm-preset-open-pivot .slm-catalog-stat{display:inline-flex;flex-direction:row;gap:8px;min-height:0;width:auto;margin-top:20px}
  .slm-app.slm-preset-open-pivot .slm-catalog-stat strong{font-size:22px}
  .slm-app.slm-preset-open-pivot .slm-catalog-stat span{margin:0;max-width:none}
}
/* Narrow embeds must adapt even on a wide desktop screen. */
@container slm-cards (max-width:900px){
  .slm-app.slm-preset-open-pivot.slm-card-embed .slm-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@container slm-cards (max-width:620px){
  .slm-app.slm-preset-open-pivot.slm-card-embed .slm-course-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .slm-app.slm-preset-open-pivot .slm-course-card,
  .slm-app.slm-preset-open-pivot .slm-course-card :is(a,button){transition:none}
  .slm-app.slm-preset-open-pivot .slm-course-card:hover{transform:none}
}

/* Theme font and palette also reach controls portaled outside the LMS shell. */
body.slm-open-pivot-page{--slm-brand:#362c66;--slm-accent:#597b7c;--slm-soft:#f5f2fa;--slm-ink:#373e48;--slm-muted:#687177;--slm-button:#362c66}
body.slm-open-pivot-page :is(.slm-app,.slm-outline-portaled,.slm-sidebar-reopen,.slm-floating-next,.slm-floating-prev,.slm-back-top,.slm-notes-root){font-family:inherit!important}
body.slm-open-pivot-page :is(.slm-app h1,.slm-app h2,.slm-app h3,.slm-app h4){font-family:inherit!important}
.slm-app.slm-preset-open-pivot :is(.slm-card-progress>i>b,.slm-side-progress b,.slm-home-progress b){background:#597b7c}
body.slm-open-pivot-page .slm-notes-head h2{color:#373e48}
body.slm-open-pivot-page .slm-notes-trigger{border-color:#ded7ec!important}
body.slm-open-pivot-page .slm-notes-trigger span{background:#f5f2fa}
body.slm-open-pivot-page .slm-notes-body textarea:focus{box-shadow:0 0 0 3px #362c6625}
