/* MSID public identity — canonical Aubergine / Lime / Ivory runtime layer. */

html,body,#page,.site,.site-content,.content-area,.site-main,main{
  background:var(--msid-white);
  background-image:none;
  color:var(--msid-text);
}

/* Header */
#site-header.msid-learning-header{
  background:var(--msid-white);
  border-bottom:1px solid var(--msid-line);
  box-shadow:none;
}
#site-header :is(a,button,input){font-family:inherit}
#site-header .msid-learning-nav a,#site-header .msid-header-link{color:var(--msid-ink)}
#site-header .msid-header-primary{background:var(--msid-aubergine);color:var(--msid-ivory);border-color:var(--msid-aubergine)}#site-header .msid-header-search{background:var(--msid-white);border-color:var(--msid-line-strong)}
#site-header .msid-header-search input{background:var(--msid-white);color:var(--msid-ink)}
#site-header .msid-header-search button{background:var(--msid-white);color:var(--msid-ink)}

/* White page canvases */
body:not(.page-template-page-dashboard) :is(
  .mc-section,.mc-proof,.mc-categories,.mc-featured-courses,.mc-trainers,.mc-institutions,.mc-career-section,.mc-discovery,
  .academy-section,.academy-soft-section,.academy-discovery,.academy-courses-section,.academy-how-section,
  .tk-cat-icons-bar,.tk-filters-bar,.tk-active-filters,.archive-content,.section,.featured-main,
  .profile-facts,.profile-anchor-nav,.profile-layout,.course-facts-band,.course-decision-layout,.course-related-section,
  .sp-shell,.sp-section,.sp-body,.sp-content,.sp-directory,.sp-types-section,.sp-subjects-wrap,.sp-grade-tabs-wrap,.sp-filters-bar,
  .msid-auth-page,.msid-auth-entry-page,.msid-auth-shell,.page-entry-content,.entry-content,.page-content
){
  background:var(--msid-white);
  background-image:none;
}

/* Hero outer shell is always white. */
body.archive .tk-dir-hero,body.tax-tk_inst_type .tk-tax-hero,body.single-tk_course .course-decision-hero,body.single-tk_institution .profile-hero,body .sp-hero{
  background:var(--msid-white);
  background-image:none;
  box-shadow:none;
  border-color:transparent;
}
body :is(.tk-dir-hero,.tk-tax-hero,.course-decision-hero,.profile-hero,.sp-hero)::before,body :is(.tk-dir-hero,.tk-tax-hero,.course-decision-hero,.profile-hero,.sp-hero)::after,.sp-hero-pattern{content:none;display:none}

/* Visible hero / CTA panels use the brand Aubergine surface. */
body.archive .tk-dir-hero>.container,body.tax-tk_inst_type .tk-tax-hero>.container,body.single-tk_course .course-decision-hero-inner,body.single-tk_institution .profile-hero-frame,body .sp-hero>.container,.mc-final-cta-inner,.academy-final-cta-inner,.tac-inner,.sp-callout{
  background:linear-gradient(135deg,var(--msid-aubergine-dark),var(--msid-aubergine));
  background-image:linear-gradient(135deg,var(--msid-aubergine-dark),var(--msid-aubergine));
  color:var(--msid-ivory);
  box-shadow:none;
}
body.archive .tk-dir-hero>.container :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,li,dt,dd,label),body.tax-tk_inst_type .tk-tax-hero>.container :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,li,dt,dd,label),body.single-tk_course .course-decision-hero-inner :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,li,dt,dd,label),body.single-tk_institution .profile-hero-frame :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,li,dt,dd,label),body .sp-hero>.container :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,li,dt,dd,label),.mc-final-cta-inner :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small),.academy-final-cta-inner :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small),.tac-inner :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small),.sp-callout :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small){color:var(--msid-white);text-shadow:none}

/* White components nested in dark heroes. */
:is(.tdh-search,.profile-person-card,.profile-org-card,.profile-person-media,.profile-org-cover,.course-hero-media,.course-media-placeholder,.sp-hstat,.academy-search-shell){
  background:var(--msid-white);background-image:none;color:var(--msid-ink)
}
:is(.tdh-search,.profile-person-card,.profile-org-card,.course-hero-media,.course-media-placeholder,.sp-hstat) :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,input){color:var(--msid-ink)}

