/* Dimau shared interface v1.0.0 — generated by build-shell.mjs. */
:root{--dm-font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--dm-ink:#061525;--dm-header:#0b2a4a;--dm-header-text:#f4f7fb;--dm-width:1168px;--dm-gutter:24px;--dm-row:72px;--dm-tap:44px;--dm-radius:10px}
@media(max-width:767px){:root{--dm-gutter:16px;--dm-row:64px}}
.dimau-owner-logo-frame,.dimau-logo-frame{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex:0 0 36px!important;padding:0!important;border:0!important;border-radius:20%!important;overflow:hidden!important;box-sizing:border-box!important;line-height:0!important;background:transparent!important}
img.dimau-owner-logo,.dimau-logo-frame>img{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;object-fit:contain!important;object-position:center!important;transform:none!important;transform-origin:center!important;filter:none!important;opacity:1!important;image-rendering:auto!important}
:is(#dimau-shell-utility,.bw-pill),:is(#dimau-shell-utility,.bw-share){min-height:44px!important;min-width:44px!important;height:auto!important;font:600 14px/1.35 var(--dm-font)!important;box-sizing:border-box!important;white-space:normal!important;box-shadow:none!important;animation:none!important}
:is(#dimau-shell-utility,.bw-pill) :is(#dimau-shell-utility,.bw-long){white-space:normal!important}:is(#dimau-shell-utility,.bw-pill)::before,:is(#dimau-shell-utility,.bw-pill)::after{animation:none!important}:is(#dimau-shell-utility,.bw-own-line){box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;width:calc(100% - 2 * var(--dm-gutter))!important;max-width:1120px!important;margin:0 auto 12px!important;padding:0!important}:is(#dimau-shell-utility,.bw-own-line) :is(#dimau-shell-utility,.bw-pill){flex:0 1 auto!important;max-width:100%!important}:is(#dimau-shell-utility,.bw-own-line) :is(#dimau-shell-utility,.bw-share){flex:0 0 auto!important}:is(#dimau-shell-utility,.bw-share) svg{flex-shrink:0}:is(#dimau-shell-utility,.bw-pill):focus-visible,:is(#dimau-shell-utility,.bw-share):focus-visible{outline:3px solid #3ee0c8!important;outline-offset:3px!important}
:is(#dimau-shell-utility,.bw-pill):is(#dimau-shell-utility,.bw-own-line){width:fit-content!important;max-width:calc(100% - 2 * var(--dm-gutter))!important;margin-left:max(var(--dm-gutter),calc((100% - 1120px) / 2))!important;margin-right:auto!important}
@media(max-width:767px){:is(#dimau-shell-utility,.bw-own-line){margin-bottom:8px!important}:is(#dimau-shell-utility,.bw-own-line) :is(#dimau-shell-utility,.bw-pill){flex:1 1 0!important;min-width:0!important}:is(#dimau-shell-utility,.bw-share-txt){display:inline!important}}
@media(max-width:359px){:is(#dimau-shell-utility,.bw-own-line) :is(#dimau-shell-utility,.bw-pill){flex:1 1 0!important;min-width:0!important}:is(#dimau-shell-utility,.bw-share-txt){display:none!important}:is(#dimau-shell-utility,.bw-share){padding:0 12px!important}}
@media(prefers-reduced-motion:reduce){:is(#dimau-shell-utility,.bw-pill),:is(#dimau-shell-utility,.bw-pill)::before,:is(#dimau-shell-utility,.bw-pill)::after{animation:none!important;transition:none!important}}
:is(#dimau-shell-utility,.bw-share){width:auto!important;padding:0 12px!important}
:is(#dimau-shell-header,body > header){font-family:var(--dm-font)!important;box-sizing:border-box!important;background:var(--dm-header)!important;color:var(--dm-header-text)!important;border-bottom:1px solid #ffffff26!important;padding:0!important;}
:is(#dimau-shell-row,header > .hbar){box-sizing:border-box!important;min-height:var(--dm-row)!important;height:auto!important;max-width:var(--dm-width)!important;width:100%!important;margin-inline:auto!important;padding:12px var(--dm-gutter)!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important}
@media(max-width:767px){:is(#dimau-shell-row,header > .hbar){padding-block:8px!important}}
:is(header .brand){font:700 18px/1.3 var(--dm-font)!important;letter-spacing:-.02em!important;min-width:0!important;margin:0!important;text-transform:none!important;color:var(--dm-header-text)!important;}
:is(#dimau-shell-header,body > header) button{min-width:44px!important}:is(#dimau-shell-header,body > header) :is(a,button){min-height:44px!important;box-sizing:border-box!important;font-family:var(--dm-font)!important}:is(#dimau-shell-header,body > header) :is(a,button):focus-visible{outline:3px solid #3ee0c8!important;outline-offset:3px!important}
body{font-family:var(--dm-font)!important}main h1,.hero h1{font-family:var(--dm-font)!important;font-size:clamp(32px,4.5vw,48px)!important;line-height:1.15!important;letter-spacing:-.025em!important}main > h2,main > section > h2,.hero > h2{font-family:var(--dm-font)!important;font-size:clamp(24px,3vw,32px)!important;line-height:1.2!important}input,select,textarea{font-size:16px}
header .hstats{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}header .brand{font-size:18px!important}header .brand span{color:inherit}header .logo-tile{padding:0!important;width:36px!important;height:36px!important;flex:0 0 36px!important}header .hstats .pill{min-height:44px!important}header .hbar{row-gap:8px!important}

/* FijiLearn: one container for identity, utility controls and page content. */
body > .wrap,body > .learner-nav,body > .catalogue-wrap{box-sizing:border-box;max-width:var(--dm-width);width:100%;margin-inline:auto;padding-inline:var(--dm-gutter)}
body > .learner-nav{padding-block:12px}
header > .hbar{align-items:center!important}
header > .bw-own-line{width:100%!important;max-width:var(--dm-width)!important;padding-inline:var(--dm-gutter)!important;margin-inline:auto!important}
.hero p{max-width:75ch}

:is(#dimau-shell-row,header > .hbar){align-items:center!important}
header .hstats .pill{display:inline-flex;align-items:center;justify-content:center}

/* Keep account and learning controls inside the same aligned header. */
header .dm-acct{flex:0 0 auto;max-width:100%}
header .dm-acct-btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
header .header-tools{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;box-sizing:border-box;width:100%;max-width:var(--dm-width);margin-inline:auto;padding:0 var(--dm-gutter) 12px}
header .header-tools .learner-nav{min-width:0;font-size:13px;line-height:1.5}
header .header-tools .learner-nav a{display:inline-flex;align-items:center;color:#e0f4f3;text-decoration:none;text-underline-offset:4px}
header .header-tools .learner-nav a:hover{text-decoration:underline}
header #sync-status{display:block;font-size:12px;color:#c5d9e7}
header #sync-status:empty{display:none}
header .header-tools :is(#dimau-shell-utility,.bw-own-line){flex:0 1 auto!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important}
@media(max-width:540px){
  :is(#dimau-shell-row,header > .hbar){display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important}
  header .hbar > .dm-acct{grid-column:3;grid-row:1;justify-self:end}
  header .hbar > .hstats{grid-column:1/-1;grid-row:2;margin:0;justify-content:flex-end}
  header .header-tools{gap:4px;padding-bottom:12px}
  header .header-tools .learner-nav{flex-basis:100%}
  header .header-tools :is(#dimau-shell-utility,.bw-own-line){flex:1 1 100%!important}
}

/* Keep desktop controls in the same content grid, including injected widgets. */
@media (min-width:768px){
  #learning-header{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto auto;
    align-items:center;
    gap:12px;
    padding:12px max(var(--dm-gutter),calc((100% - 1120px)/2))!important;
  }
  #learning-header > .hbar{display:contents!important}
  #learning-header .logo-tile{grid-column:1;grid-row:1}
  #learning-header .brand{grid-column:2;grid-row:1}
  #learning-header .hstats{grid-column:3;grid-row:1;margin:0;flex-wrap:nowrap}
  #learning-header .hbar > .dm-acct{grid-column:4;grid-row:1;min-width:0}
  #learning-header .dm-acct-btn{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #learning-header .header-tools > .bw-own-line{
    grid-column:1/-1;grid-row:2;width:auto!important;max-width:none!important;
    margin:0!important;padding:0!important;justify-self:start;
  }
}
@media (min-width:1100px){
  #learning-header{grid-template-columns:48px auto minmax(0,1fr) auto auto;column-gap:16px}
  #learning-header .header-tools > .bw-own-line{grid-column:3;grid-row:1;margin-left:8px!important;flex-wrap:nowrap!important}
  #learning-header .hstats{grid-column:4}
  #learning-header .hbar > .dm-acct{grid-column:5}
}

@media (min-width:768px){
  #learning-header > .header-tools{display:contents}
  #learning-header .header-tools > .learner-nav{grid-column:1/-1;grid-row:3}
}
@media (min-width:1100px){
  #learning-header .header-tools > .learner-nav{grid-row:2}
}

/* Portfolio refinement — 2026-10-03. Shared scale; product colors stay local. */
:root {
  --dm-font:Verdana,Geneva,Arial,sans-serif;
  --dm-width:1248px;
  --dm-gutter:clamp(16px,3vw,32px);
  --dm-radius:12px;
  --dm-border:#d8e2eb;
  --dm-focus:#087ca7;
  --dm-shadow:0 8px 28px -16px #0b2a4a40;
}
html{scroll-padding-top:112px}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(main,section,article,header,nav,form)>:where(div,section,article){min-width:0}
:where(h1,h2,h3){text-wrap:balance}
:where(input,select,textarea){box-sizing:border-box;max-width:100%}
:where(button,a,input,select,textarea,summary):focus-visible{
  outline:3px solid var(--dm-focus);outline-offset:3px;
}
:root :is(#dimau-shell-utility,.bw-pill,.bw-share){
  min-height:44px!important;border-radius:12px!important;
  padding:8px 14px!important;gap:8px!important;
  background:#eef5fb!important;color:#123d60!important;
  border:1px solid #c7d9e8!important;box-shadow:none!important;
  text-shadow:none!important;letter-spacing:0!important;
}
:root :is(#dimau-shell-utility,.bw-pill):hover,
:root :is(#dimau-shell-utility,.bw-share):hover{background:#deedf8!important;color:#082d4c!important}
:root :is(#dimau-shell-utility,.bw-pill)::before,
:root :is(#dimau-shell-utility,.bw-pill)::after{display:none!important}
:root :is(#dimau-shell-utility,.bw-dot){display:none!important}
:root :is(#dimau-shell-utility,.bw-group){align-items:center!important;gap:8px!important;min-width:0}
:root :is(#dimau-shell-utility,.bw-own-line){margin-block:0 8px!important}
:root :is(#dimau-shell-account,.dm-acct){display:inline-flex;align-items:center;flex:0 0 auto}
:root :is(#dimau-shell-account,.dm-acct-btn){
  min-height:44px!important;max-width:160px;padding:9px 16px!important;
  border-radius:12px!important;border:1px solid #bbcedd!important;
  background:#fff!important;color:#123d60!important;
  font:600 14px/1.35 var(--dm-font)!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important;
}
:root :is(#dimau-shell-account,.dm-acct-btn):hover{background:#eef5fb!important}
:root :is(#dimau-shell-account,.dm-card){border-radius:20px!important;max-height:calc(100dvh - 32px);overflow:auto}
:root :is(#dimau-shell-utility,.bw-card){border-radius:20px!important;max-height:calc(100dvh - 32px)}
@media(max-width:767px){
  html{scroll-padding-top:88px}
  :root :is(#dimau-shell-utility,.bw-pill).bw-full .bw-long,
  :root :is(#dimau-shell-utility,.bw-pill) .bw-long{display:none!important}
  :root :is(#dimau-shell-utility,.bw-pill).bw-full .bw-short,
  :root :is(#dimau-shell-utility,.bw-pill) .bw-short{display:inline!important}
  :root :is(#dimau-shell-utility,.bw-pill){width:auto!important;flex:0 0 auto!important;white-space:nowrap!important}
  :root :is(#dimau-shell-account,.dm-acct-btn){max-width:120px;padding-inline:12px!important}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  :where(.card,.dui-card,.btn,.bw-pill,.bw-share,.dm-acct-btn){transition:none!important;animation:none!important}
}
#learning-header{row-gap:8px!important}#learning-header .learner-nav{gap:6px;overflow-x:auto;scrollbar-width:thin}#learning-header .learner-nav :is(a,button){min-height:44px;border-radius:10px}#learning-header .hstats{align-items:center;gap:8px}:where(.lesson-card,.subject-card){border-radius:16px;box-shadow:var(--dm-shadow)}@media(max-width:767px){#learning-header{padding-inline:16px!important}#learning-header .brand{font-size:17px!important}}