/*! Move on · Capçalera Aula — capçalera comuna de totes les pantalles de l'Aula Move On */

/* ---------- Capçalera ---------- */
.mo-bar{
  --mo-bg:#ffffff;--mo-line:#eee3cf;--mo-ink:#26302a;--mo-green:#245b1b;--mo-pill:#eaf7e6;
  --mo-act-bg:#245b1b;--mo-act-fg:#ffffff;--mo-hover:#f3faf0;--mo-coral:#c8586c;--mo-coral-bg:#fdeef1;
  position:relative!important;z-index:40;display:block!important;width:100%;margin:0!important;padding:0!important;
  background:var(--mo-bg)!important;border:0!important;border-bottom:1px solid var(--mo-line)!important;border-radius:0!important;
  box-shadow:none!important;color:var(--mo-ink);font:400 15px/1.2 Inter,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  text-align:left;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;box-sizing:border-box
}
html[data-mo-theme="dark"] .mo-bar{
  --mo-bg:#1f2721;--mo-line:#2f3a2e;--mo-ink:#e8efe6;--mo-green:#a6dc9c;--mo-pill:#232e24;
  --mo-act-bg:#a6dc9c;--mo-act-fg:#16301a;--mo-hover:#28332a;--mo-coral:#f3aebb;--mo-coral-bg:#3a2329
}
.mo-bar *,.mo-bar *::before,.mo-bar *::after{box-sizing:border-box}
.mo-bar [hidden]{display:none!important}
.mo-bar__in{display:flex!important;align-items:center;gap:16px;max-width:1120px;min-height:84px;margin:0 auto!important;padding:12px 16px!important}
.mo-bar__brand{display:inline-flex!important;align-items:center;flex:0 0 auto;margin:0!important;padding:0!important;border:0!important;background:none!important;text-decoration:none!important;box-shadow:none!important;line-height:0}
.mo-bar__brand img{display:block!important;height:56px!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
/* Mode fosc: el mateix logo, sense placa clara al darrere (com a la pàgina d'inici de la web) */
html[data-mo-theme="dark"] body #aula-root .ao-hd .ao-brand{background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
.mo-bar__prova{flex:0 0 auto;align-self:center;padding:5px 9px;border:1px solid #ee9fab;border-radius:999px;background:var(--mo-coral-bg);color:var(--mo-coral);font:700 10px/1 Poppins,sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.mo-bar__act{display:flex!important;align-items:center;gap:10px;margin-left:auto!important;flex:0 0 auto}

/* Idioma: pastilla segmentada, igual que la portada de l'Aula */
.mo-bar__lang{display:inline-flex!important;align-items:center;gap:0;height:44px;margin:0!important;padding:4px!important;border:0!important;border-radius:999px!important;background:var(--mo-pill)!important}
.mo-bar__lang button{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:36px;min-width:0;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--mo-ink)!important;font:600 13px/1 Poppins,sans-serif!important;letter-spacing:.02em;text-transform:none;box-shadow:none!important;cursor:pointer;transition:background-color .15s,color .15s}
.mo-bar__lang button:hover{background:var(--mo-hover)!important}
html:not([data-mo-lang="es"]) .mo-bar:not(.mo-en) .mo-bar__lang button[data-l="ca"],
html[data-mo-lang="es"] .mo-bar:not(.mo-en) .mo-bar__lang button[data-l="es"],
.mo-bar.mo-en .mo-bar__lang button[data-l="en"]{background:var(--mo-act-bg)!important;color:var(--mo-act-fg)!important}

/* «Torna a l'Aula» */
.mo-bar__home{display:inline-flex!important;align-items:center;gap:6px;height:44px;margin:0!important;padding:0 16px!important;border:1px solid var(--mo-line)!important;border-radius:999px!important;background:var(--mo-bg)!important;color:var(--mo-green)!important;font:600 13px/1 Poppins,sans-serif!important;text-decoration:none!important;white-space:nowrap;box-shadow:none!important;transition:background-color .15s}
.mo-bar__home:hover,.mo-bar__home:focus{background:var(--mo-hover)!important;color:var(--mo-green)!important;text-decoration:none!important}
.mo-bar__home svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mo-bar__home .mo-short{display:none}

/* Mode clar / fosc i botó de tancar */
.mo-bar__theme,.mo-bar__close{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:0;margin:0!important;padding:0!important;border:1px solid var(--mo-line)!important;border-radius:999px!important;background:var(--mo-bg)!important;color:var(--mo-ink)!important;box-shadow:none!important;cursor:pointer;transition:background-color .15s}
.mo-bar__theme:hover,.mo-bar__close:hover{background:var(--mo-hover)!important}
.mo-bar__theme svg,.mo-bar__close svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mo-bar__theme .mo-sun{display:none}
html[data-mo-theme="dark"] .mo-bar__theme .mo-moon{display:none}
html[data-mo-theme="dark"] .mo-bar__theme .mo-sun{display:block}

/* Textos segons l'idioma */
.mo-bar [data-mo-t="es"]{display:none}
html[data-mo-lang="es"] .mo-bar [data-mo-t="ca"]{display:none}
html[data-mo-lang="es"] .mo-bar [data-mo-t="es"]{display:inline}

.mo-bar a:focus-visible,.mo-bar button:focus-visible{outline:3px solid #f2a541!important;outline-offset:2px}

@media (max-width:700px){
  .mo-bar__in{min-height:60px;gap:10px;padding:8px 12px!important}
  .mo-bar__brand img{height:42px!important}
  .mo-bar__act{gap:6px}
  .mo-bar__lang{height:40px;padding:3px!important}
  .mo-bar__lang button{width:36px;height:34px;font-size:12px!important}
  .mo-bar__home{height:40px;padding:0 12px!important}
  .mo-bar__home .mo-long{display:none}
  .mo-bar__home .mo-short{display:inline}
  .mo-bar__theme,.mo-bar__close{width:40px;height:40px}
  .mo-bar__prova{display:none}
}
@media (max-width:380px){
  .mo-bar__in{gap:8px;padding:8px 10px!important}
  .mo-bar__brand img{height:36px!important}
  .mo-bar__act{gap:5px}
  .mo-bar__home{padding:0 10px!important}
  .mo-view .mo-bar__home .mo-short{display:none}
}
@media print{.mo-bar,.mo-view>.mo-bar{display:none!important}}

/* ---------- Visor a pantalla completa (activitats que s'obrien soles) ---------- */
html.mo-lock,html.mo-lock body{overflow:hidden!important}
.mo-view{position:fixed;left:0;right:0;bottom:0;top:var(--wp-admin--admin-bar--height,0px);z-index:99990;display:flex;flex-direction:column;background:#fdfaf4}
html[data-mo-theme="dark"] .mo-view{background:#161d17}
.mo-view>.mo-bar{flex:0 0 auto}
.mo-view__frame{display:block;flex:1 1 auto;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;background:transparent}
.mo-view--full{bottom:auto}
.mos-ce__frame.mo-full{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:calc(var(--wp-admin--admin-bar--height,0px) + var(--mo-bar-h,85px))!important;z-index:99991!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;aspect-ratio:auto!important;transform:none!important}
.mos-ce__frame.mo-full iframe{width:100%!important;height:100%!important;max-height:none!important;border:0!important;border-radius:0!important}

/* ---------- Elements que substitueix la capçalera comuna ---------- */
[data-mo-hide]{display:none!important}

/* ---------- Mode fosc de les pàgines que no en tenien ---------- */
html.mo-dk,html.mo-dk body{background-color:#161d17!important}
html.mo-dk input::placeholder,html.mo-dk textarea::placeholder{color:#8a968d!important}