/* Cards */
:is(.course-card,.trainer-card,.inst-card,.inst-card-modern,.institution-card,.teacher-card,
.profile-section,.profile-action-card,.profile-side-card,.profile-course-card,.profile-trainer-card,
.course-section,.course-outcome,.course-fit-card,.course-provider-card,.course-module,.course-enroll-card,
.review-card,.reviews-summary,.add-review-card,.sp-type-card,.sp-lang-card,.sp-inst-card,.sp-kinder-card,.sp-trainer-card,.tk-empty-state){
  background:var(--msid-white);
  color:var(--msid-ink);
  border-color:var(--msid-line);
  box-shadow:none;
}
:is(.course-card,.trainer-card,.inst-card,.institution-card){transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
:is(.course-card,.trainer-card,.inst-card,.institution-card):hover{
  transform:translateY(-3px);
  border-color:var(--msid-subtle);
  box-shadow:var(--msid-shadow-hover);
}
body:not(.page-template-page-dashboard) :is(.course-card,.trainer-card,.inst-card,.institution-card,.profile-section,.profile-action-card,.profile-side-card,.course-section,.course-enroll-card,.review-card,.sp-type-card,.sp-lang-card,.sp-inst-card,.sp-kinder-card,.sp-trainer-card) :is(h1,h2,h3,h4,h5,h6,a,strong){color:var(--msid-ink);text-shadow:none}
body:not(.page-template-page-dashboard) :is(.course-card,.trainer-card,.inst-card,.institution-card,.profile-section,.profile-action-card,.profile-side-card,.course-section,.course-enroll-card,.review-card) :is(p,small,li,dt,dd){color:var(--msid-text)}

/* Course imagery and card rhythm */
.course-card{display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:var(--msid-radius-control)}
.course-card .course-thumb{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:16/9;overflow:hidden;background:var(--msid-white);border-radius:0}
.course-card .course-thumb img,.mc-course-grid .course-thumb img,.mc-catalog-grid .course-thumb img,.profile-course-media img,body.single-tk_course .course-hero-media img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:none
}
.course-card .course-body{display:flex;flex:1;flex-direction:column;padding:16px}
.course-card .course-title{margin:8px 0 10px;font-size:1.04rem;line-height:1.5}
.course-card .course-footer{margin-top:auto}
.course-card .course-meta{display:flex;flex-wrap:wrap;gap:6px}
.course-card .tag{background:var(--msid-white);color:var(--msid-ink);border:1px solid var(--msid-line);box-shadow:none}

/* Trainer cards */
.trainer-card{height:100%}
.trainer-card .btn-book,.trainer-card .btn-book-outline{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;margin:0}
.trainer-card .trainer-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:auto}

/* Filter system: labels stay black in every state. */
.tk-cat-icons-bar,.tk-filters-bar,.tk-active-filters,.sp-filters-bar,.mc-filter-bar{background:var(--msid-white);background-image:none;backdrop-filter:none;box-shadow:none}
:is(.tfb-btn,.tfb-sort,.tfb-clear-btn,.tfb-opt,.tfb-count-lbl,.tcib-item,.front-filter-select,.front-filter-search,.front-filter-reset,.mc-filter-search,.fp-fsel,.fp-fpill,.filter-chip,.category-chip,.chip,.pill,.sp-subject-pill,.sp-grade-tab,.taf-chip),#active-chips>*{
  background:var(--msid-white);
  color:var(--msid-ink);
  -webkit-text-fill-color:var(--msid-ink);
}
:is(.tfb-btn,.tfb-sort,.tfb-clear-btn,.tfb-opt,.tcib-item,.front-filter-select,.front-filter-search,.front-filter-reset,.mc-filter-search,.fp-fsel,.fp-fpill,.filter-chip,.category-chip,.chip,.pill,.sp-subject-pill,.sp-grade-tab,.taf-chip):is(:hover,:focus,:focus-visible,.open,.active,.on,.has-selection),#active-chips>*:is(:hover,:focus,.active,.on,.is-active){
  background:var(--msid-white);color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink);border-color:var(--msid-aubergine)
}
:is(.tk-filters-bar,.tk-active-filters,.sp-filters-bar,.mc-filter-bar,.tk-cat-icons-bar) :is(.tfb-btn,.tfb-sort,.tfb-clear-btn,.tfb-opt,.tfb-dd,.tcib-item,.front-filter-select,.front-filter-search,.mc-filter-search,.fp-fsel,.fp-fpill,.filter-chip,.category-chip,.chip,.pill,.sp-subject-pill,.sp-grade-tab,.taf-chip) :is(span,strong,small,label,b,i,em){color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink)}
.tfb-dd,.tfb-dd-scroll,.tfb-opt,.tfb-opt:hover,.tfb-opt:focus,.tfb-opt:has(input:checked){background:var(--msid-white);color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink)}
.tfb-dd :is(label,span,strong,small,b,i,em){color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink)}
select,select option,input,textarea,.form-input{background:var(--msid-white);color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink)}
input::placeholder,textarea::placeholder{color:var(--msid-muted);opacity:1}

/* Buttons */
:is(.btn-primary,.btn-register,.btn-submit,.profile-btn-dark,.course-enroll-primary,.btn-book,.mc-btn-primary,.academy-btn-primary){background:var(--msid-aubergine);color:var(--msid-ivory);border-color:var(--msid-aubergine)}
:is(.btn-primary,.btn-register,.btn-submit,.profile-btn-dark,.course-enroll-primary,.btn-book,.mc-btn-primary,.academy-btn-primary):hover{background:var(--msid-aubergine-hover);color:var(--msid-ivory);border-color:var(--msid-aubergine-hover)}
:is(.btn-outline,.btn-white,.profile-btn-white,.profile-btn-light,.course-enroll-secondary,.btn-book-outline,.mc-btn-outline,.academy-btn-secondary,.mc-btn-light){background:var(--msid-surface);color:var(--msid-aubergine);border-color:var(--msid-aubergine-line)}
:is(.btn-outline,.btn-white,.profile-btn-white,.profile-btn-light,.course-enroll-secondary,.btn-book-outline,.mc-btn-outline,.academy-btn-secondary,.mc-btn-light):hover{background:var(--msid-lime-soft);color:var(--msid-aubergine);border-color:var(--msid-lime)}

/* Profile/course section counters */
.course-section-head>span,.profile-section-head>span{background:var(--msid-aubergine);color:var(--msid-ivory);border-color:var(--msid-aubergine)}
.course-hero-kickers>span,.course-hero-meta span,.profile-kickers span,.profile-meta-pills span{background:var(--msid-aubergine);color:var(--msid-ivory);border-color:rgba(255,253,248,.72)}
.course-hero-kickers .course-status,.profile-kickers .is-verified{background:var(--msid-white);color:var(--msid-ink);border-color:var(--msid-white)}

/* Archive CTA */
.tk-archive-cta{background:var(--msid-white);padding:0 0 44px}
.tac-inner{border:2px solid var(--msid-aubergine);border-radius:var(--msid-radius-panel);padding:26px 30px}
.tac-title{color:var(--msid-white)}.tac-sub{color:rgba(255,255,255,.78)}
.tk-archive-cta .btn{background:var(--msid-lime);color:var(--msid-aubergine-dark);border-color:var(--msid-lime)}


/* Generic page header */
body.page:not(.home):not(.page-template-page-dashboard):not(.page-template-page-login):not(.page-template-page-register) .page-entry-header{
  background:linear-gradient(135deg,var(--msid-aubergine-dark),var(--msid-aubergine));border:2px solid var(--msid-aubergine);border-radius:var(--msid-radius-panel);padding:24px 28px;margin:0 0 28px
}
body.page:not(.home):not(.page-template-page-dashboard):not(.page-template-page-login):not(.page-template-page-register) .page-entry-title{color:var(--msid-white);margin:0}

/* Accessibility */
.msid-skip-link{position:fixed;top:12px;right:12px;z-index:99999;padding:10px 14px;background:var(--msid-aubergine);color:var(--msid-ivory);border-radius:var(--msid-radius-sm);transform:translateY(-150%);transition:transform .15s ease}
.msid-skip-link:focus{transform:translateY(0)}
:focus-visible{outline:2px solid var(--msid-ink);outline-offset:3px}
body :is(.profile-hero-frame,.course-decision-hero-inner,.tac-inner) :focus-visible{outline-color:var(--msid-white)}

@media(max-width:900px){
  body.archive .tk-dir-hero>.container,body.tax-tk_inst_type .tk-tax-hero>.container,body.single-tk_course .course-decision-hero-inner,body.single-tk_institution .profile-hero-frame,body .sp-hero>.container{border-radius:var(--msid-radius-panel)}
  .tac-inner{align-items:flex-start}
}
@media(max-width:640px){
  .course-card .course-body{padding:14px}
  .tac-inner{padding:22px 18px;border-radius:var(--msid-radius-card)}
  .tk-archive-cta .btn{width:100%;justify-content:center}
}

/* Journal / generic posts index */
.msid-journal,.msid-journal-body{background:var(--msid-white)}
.msid-journal-hero{padding:34px 0 18px;background:var(--msid-white)}
.msid-journal-hero-inner{padding:34px clamp(22px,4vw,44px);border-radius:var(--msid-radius-panel);background:linear-gradient(135deg,var(--msid-aubergine-dark),var(--msid-aubergine));color:var(--msid-ivory)}
.msid-journal-hero-inner span{display:block;margin-bottom:9px;color:rgba(255,255,255,.72);font-size:var(--msid-type-ui);font-weight:800}
.msid-journal-hero-inner h1{margin:0 0 8px;color:var(--msid-white);font-size:clamp(2rem,4vw,3.2rem);font-weight:900}
.msid-journal-hero-inner p{max-width:680px;margin:0;color:rgba(255,255,255,.82)}
.msid-journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.msid-journal-card{overflow:hidden;border:1px solid var(--msid-line);border-radius:var(--msid-radius-card);background:var(--msid-white);color:var(--msid-ink)}
.msid-journal-media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--msid-white)}
.msid-journal-media img{width:100%;height:100%;object-fit:cover}
.msid-journal-card-body{padding:18px}
.msid-journal-card time{display:block;margin-bottom:7px;color:var(--msid-muted);font-size:var(--msid-type-sm)}
.msid-journal-card h2{margin:0 0 8px;font-size:1.08rem;line-height:1.5}.msid-journal-card h2 a{color:var(--msid-ink)}
.msid-journal-card p{margin:0 0 14px;color:var(--msid-text-secondary);font-size:var(--msid-type-ui);line-height:1.8}
.msid-journal-link{color:var(--msid-ink);font-size:var(--msid-type-ui);font-weight:900;border-bottom:1px solid var(--msid-ink)}
.msid-journal-pagination{margin-top:28px;text-align:center}
@media(max-width:900px){.msid-journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.msid-journal-grid{grid-template-columns:1fr}.msid-journal-hero-inner{border-radius:var(--msid-radius-panel)}}

/* Learner actions: save courses and follow trainers/institutions. */
.msid-user-action{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--msid-aubergine);
  border-radius:var(--msid-radius-control);
  background:var(--msid-white);
  color:var(--msid-ink);
  -webkit-text-fill-color:var(--msid-ink);
  font:inherit;
  font-size:var(--msid-type-ui);
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.msid-user-action:hover,.msid-user-action:focus-visible{background:var(--msid-lime);color:var(--msid-aubergine-dark);-webkit-text-fill-color:var(--msid-aubergine-dark)}
.msid-user-action.is-active{background:var(--msid-lime);color:var(--msid-aubergine-dark);-webkit-text-fill-color:var(--msid-aubergine-dark);border-color:var(--msid-lime-hover)}
.msid-user-action:disabled{opacity:.58;cursor:wait}
.msid-user-action.has-error{outline:2px solid var(--msid-ink);outline-offset:2px}
.course-footer .msid-card-action{min-height:34px;padding:6px 10px;font-size:var(--msid-type-sm)}
.trainer-actions .msid-card-action{width:100%;min-height:46px;margin:0}
.inst-card-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.inst-card-actions .msid-card-action{min-height:40px;white-space:nowrap}
.course-enroll-save{width:100%;min-height:48px;margin-top:8px}
.profile-hero-actions .msid-user-action.profile-btn{min-height:44px}
@media(max-width:640px){
  .inst-card-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;margin:0}
  .inst-card-actions .inst-card-link,.inst-card-actions .msid-card-action{width:100%;min-width:0}
  .course-footer{gap:10px;align-items:flex-end}
  .course-footer-tools{max-width:55%}
}


/* Brand action buttons: Aubergine primary, Lime reversible, with explicit contrast. */
.msid-user-action,a.msid-user-action,button.msid-user-action,.course-card .msid-save-course-action,.trainer-card .msid-follow-action,.inst-card .msid-follow-action,.profile-hero-actions .msid-follow-action,.course-enroll-card .msid-save-course-action,.course-enroll-save,.btn-book,.course-enroll-primary,.inst-card-modern .inst-card-link{
  background:var(--msid-aubergine);
  color:var(--msid-ivory);
  -webkit-text-fill-color:var(--msid-ivory);
  border-color:var(--msid-aubergine);
  text-shadow:none;
}
.msid-user-action:hover,.msid-user-action:focus-visible,.msid-user-action.is-active,a.msid-user-action:hover,a.msid-user-action:focus-visible,button.msid-user-action:hover,button.msid-user-action:focus-visible,.btn-book:hover,.btn-book:focus-visible,.course-enroll-primary:hover,.course-enroll-primary:focus-visible,.inst-card-modern .inst-card-link:hover,.inst-card-modern .inst-card-link:focus-visible{
  background:var(--msid-aubergine-hover);
  color:var(--msid-ivory);
  -webkit-text-fill-color:var(--msid-ivory);
  border-color:var(--msid-aubergine-hover);
}
.msid-user-action *,.btn-book *,.course-enroll-primary *,.inst-card-modern .inst-card-link *{
  color:inherit;
  -webkit-text-fill-color:currentColor;
}

/* Header 4.0.7 — single-row resilient layout.
   One flex row prevents account/search tools from dropping over the hero. */
#site-header.msid-learning-header{
  background:var(--msid-white);
  border-bottom:1px solid var(--msid-line-soft);
  box-shadow:none;
  height:auto;
  min-height:76px;
  overflow:visible;
}
body.admin-bar #site-header.msid-learning-header{top:32px}
#site-header > .container{
  max-width:1760px;
  width:100%;
  padding-inline:28px;
}
#site-header .msid-learning-header-inner{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  min-height:76px;
  height:76px;
  gap:28px;
  position:relative;
  direction:rtl;
  overflow:visible;
}
#site-header .msid-learning-logo{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  margin:0;
  white-space:nowrap;
  order:1;
}
#site-header .msid-brand-logo{
  display:block;
  width:auto;
  height:46px;
  object-fit:contain;
}
#site-header .msid-learning-logo:hover .msid-brand-logo{opacity:.92;}
#site-header .msid-learning-nav{
  flex:1 1 auto;
  min-width:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:static;
  inset:auto;
  transform:none;
  margin:0;
  order:2;
  white-space:nowrap;
}
#site-header .msid-learning-nav ul{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:34px;
  margin:0;
  padding:0;
}
#site-header .msid-learning-nav ul li{margin:0;padding:0}
#site-header .msid-learning-nav ul li a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--msid-text);
  -webkit-text-fill-color:var(--msid-text);
  font-size:var(--msid-type-body-sm);
  font-weight:750;
  line-height:1.2;
  text-decoration:none;
  position:relative;
}
#site-header .msid-learning-nav ul li a::after{
  content:"";
  position:absolute;
  right:0;
  bottom:2px;
  width:0;
  height:2px;
  background:var(--msid-lime);
  transition:width .18s ease;
}
#site-header .msid-learning-nav ul li a:hover::after,#site-header .msid-learning-nav ul li.current-menu-item>a::after{width:100%}
#site-header .msid-learning-nav ul li.current-menu-item>a{color:var(--msid-ink);-webkit-text-fill-color:var(--msid-ink)}

#site-header .msid-header-left-tools{
  flex:0 1 auto;
  min-width:0;
  max-width:min(760px,48vw);
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:0;
  order:3;
  direction:rtl;
  white-space:nowrap;
}#site-header .msid-header-search{
  position:relative;
  flex:1 1 310px;
  width:310px;
  min-width:200px;
  max-width:340px;
  height:44px;
  display:flex;
  align-items:center;
  border:1px solid var(--msid-line);
  border-radius:var(--msid-radius-sm);
  background:var(--msid-white);
  box-shadow:none;
  overflow:visible;
}
#site-header .msid-header-search:focus-within{border-color:var(--msid-aubergine);box-shadow:0 0 0 1px var(--msid-ink)}
#site-header .msid-header-search input{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  height:100%;
  padding-inline:14px;
  font-size:var(--msid-type-meta);
  color:var(--msid-ink);
  -webkit-text-fill-color:var(--msid-ink);
}
#site-header .msid-header-search button{
  flex:0 0 46px;
  width:46px;
  min-width:46px;
  height:100%;
  border:0;
  border-right:1px solid var(--msid-line);
  background:var(--msid-white);
  color:var(--msid-ink);
}
#site-header .msid-learning-actions{
  flex:0 0 auto;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  margin:0;
  direction:rtl;
  white-space:nowrap;
}
#site-header .msid-header-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 8px;
  color:var(--msid-ink);
  -webkit-text-fill-color:var(--msid-ink);
  font-size:var(--msid-type-meta);
  font-weight:750;
  text-decoration:none;
}
#site-header .msid-header-link:hover{text-decoration:underline;text-underline-offset:4px}
#site-header .msid-header-outline,#site-header .msid-header-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:var(--msid-radius-sm);
  font-size:var(--msid-type-meta);
  font-weight:800;
}
#site-header .menu-toggle{margin:0;flex:0 0 auto}

@media(max-width:1500px){
  #site-header > .container{padding-inline:22px}
  #site-header .msid-learning-header-inner{gap:22px}
  #site-header .msid-learning-nav ul{gap:24px}
  #site-header .msid-header-search{width:250px;max-width:250px;min-width:180px}
  #site-header .msid-header-left-tools{max-width:620px}
}
@media(max-width:1280px){
  #site-header .msid-header-search{display:none}
  #site-header .msid-learning-header-inner{gap:18px}
  #site-header .msid-learning-nav ul{gap:20px}
  #site-header .msid-header-left-tools{max-width:none}
}
@media(max-width:1080px){
  #site-header .msid-learning-header-inner{min-height:70px;height:70px;gap:14px}#site-header .msid-learning-logo{margin-inline-end:0}
  #site-header .msid-header-left-tools{margin-inline-start:auto;max-width:none}
  #site-header .msid-learning-actions{display:flex}
  #site-header .menu-toggle{display:flex}
}
@media(max-width:782px){
  body.admin-bar #site-header.msid-learning-header{top:46px}
}
@media(max-width:700px){
  #site-header > .container{padding-inline:16px}
  #site-header .msid-learning-header-inner{min-height:66px;height:66px}
  #site-header .msid-brand-logo{height:40px}
  #site-header .msid-learning-actions>.msid-header-link,#site-header .msid-learning-actions>.msid-header-outline,#site-header .msid-learning-actions>.msid-header-primary{display:none}
}

/* Course section headings after removing numeric markers. */
body.single-tk_course .course-section-head{
  display:block;
  margin-bottom:24px;
  direction:rtl;
}
body.single-tk_course .course-section-head>div{
  display:block;
  width:100%;
  padding:0;
  margin:0;
}
body.single-tk_course .course-section-head>span{display:none}
@media(max-width:640px){body.single-tk_course .course-section-head{margin-bottom:18px}}


/* Reusable reveal state; JS only toggles classes. */
.msid-reveal{opacity:0;transform:translateY(18px);transition:opacity .4s ease,transform .4s ease}
.msid-reveal[data-reveal-step="1"]{transition-delay:.07s}
.msid-reveal[data-reveal-step="2"]{transition-delay:.14s}
.msid-reveal[data-reveal-step="3"]{transition-delay:.21s}
.msid-reveal.animated{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.msid-reveal{opacity:1;transform:none;transition:none}}

/* 6.3.3 — Articles index additions. */
.msid-journal-categories{padding:0 0 4px;background:var(--msid-white)}
.msid-journal-category-list{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:thin}
.msid-journal-category-list a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 14px;white-space:nowrap;border:1px solid var(--msid-line);border-radius:var(--msid-radius-pill);background:var(--msid-white);color:var(--msid-ink);font-size:var(--msid-type-ui);font-weight:800;text-decoration:none}
.msid-journal-category-list a:hover,.msid-journal-category-list a.is-active{background:var(--msid-aubergine);border-color:var(--msid-aubergine);color:var(--msid-white)}
.msid-journal-section-head{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:20px}
.msid-journal-section-head h2{margin:0;color:var(--msid-ink);font-size:clamp(1.35rem,2vw,1.7rem);font-weight:900}
.msid-journal-section-head p{margin:3px 0 0;color:var(--msid-muted);font-size:var(--msid-type-ui)}
.msid-journal-card{display:flex;flex-direction:column;min-width:0;height:100%}
.msid-journal-card-body{display:flex;flex-direction:column;flex:1}
.msid-journal-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px;color:var(--msid-muted);font-size:var(--msid-type-sm)}
.msid-journal-card-meta time{margin:0}.msid-journal-card-meta span:before{content:"•";margin-left:8px;color:var(--msid-line-strong)}
.msid-journal-card h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msid-journal-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.msid-journal-link{margin-top:auto;align-self:flex-start;text-decoration:none}
.msid-journal-media{display:grid;place-items:center}
.msid-journal-media-fallback{font-size:1.35rem;font-weight:900;color:var(--msid-muted);letter-spacing:.04em}
@media(max-width:600px){.msid-journal-hero{padding-top:20px}.msid-journal-hero-inner{padding:26px 22px}.msid-journal-body.section{padding-top:24px}}

.msid-journal-current-filter{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 14px;white-space:nowrap;border-radius:var(--msid-radius-pill);background:var(--msid-aubergine);color:var(--msid-white);font-size:var(--msid-type-ui);font-weight:800}
.msid-journal-archive-description p{max-width:720px;margin:0;color:rgba(255,255,255,.82)}

/* 6.5.4 — compact footer, universal search, and image-fill hardening. */
/* Search placeholders: softer and less visually heavy. */
.mc-filter-search input,.fp-search-box input,.msid-search-page-form input{color:#2d3845;}
.mc-filter-search input::placeholder,.fp-search-box input::placeholder,.msid-search-page-form input::placeholder{
  color:rgba(89,101,115,.62);
  opacity:1;
  font-weight:550;
}

/* Remove inline-image baselines and make media fill its allocated card area. */
:is(.sp-tc-media,.course-thumb,.course-editorial-media,.trainer-card-media,.msid-book-cover,.msid-home-article-media){
  position:relative;
  overflow:hidden;
  line-height:0;
}
:is(.sp-tc-media,.course-thumb,.course-editorial-media,.trainer-card-media,.msid-book-cover,.msid-home-article-media)>img,:is(.sp-tc-media,.course-thumb,.course-editorial-media,.trainer-card-media,.msid-book-cover,.msid-home-article-media) img{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  margin:0;
  padding:0;
}
.sp-tc-media-fallback,.trainer-card-placeholder,.msid-book-cover-fallback{position:absolute;inset:0;width:100%;height:100%;}

/* Universal mixed search dropdown. */
[data-msid-universal-search]{position:relative;}
.msid-universal-search-panel{
  position:absolute;z-index:1200;top:calc(100% + 8px);right:0;left:0;min-width:min(520px,92vw);max-height:min(520px,72vh);overflow:auto;
  padding:8px;border:1px solid #dfe5eb;border-radius:18px;background:#fff;box-shadow:0 22px 60px rgba(5,19,35,.16);color:#111827;text-align:right;
}
.msid-universal-search-panel[hidden]{display:none !important;}
.msid-universal-result-list{display:grid;gap:4px;}
.msid-universal-result{display:grid;grid-template-columns:46px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px;border-radius:13px;color:#111827;text-decoration:none;}
.msid-universal-result:hover,.msid-universal-result:focus-visible{background:#f4f8fb;color:#111827;}
.msid-universal-result-media{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;overflow:hidden;background:#edf2f6;color:#526170;font-weight:900;line-height:1;}
.msid-universal-result-media img{width:100%;height:100%;display:block;object-fit:cover;}
.msid-universal-result-copy{min-width:0;display:grid;gap:2px;line-height:1.25;}
.msid-universal-result-type{width:max-content;padding:2px 6px;border-radius:999px;background:#e9f8fd;color:#0877a1;font-size:.62rem;font-weight:850;}
.msid-universal-result-copy strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111827;}
.msid-universal-result-copy small{font-size:.69rem;color:#788491;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.msid-universal-result-arrow{color:#0d7ea8;font-weight:900;}
.msid-universal-search-all{display:flex;align-items:center;justify-content:center;min-height:40px;margin-top:6px;border-top:1px solid #edf1f4;color:#0b6f98;font-size:.78rem;font-weight:850;text-decoration:none;}
.msid-universal-loading,.msid-universal-empty{padding:16px 12px;color:#73808d;font-size:.8rem;text-align:center;}

/* Minimal footer requested for production navigation. */
.msid-footer-minimal{padding:26px 0 14px;background:linear-gradient(135deg,var(--msid-aubergine-dark),var(--msid-aubergine));color:var(--msid-ivory);}
.msid-footer-minimal-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-bottom:18px;}
.msid-footer-minimal .msid-learning-footer-brand{display:flex;align-items:center;gap:18px;min-width:0;}
.msid-footer-minimal .footer-logo{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:12px;background:#fff;line-height:0;}
.msid-footer-minimal .msid-brand-logo--footer{width:auto;height:34px;display:block;object-fit:contain;}
.msid-footer-minimal .msid-learning-footer-brand p{max-width:560px;margin:0;color:rgba(255,255,255,.72);font-size:.82rem;line-height:1.7;}
.msid-footer-minimal-links{display:flex;align-items:center;gap:18px;white-space:nowrap;}
.msid-footer-minimal-links a{color:rgba(255,255,255,.86);font-size:.8rem;font-weight:750;text-decoration:none;}
.msid-footer-minimal .msid-learning-footer-bottom{min-height:0;margin:0;padding:12px 0 0;border-top:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.55);font-size:.7rem;}

/* Mixed search results page. */
.msid-universal-search-page{background:#fff;}
.msid-search-page-head{padding:44px 0 30px;background:linear-gradient(135deg,#08111f,#0b2945);color:#fff;}
.msid-search-page-head span{color:rgba(255,255,255,.65);font-size:.8rem;font-weight:800;}
.msid-search-page-head h1{margin:8px 0 18px;color:#fff;font-size:clamp(1.7rem,4vw,2.8rem);}
.msid-search-page-form{position:relative;max-width:720px;display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:visible;}
.msid-search-page-form>input[type=search]{min-height:50px;padding:0 15px;border:0;border-radius:14px 0 0 14px;background:#fff;outline:0;}
.msid-search-page-form>button{min-width:92px;border-radius:0 14px 14px 0;background:#22bde8;color:#06101d;}
.msid-search-page-results{padding:34px 0 54px;}
.msid-search-result-group+.msid-search-result-group{margin-top:34px;}
.msid-search-result-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.msid-search-result-group-head h2{margin:0;font-size:1.25rem;}
.msid-search-result-group-head span{color:#7b8793;font-size:.78rem;}
.msid-search-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.msid-search-result-card{display:grid;grid-template-columns:72px minmax(0,1fr) 22px;align-items:center;gap:12px;min-height:92px;padding:10px;border:1px solid #e2e7ec;border-radius:18px;background:#fff;color:#111827;text-decoration:none;}
.msid-search-result-card-media{width:72px;height:72px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:#eef2f5;color:#6b7784;font-weight:900;}
.msid-search-result-card-media img{width:100%;height:100%;object-fit:cover;display:block;}
.msid-search-result-card-copy{min-width:0;display:grid;gap:4px;}
.msid-search-result-card-copy small{color:#0b82ad;font-size:.68rem;font-weight:850;}
.msid-search-result-card-copy strong{font-size:.9rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.msid-search-result-card-copy em{font-style:normal;color:#7a8590;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.msid-search-result-card-arrow{color:#0b82ad;font-weight:900;}

@media(max-width:900px){
  .msid-search-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .msid-footer-minimal-inner{align-items:flex-start;flex-direction:column;gap:16px;}
}
#site-header .msid-universal-search-panel-header{width:min(520px,90vw);min-width:0;right:auto;left:0;}

/* Header colour compatibility from 6.5.5 was superseded by css/system/chrome.css. */
.msid-mobile-header-search{display:none;}

/* 6.6.44 — production readiness: shared recovery states + motion safety. */
.msid-empty-state{
  grid-column:1/-1;
  width:min(620px,100%);
  margin:0 auto;
  padding:36px 24px;
  text-align:center;
  border:1px solid var(--msid-line,#e5e7eb);
  border-radius:20px;
  background:var(--msid-white,#fff);
  color:var(--msid-text-secondary,#64748b);
}
.msid-empty-state .msid-empty-state-icon{
  width:46px;height:46px;margin:0 auto 12px;display:grid;place-items:center;
  border-radius:50%;background:var(--msid-blue-soft,#e9f9fd);color:var(--msid-blue-dark,#007a9c);
  font-size:1.25rem;font-weight:900;
}
.msid-empty-state h3{margin:0;color:var(--msid-ink,#111827);font-size:1.12rem;line-height:1.45}
.msid-empty-state p{max-width:520px;margin:8px auto 0;color:var(--msid-text-secondary,#64748b);line-height:1.75}
.msid-empty-state-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px}
.msid-empty-state-actions .btn{min-height:40px;padding:8px 14px;border-radius:11px;font-size:.84rem}
@media(max-width:640px){
  .msid-empty-state{padding:28px 16px;border-radius:16px}
  .msid-empty-state-actions{display:grid;grid-template-columns:1fr;width:100%}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.screen-reader-text{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
.screen-reader-text:focus{
  width:auto!important;height:auto!important;clip:auto!important;white-space:normal!important;
}
