/* ============================================================
   GENNOW, Capacity Building Academy
   Loads after gennow.css + portal-app.css. Module-specific UI:
   course catalog, course player, ToC + Logic Model builders,
   generated-asset cards, readiness lift, certificate.
   ============================================================ */
:root{
  --aca:#176F89;            /* teal, primary */
  --aca-weak:#E7F1F4;
  --gold-700:#C97E08; --gold-600:#E0930A;
  --good:#3C7A22; --good-weak:#E4F1E5;
  --orange:#EF7D1A; --orange-weak:#FBEAD9;
  --purple:#6A5AA8; --purple-weak:#ECE9F6;
}

/* ---- academy header tag in appbar ---- */
.ab-tag.aca{color:var(--gold-700);border-color:#F0DEB6;background:#FBF3E2;}

/* ---- in-academy sub-nav (own tab set) ---- */
.subnav a .newpill{font-size:.62rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--gold-700);background:#FBF3E2;border-radius:4px;padding:.1rem .3rem;}

/* ============================================================
   ACADEMY DASHBOARD
   ============================================================ */
/* continue-learning band */
.aca-cont{display:grid;grid-template-columns:150px 1fr auto;gap:22px;align-items:center;
  background:linear-gradient(120deg,#0F4C5C 0%, #176F89 60%, #2E94B0 100%);
  border-radius:14px;padding:22px 26px;color:#EAF4F6;margin-bottom:22px;box-shadow:0 14px 34px rgba(11,60,74,.22);}
.aca-cont .cc-cover{width:150px;height:104px;border-radius:10px;overflow:hidden;position:relative;}
.aca-cont .cc-eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--gold-300,#F8CC73);margin-bottom:6px;}
.aca-cont h2{color:#fff;font-size:1.45rem;margin:0 0 6px;line-height:1.1;}
.aca-cont p{color:#CDE6EC;font-size:.92rem;margin:0 0 12px;max-width:52ch;}
.aca-cont .cc-prog{display:flex;align-items:center;gap:12px;}
.aca-cont .cc-track{flex:1;max-width:340px;height:8px;border-radius:999px;background:rgba(255,255,255,.22);overflow:hidden;}
.aca-cont .cc-track i{display:block;height:100%;background:var(--gold,#F5A623);border-radius:999px;transition:width .5s cubic-bezier(.2,.7,.2,1);}
.aca-cont .cc-pct{font-size:.84rem;font-weight:700;color:#EAF4F6;white-space:nowrap;}
.aca-cont .cc-cta{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-width:170px;}
.aca-cont.no-cover{grid-template-columns:1fr auto;}
.btn-gold-sm{background:var(--gold,#F5A623);color:#0B3C4A;border:0;border-radius:8px;padding:.7rem 1.1rem;font-family:var(--font-body);font-weight:800;font-size:.9rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;text-decoration:none;transition:.15s;white-space:nowrap;}
.btn-gold-sm:hover{background:#E0930A;transform:translateY(-1px);}
.btn-gold-sm svg{width:1.05em;height:1.05em;}
@media(max-width:760px){.aca-cont{grid-template-columns:1fr;}.aca-cont.no-cover{grid-template-columns:1fr;}.aca-cont .cc-cover{display:none;}.aca-cont .cc-cta{min-width:0;}.aca-cont .cc-track{max-width:none;}}

/* striped placeholder covers, per-track tints */
.cover{position:absolute;inset:0;background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 10px, transparent 10px 20px),
  linear-gradient(135deg,#176F89,#0F4C5C);display:grid;place-items:center;}
.cover svg{width:42px;height:42px;color:rgba(255,255,255,.92);}
.cover.track-toc{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#176F89,#0F4C5C);}
.cover.track-fin{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#C97E08,#8C5A05);}
.cover.track-gov{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#3C7A22,#285314);}
.cover.track-story{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#6A5AA8,#473A78);}
.cover.track-data{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#2E94B0,#176F89);}
.cover.track-fund{background:repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 20px),linear-gradient(135deg,#EF7D1A,#B85A0E);}

/* course catalog */
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:6px 0 14px;}
.sec-h h3{font-size:1.12rem;font-weight:800;margin:0;font-family:var(--font-display);letter-spacing:-.01em;}
.sec-h .meta{font-size:.82rem;color:var(--mut2);font-weight:600;}

.course-card{display:grid;grid-template-columns:128px 1fr;gap:0;background:#fff;border:1px solid var(--pline);border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(11,40,55,.04);transition:.18s;margin-bottom:16px;}
.course-card.live:hover{border-color:var(--aca);box-shadow:0 10px 26px rgba(11,40,55,.10);transform:translateY(-2px);}
.course-card .cc-img{position:relative;min-height:150px;}
.course-card .cc-main{padding:18px 20px;display:flex;flex-direction:column;gap:9px;}
.course-card .cc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.course-card h4{font-size:1.12rem;font-weight:800;margin:0;font-family:var(--font-display);letter-spacing:-.01em;}
.course-card .cc-desc{font-size:.9rem;color:var(--mut);margin:0;line-height:1.5;}
.course-card .cc-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto;padding-top:6px;}
.course-card .cc-stat{font-size:.8rem;color:var(--mut);display:inline-flex;align-items:center;gap:5px;}
.course-card .cc-stat svg{width:14px;height:14px;color:var(--mut2);}
.course-card .cc-stat b{color:var(--slate);font-weight:700;}
.course-card .cc-actions{margin-left:auto;display:flex;gap:8px;align-items:center;}
.course-card.soon{opacity:1;}
.course-card.soon .cc-img .cover{filter:saturate(.7);}
@media(max-width:560px){.course-card{grid-template-columns:1fr;}.course-card .cc-img{min-height:96px;}}

.lvl{font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:.2rem .5rem;border-radius:5px;}
.lvl.foundations{background:var(--aca-weak);color:#15657F;}
.lvl.intermediate{background:var(--good-weak);color:var(--good);}

/* asset yield strip on course card */
.yield{display:flex;flex-wrap:wrap;gap:6px;}
.yield .y{display:inline-flex;align-items:center;gap:5px;font-size:.74rem;font-weight:600;color:var(--mut);background:var(--pbg);border:1px solid var(--pline2);border-radius:6px;padding:.22rem .5rem;}
.yield .y svg{width:12px;height:12px;color:var(--aca);}
.yield .y.done{color:var(--good);background:var(--good-weak);border-color:#CFE6CC;}
.yield .y.done svg{color:var(--good);}

/* dashboard side: readiness lift gauge */
.lift{display:flex;align-items:center;gap:18px;}
.lift .ring{--p:0;width:104px;height:104px;border-radius:50%;flex:0 0 auto;
  background:conic-gradient(var(--aca) calc(var(--p)*1%), #E3E8EC 0);display:grid;place-items:center;position:relative;}
.lift .ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:#fff;}
.lift .ring .num{position:relative;text-align:center;}
.lift .ring .num b{font-family:var(--font-display);font-weight:800;font-size:1.7rem;line-height:1;color:var(--slate);display:block;}
.lift .ring .num span{font-size:.64rem;color:var(--mut2);font-weight:700;}
.lift .lx b{font-size:.95rem;}
.lift .delta{display:inline-flex;align-items:center;gap:5px;font-size:.8rem;font-weight:800;color:var(--good);background:var(--good-weak);border-radius:6px;padding:.2rem .5rem;margin-top:6px;}
.lift .delta svg{width:13px;height:13px;}

/* generated-asset list (dashboard side) */
.asset-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--pline2);}
.asset-row:last-child{border-bottom:0;}
.asset-row .ai{width:32px;height:32px;border-radius:8px;background:var(--aca-weak);color:var(--aca);display:grid;place-items:center;flex:0 0 auto;}
.asset-row .ai svg{width:16px;height:16px;}
.asset-row.pending .ai{background:var(--pbg);color:var(--mut2);}
.asset-row .an{font-weight:700;font-size:.88rem;}
.asset-row .am{font-size:.76rem;color:var(--mut2);}
.asset-row .astat{margin-left:auto;}

/* certificate status (dashboard) */
.certbox{text-align:center;padding:6px 2px;}
.certbox .seal{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:var(--pbg);color:var(--mut2);border:2px dashed var(--pline);}
.certbox.earned .seal{background:var(--good-weak);color:var(--good);border:2px solid #BFE0BF;}
.certbox .seal svg{width:30px;height:30px;}
.certbox h4{font-size:1rem;margin:0 0 5px;}
.certbox p{font-size:.84rem;color:var(--mut);margin:0 0 14px;line-height:1.5;}

/* ============================================================
   COURSE PLAYER
   ============================================================ */
.course-top{background:#fff;border-bottom:1px solid var(--pline);position:sticky;top:60px;z-index:55;}
.course-top-inner{display:flex;align-items:center;gap:16px;padding:11px 0;}
.course-top .ct-back{display:inline-flex;align-items:center;gap:6px;color:var(--mut);font-weight:700;font-size:.84rem;text-decoration:none;flex:0 0 auto;}
.course-top .ct-back:hover{color:var(--slate);}
.course-top .ct-back svg{width:15px;height:15px;}
.course-top .ct-title{font-weight:800;font-size:.98rem;color:var(--slate);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.course-top .ct-prog{margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.course-top .ct-track{width:160px;height:7px;border-radius:999px;background:var(--pbg);overflow:hidden;}
.course-top .ct-track i{display:block;height:100%;background:var(--aca);border-radius:999px;transition:width .5s;}
.course-top .ct-pct{font-size:.8rem;font-weight:800;color:var(--aca);white-space:nowrap;}
@media(max-width:680px){.course-top .ct-title{display:none;}.course-top .ct-track{width:96px;}}

.course-layout{display:grid;grid-template-columns:264px 1fr 300px;gap:24px;align-items:start;padding:24px 0 80px;}
.course-layout.dash{grid-template-columns:264px 1fr;}
.course-layout.dash .crail-right{display:none;}
/* dashboard hero + cert sit parallel on desktop; stack on narrower screens */
@media(max-width:1080px){.course-layout.dash .cols{grid-template-columns:1fr;}}
@media(max-width:1100px){.course-layout{grid-template-columns:240px 1fr;}.course-layout .crail-right{display:none;}}
@media(max-width:760px){.course-layout{grid-template-columns:1fr;}.course-layout .crail-left{display:none;}}

/* left module rail (in-training dashboard) */
.crail{position:sticky;top:120px;}
.crail .cr-card{background:#fff;border:1px solid var(--pline);border-radius:12px;overflow:hidden;}
.crail .cr-h{padding:14px 16px;border-bottom:1px solid var(--pline2);}
.crail .cr-h .lbl{font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2);}
.crail .cr-h b{display:block;font-size:.95rem;margin-top:2px;}

/* LMS teal sidebar header */
.crail .cr-h.cr-h-teal{background:linear-gradient(140deg,#0F4C5C 0%,#176F89 100%);border-bottom:0;padding:16px 16px 18px;}
.cr-h-teal .lbl{color:var(--gold-300,#F8CC73);}
.cr-h-teal b{color:#fff;}
.crh-prog{display:flex;align-items:center;gap:11px;margin-top:14px;}
.crh-ring{--p:0;width:46px;height:46px;border-radius:50%;flex:0 0 auto;background:conic-gradient(var(--gold,#F5A623) calc(var(--p)*1%), rgba(255,255,255,.22) 0);display:grid;place-items:center;position:relative;}
.crh-ring::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#124E60;}
.crh-ring span{position:relative;font-size:.66rem;font-weight:800;color:#fff;}
.crh-meta{font-size:.78rem;color:#CDE6EC;line-height:1.35;}
.crh-meta b{display:block;color:#fff;font-size:.84rem;}

/* LMS lesson banner atop each module */
.mod-banner{background:linear-gradient(125deg,#0F4C5C 0%,#176F89 68%,#2E94B0 100%);border-radius:14px;padding:22px 26px;margin-bottom:20px;color:#EAF4F6;box-shadow:0 10px 28px rgba(11,60,74,.18);}
.mod-banner .meyebrow{color:var(--gold-300,#F8CC73);font-size:.73rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin-bottom:9px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.mod-banner .mb-num{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.32);border-radius:999px;padding:.16rem .62rem;color:#fff;letter-spacing:.05em;white-space:nowrap;}
.mod-banner h1{color:#fff;font-size:1.7rem;margin:0 0 9px;line-height:1.08;letter-spacing:-.015em;}
.mod-banner p.sub{color:#CFE6EC;font-size:.98rem;margin:0;max-width:62ch;line-height:1.5;}
@media(max-width:560px){.mod-banner{padding:18px 20px;}.mod-banner h1{font-size:1.4rem;}}

/* tie right-rail cards to the palette */
.crail-right .cr-card .card-h{background:var(--aca-weak);border-bottom-color:#D5E7EC;}
.crail-right .cr-card .card-h h3{color:var(--teal-700,#114F62);}
.modlist{list-style:none;margin:0;padding:6px;}
.modlist li{display:flex;gap:11px;align-items:center;padding:9px 10px;border-radius:8px;cursor:pointer;transition:.12s;}
.modlist li:hover{background:var(--pbg);}
.modlist li.on{background:var(--aca-weak);}
.modlist li.locked{opacity:.5;cursor:not-allowed;}
.modlist .mdot{flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid var(--pline);display:grid;place-items:center;color:var(--mut2);font-size:.74rem;font-weight:800;}
.modlist .mdot svg{width:13px;height:13px;}
.modlist li.done .mdot{background:var(--good);border-color:var(--good);color:#fff;}
.modlist li.on .mdot{border-color:var(--aca);color:var(--aca);}
.modlist li.on.done .mdot{background:var(--good);border-color:var(--good);color:#fff;}
.modlist .mtx{min-width:0;}
.modlist .mtx b{display:block;font-size:.84rem;font-weight:700;color:var(--slate);line-height:1.25;}
.modlist li.on .mtx b{color:var(--aca);}
.modlist .mtx span{font-size:.72rem;color:var(--mut2);}

/* main exercise pane */
.mod-pane{min-width:0;}
.mod-head{margin-bottom:18px;}
.mod-head .meyebrow{font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--aca);margin-bottom:6px;}
.mod-head h1{font-size:1.8rem;font-weight:800;margin:0 0 8px;letter-spacing:-.015em;line-height:1.08;}
.mod-head p.sub{font-size:1rem;color:var(--mut);margin:0;max-width:60ch;line-height:1.5;}

.teach{background:#fff;border:1px solid var(--pline);border-left:3px solid var(--aca);border-radius:10px;padding:18px 20px;margin-bottom:20px;}
.teach h4{font-size:.86rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--aca);margin:0 0 9px;display:flex;align-items:center;gap:7px;}
.teach h4 svg{width:16px;height:16px;}
.teach p{font-size:.94rem;color:var(--slate);margin:0 0 9px;line-height:1.6;}
.teach p:last-child{margin-bottom:0;}
.teach .deflist{margin:8px 0 0;display:grid;gap:8px;}
.teach .deflist .d{font-size:.9rem;line-height:1.5;}
.teach .deflist .d b{color:var(--aca);}

/* exercise blocks */
.ex{background:#fff;border:1px solid var(--pline);border-radius:10px;padding:20px;margin-bottom:18px;}
.ex-h{display:flex;align-items:center;gap:9px;margin-bottom:4px;}
.ex-h .exn{width:24px;height:24px;border-radius:6px;background:var(--aca-weak);color:var(--aca);display:grid;place-items:center;font-weight:800;font-size:.78rem;flex:0 0 auto;}
.ex-h h3{font-size:1.02rem;font-weight:800;margin:0;}
.ex .exhint{font-size:.86rem;color:var(--mut);margin:0 0 16px;line-height:1.5;padding-left:33px;}
.field{margin-bottom:16px;}
.field:last-child{margin-bottom:0;}
.field label{display:block;font-size:.84rem;font-weight:700;color:var(--slate);margin-bottom:6px;}
.field .lh{font-weight:400;color:var(--mut2);font-size:.8rem;}
.field input,.field textarea,.field select{width:100%;border:1px solid #C9D0D6;border-radius:8px;padding:.65rem .75rem;font-family:var(--font-body);font-size:.93rem;color:var(--slate);background:#fff;line-height:1.5;}
.field textarea{min-height:84px;resize:vertical;}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--aca);box-shadow:0 0 0 3px rgba(23,111,137,.13);}
.field .ex-eg{font-size:.8rem;color:var(--mut2);margin-top:6px;font-style:italic;}
.field .ex-eg b{font-style:normal;font-weight:700;color:var(--mut);}

/* example chips (click to insert) */
.egchips{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px;}
.egchips .egc{font-size:.8rem;font-weight:600;color:var(--aca);background:var(--aca-weak);border:1px solid #CFE6EC;border-radius:999px;padding:.32rem .7rem;cursor:pointer;transition:.12s;}
.egchips .egc:hover{background:var(--aca);color:#fff;}

/* repeater (add outcome / add item) */
.rep{display:flex;flex-direction:column;gap:9px;}
.rep .rep-item{display:flex;gap:8px;align-items:flex-start;}
.rep .rep-item input{flex:1;}
.rep .rep-del{flex:0 0 auto;width:38px;height:38px;border-radius:8px;border:1px solid var(--pline);background:#fff;color:var(--mut2);cursor:pointer;display:grid;place-items:center;}
.rep .rep-del:hover{border-color:var(--warn);color:var(--warn);}
.rep .rep-del svg{width:15px;height:15px;}
.rep-add{align-self:flex-start;background:none;border:1px dashed #C2CCD4;color:var(--aca);font-family:var(--font-body);font-weight:700;font-size:.84rem;border-radius:8px;padding:.5rem .85rem;cursor:pointer;display:inline-flex;align-items:center;gap:6px;}
.rep-add:hover{border-color:var(--aca);background:var(--aca-weak);}
.rep-add svg{width:14px;height:14px;}

/* if-then chain builder */
.ifthen{display:flex;flex-direction:column;gap:0;}
.ifthen .step{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:start;}
.ifthen .tag{margin-top:8px;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#fff;background:var(--aca);border-radius:6px;padding:.28rem 0;text-align:center;}
.ifthen .tag.then{background:var(--orange);}
.ifthen .conn{grid-column:1;justify-self:center;color:var(--mut2);height:18px;display:grid;place-items:center;}
.ifthen .conn svg{width:18px;height:18px;}
.ifthen textarea{min-height:52px;}

/* logic model builder */
.lm{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;}
@media(max-width:900px){.lm{grid-template-columns:1fr 1fr;}}
@media(max-width:520px){.lm{grid-template-columns:1fr;}}
.lm .lmcol{background:var(--pbg);border:1px solid var(--pline);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;}
.lm .lmcol .lmh{font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;text-align:center;padding:.4rem;border-radius:7px;color:#fff;}
.lm .lmcol.c1 .lmh{background:#0F4C5C;}
.lm .lmcol.c2 .lmh{background:#176F89;}
.lm .lmcol.c3 .lmh{background:#2E94B0;}
.lm .lmcol.c4 .lmh{background:var(--good);}
.lm .lmcol.c5 .lmh{background:var(--gold-600);}
.lm .lmcol textarea{width:100%;border:1px solid #C9D0D6;border-radius:7px;padding:.55rem;font-family:var(--font-body);font-size:.82rem;color:var(--slate);min-height:120px;resize:vertical;background:#fff;line-height:1.45;}
.lm .lmcol textarea:focus{outline:none;border-color:var(--aca);box-shadow:0 0 0 2px rgba(23,111,137,.13);}
.lm .lmcol .hint{font-size:.68rem;color:var(--mut2);text-align:center;line-height:1.3;}

/* generate / save button + output */
.ai-act{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:4px;}
.btn-ai{display:inline-flex;align-items:center;gap:8px;background:var(--aca);color:#fff;border:0;border-radius:8px;padding:.62rem 1.1rem;font-family:var(--font-body);font-weight:700;font-size:.88rem;cursor:pointer;transition:.15s;}
.btn-ai:hover{background:var(--teal-700,#114F62);}
.btn-ai:disabled{opacity:.6;cursor:not-allowed;}
.btn-ai svg{width:15px;height:15px;}
.ai-note{font-size:.8rem;color:var(--mut);}
.ai-spin{display:none;align-items:center;gap:10px;color:var(--aca);font-weight:600;font-size:.88rem;padding:6px 0;}
.ai-spin.on{display:flex;}
.aspin{width:16px;height:16px;border:2px solid rgba(23,111,137,.3);border-top-color:var(--aca);border-radius:50%;animation:aspin .7s linear infinite;flex:0 0 auto;}
@keyframes aspin{to{transform:rotate(360deg);}}

/* generated asset preview (after exercise) */
.assetout{border:1px solid #CFE6CC;background:linear-gradient(180deg,#F2F9EF,#fff 60%);border-radius:12px;padding:0;margin-top:18px;overflow:hidden;display:none;}
.assetout.show{display:block;animation:assetIn .4s cubic-bezier(.2,.7,.2,1);}
@keyframes assetIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
.assetout .ao-h{display:flex;align-items:center;gap:11px;padding:14px 18px;background:var(--good-weak);border-bottom:1px solid #CFE6CC;}
.assetout .ao-h .aoic{width:32px;height:32px;border-radius:8px;background:var(--good);color:#fff;display:grid;place-items:center;flex:0 0 auto;}
.assetout .ao-h .aoic svg{width:17px;height:17px;}
.assetout .ao-h b{font-size:.95rem;}
.assetout .ao-h .aotag{font-size:.74rem;color:var(--good);font-weight:700;}
.assetout .ao-b{padding:18px;}
.assetout .ao-doc{font-family:var(--font-serif);font-size:.95rem;line-height:1.65;color:var(--ink);white-space:pre-wrap;background:#fff;border:1px solid var(--pline);border-radius:8px;padding:18px 20px;max-height:340px;overflow-y:auto;}
.assetout .ao-doc h5{font-family:var(--font-display);font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--aca);margin:14px 0 4px;}
.assetout .ao-doc h5:first-child{margin-top:0;}
.assetout .ao-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px;}
.assetout .ao-dest{font-size:.8rem;color:var(--mut);display:flex;align-items:center;gap:6px;}
.assetout .ao-dest svg{width:14px;height:14px;color:var(--good);}

/* diagram render for ToC / logic model */
.diagram{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:4px 0;}
.diagram .dnode{flex:1;min-width:118px;background:#fff;border:1px solid var(--pline);border-radius:10px;padding:11px 12px;}
.diagram .dnode .dh{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#fff;border-radius:5px;padding:.22rem .4rem;display:inline-block;margin-bottom:7px;}
.diagram .dnode .dl{font-size:.8rem;line-height:1.4;color:var(--slate);white-space:pre-wrap;}
.diagram .dnode.n1 .dh{background:#0F4C5C;}
.diagram .dnode.n2 .dh{background:#176F89;}
.diagram .dnode.n3 .dh{background:#2E94B0;}
.diagram .dnode.n4 .dh{background:var(--good);}
.diagram .dnode.n5 .dh{background:var(--gold-600);}
.diagram .arrow{flex:0 0 auto;display:grid;place-items:center;color:var(--mut2);}
.diagram .arrow svg{width:18px;height:18px;}

/* module footer nav */
.mod-foot{display:flex;align-items:center;gap:12px;margin-top:8px;}
.mod-foot .btn-prev{background:#fff;border:1px solid var(--pline);color:var(--slate);border-radius:8px;padding:.7rem 1.1rem;font-family:var(--font-body);font-weight:700;font-size:.9rem;cursor:pointer;display:inline-flex;align-items:center;gap:6px;}
.mod-foot .btn-prev:hover{background:var(--pbg);}
.mod-foot .btn-prev svg{width:15px;height:15px;}
.mod-foot .btn-next{margin-left:auto;}
.mod-foot .btn-next[disabled]{opacity:.5;cursor:not-allowed;}
.mod-saved{font-size:.82rem;color:var(--good);font-weight:700;display:none;align-items:center;gap:6px;}
.mod-saved.on{display:inline-flex;}
.mod-saved svg{width:15px;height:15px;}

/* right rail: live assets + readiness */
.crail-right .cr-card{margin-bottom:18px;}
.mini-gauge{display:flex;align-items:center;gap:14px;}
.mini-gauge .ring{--p:0;width:74px;height:74px;border-radius:50%;flex:0 0 auto;background:conic-gradient(var(--aca) calc(var(--p)*1%),#E3E8EC 0);display:grid;place-items:center;position:relative;}
.mini-gauge .ring::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff;}
.mini-gauge .ring .num{position:relative;font-family:var(--font-display);font-weight:800;font-size:1.25rem;color:var(--slate);}
.mini-gauge .mx{font-size:.82rem;color:var(--mut);line-height:1.4;}
.mini-gauge .mx .delta{display:inline-flex;align-items:center;gap:4px;font-weight:800;color:var(--good);}
.mini-gauge .mx .delta svg{width:12px;height:12px;}

.liveassets{list-style:none;margin:0;padding:0;}
.liveassets li{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--pline2);font-size:.84rem;}
.liveassets li:last-child{border-bottom:0;}
.liveassets li .la-ic{width:24px;height:24px;border-radius:6px;flex:0 0 auto;display:grid;place-items:center;background:var(--pbg);color:var(--mut2);}
.liveassets li.have .la-ic{background:var(--good-weak);color:var(--good);}
.liveassets li .la-ic svg{width:13px;height:13px;}
.liveassets li b{font-weight:700;color:var(--slate);}
.liveassets li.pending b{color:var(--mut2);font-weight:600;}

/* completion / certificate module */
.cert-stage{text-align:center;background:#fff;border:1px solid var(--pline);border-radius:14px;padding:38px 30px;}
.cert-stage .cseal{width:84px;height:84px;border-radius:50%;background:var(--good-weak);color:var(--good);display:grid;place-items:center;margin:0 auto 18px;border:3px solid #BFE0BF;}
.cert-stage .cseal svg{width:42px;height:42px;}
.cert-stage h2{font-size:1.7rem;margin:0 0 10px;}
.cert-stage p{color:var(--mut);max-width:52ch;margin:0 auto 22px;line-height:1.6;}

/* printable certificate */
.certificate{background:#fff;border:2px solid var(--aca);border-radius:14px;padding:40px 44px;text-align:center;position:relative;max-width:680px;margin:0 auto;box-shadow:0 18px 50px rgba(11,40,55,.14);}
.certificate::before{content:"";position:absolute;inset:9px;border:1px solid var(--gold-300,#F8CC73);border-radius:8px;pointer-events:none;}
.certificate .c-logo{height:42px;margin:0 auto 18px;}
.certificate .c-k{font-size:.74rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-700);}
.certificate h3{font-family:var(--font-display);font-size:1.9rem;margin:10px 0 6px;letter-spacing:-.01em;}
.certificate .c-sub{color:var(--mut);font-size:.92rem;margin:0 0 22px;}
.certificate .c-org{font-family:var(--font-serif);font-size:1.8rem;font-weight:600;color:var(--aca);border-bottom:2px solid var(--pline);display:inline-block;padding:0 24px 8px;margin:0 0 6px;}
.certificate .c-for{font-size:.92rem;color:var(--slate);margin:14px auto 24px;max-width:46ch;line-height:1.5;}
.certificate .c-meta{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;border-top:1px solid var(--pline);padding-top:18px;}
.certificate .c-meta .cm b{display:block;font-size:.92rem;}
.certificate .c-meta .cm span{font-size:.74rem;color:var(--mut2);text-transform:uppercase;letter-spacing:.05em;}
.certificate .c-badge{position:absolute;top:-14px;right:32px;background:var(--gold);color:#0B3C4A;font-weight:800;font-size:.74rem;letter-spacing:.04em;padding:.4rem .8rem;border-radius:999px;box-shadow:0 6px 16px rgba(245,166,35,.4);}

/* grant-mapping table (module 9) */
.maptbl{width:100%;border-collapse:collapse;font-size:.86rem;}
.maptbl th{text-align:left;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--mut2);padding:8px 10px;border-bottom:2px solid var(--pline);}
.maptbl td{padding:11px 10px;border-bottom:1px solid var(--pline2);vertical-align:top;color:var(--slate);}
.maptbl td .src{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;font-weight:700;color:var(--aca);background:var(--aca-weak);border-radius:6px;padding:.2rem .5rem;}
.maptbl td .src svg{width:12px;height:12px;}

/* eval framework table */
.evtbl{width:100%;border-collapse:collapse;font-size:.84rem;}
.evtbl th{text-align:left;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--mut2);padding:7px 8px;border-bottom:2px solid var(--pline);}
.evtbl td{padding:7px 6px;border-bottom:1px solid var(--pline2);}
.evtbl td input{width:100%;border:1px solid #D2D8DD;border-radius:6px;padding:.45rem .5rem;font-family:var(--font-body);font-size:.82rem;color:var(--slate);}
.evtbl td input:focus{outline:none;border-color:var(--aca);box-shadow:0 0 0 2px rgba(23,111,137,.12);}
.evtbl td.oc{font-weight:700;color:var(--slate);font-size:.84rem;width:24%;}
.gridtbl td.rowx{width:40px;padding:7px 0 7px 4px;}
.gridtbl td.rowx .rep-del{width:34px;height:34px;border-radius:8px;border:1px solid var(--pline);background:#fff;color:var(--mut2);cursor:pointer;display:grid;place-items:center;}
.gridtbl td.rowx .rep-del:hover{border-color:var(--warn);color:var(--warn);}
.gridtbl td.rowx .rep-del svg{width:15px;height:15px;}
.gridtbl th.wide{width:48%;}

/* self-assessment rating field */
.assess{display:flex;flex-direction:column;gap:10px;margin-top:4px;}
.as-row{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:13px 15px;border:1px solid var(--pline);border-radius:11px;background:var(--pbg);}
.as-q{flex:1 1 240px;font-size:.9rem;font-weight:600;color:var(--slate);line-height:1.4;}
.as-scale{display:flex;gap:6px;flex-wrap:wrap;}
.as-opt{font-family:var(--font-body);font-weight:700;font-size:.78rem;color:var(--mut);
  background:#fff;border:1px solid var(--pline);border-radius:999px;padding:.42rem .8rem;cursor:pointer;
  transition:.14s;white-space:nowrap;}
.as-opt:hover{border-color:var(--aca);color:var(--aca);}
.as-opt.on{background:var(--aca);border-color:var(--aca);color:#fff;box-shadow:0 2px 8px rgba(23,111,137,.25);}

/* ============================================================
   Background texture + form-font continuity + folder + accordion
   ============================================================ */
body.portal{
  background-color:#E8F1F0;
  background-image:
    linear-gradient(180deg, rgba(251,246,234,.55), rgba(251,246,234,0) 320px),
    radial-gradient(rgba(20,90,110,.055) 1.4px, transparent 1.4px);
  background-size:auto, 26px 26px;
  background-attachment:fixed;
}

/* every fillable control in the course uses the same body font + sizing */
.mod-pane input,.mod-pane textarea,.mod-pane select,
.modal-sheet input,.modal-sheet textarea,.modal-sheet select{font-family:var(--font-body);color:var(--slate);}

/* if-then chain boxes, match the rest of the form */
.ifthen textarea{width:100%;border:1px solid #C9D0D6;border-radius:8px;padding:.6rem .7rem;font-size:.93rem;color:var(--slate);min-height:54px;resize:vertical;line-height:1.5;background:#fff;}
.ifthen textarea:focus{outline:none;border-color:var(--aca);box-shadow:0 0 0 3px rgba(23,111,137,.13);}

/* assets folder (desktop-style) */
.assetfolder{display:flex;align-items:center;gap:15px;padding:16px 18px;border:1px solid var(--pline);border-radius:10px;cursor:pointer;transition:.14s;background:#fff;}
.assetfolder:hover{border-color:var(--aca);background:var(--aca-weak);}
.assetfolder:focus-visible{outline:none;border-color:var(--aca);box-shadow:0 0 0 3px rgba(23,111,137,.15);}
.assetfolder.empty{cursor:default;color:var(--mut);}
.assetfolder.empty:hover{border-color:var(--pline);background:#fff;}
.folder-ic{position:relative;width:56px;height:46px;flex:0 0 auto;color:var(--gold-600);}
.folder-ic svg{width:56px;height:46px;}
.folder-ic .cnt{position:absolute;right:-4px;top:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--aca);color:#fff;font-size:.7rem;font-weight:800;display:grid;place-items:center;border:2px solid #fff;}
.folder-tx{flex:1;min-width:0;}
.folder-tx b{display:block;font-size:.96rem;font-weight:700;}
.folder-tx span{font-size:.8rem;color:var(--mut);}
.folder-open{font-size:.8rem;font-weight:700;color:var(--aca);background:var(--aca-weak);border-radius:7px;padding:.35rem .7rem;flex:0 0 auto;}

/* folder popup file rows */
.filelist{display:flex;flex-direction:column;gap:4px;}
.filerow{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;cursor:pointer;border:1px solid transparent;transition:.12s;}
.filerow:hover{background:var(--aca-weak);border-color:#CFE6EC;}
.filerow .fic{width:36px;height:36px;border-radius:8px;background:var(--aca-weak);color:var(--aca);display:grid;place-items:center;flex:0 0 auto;}
.filerow .fic svg{width:18px;height:18px;}
.filerow .fmeta{flex:1;min-width:0;}
.filerow .fmeta b{display:block;font-size:.92rem;font-weight:700;}
.filerow .fmeta span{font-size:.78rem;color:var(--mut2);}
.filerow .fopen{font-size:.78rem;font-weight:700;color:var(--aca);flex:0 0 auto;}

/* collapsible course-modules card */
details.modules-acc{padding:0;}
details.modules-acc>summary{list-style:none;cursor:pointer;}
details.modules-acc>summary::-webkit-details-marker{display:none;}
details.modules-acc>summary .chev{display:inline-grid;place-items:center;width:18px;height:18px;color:var(--mut2);transition:transform .18s;}
details.modules-acc[open]>summary .chev{transform:rotate(180deg);}
details.modules-acc>summary .meta{display:inline-flex;align-items:center;gap:8px;}

@media print{
  .appbar,.subnav,.course-top,.crail,.crail-right,.mod-foot,.no-print{display:none !important;}
  body.portal{background:#fff;}
  .certificate{box-shadow:none;}
}

/* ============================================================
   READINESS DASHBOARD (From Capacity to Readiness, module 7)
   ============================================================ */
.dash-hero{display:flex;align-items:center;gap:24px;padding:22px 24px;margin:4px 0 22px;
  border:1px solid var(--pline);border-radius:16px;
  background:linear-gradient(135deg,#0E4654,#176F89);color:#fff;}
.dash-hero .dh-ring{--p:0;width:120px;height:120px;flex:0 0 auto;border-radius:50%;
  background:conic-gradient(#F2C14E calc(var(--p)*1%),rgba(255,255,255,.18) 0);
  display:grid;place-items:center;position:relative;}
.dash-hero .dh-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#0E4654;}
.dash-hero .dh-num{position:relative;font-family:var(--font-display);font-weight:800;font-size:2.1rem;line-height:1;color:#fff;}
.dash-hero .dh-num i{font-style:normal;font-size:.95rem;font-weight:700;opacity:.6;}
.dash-hero .dh-tx{flex:1;}
.dash-hero .dh-k{display:block;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.7;}
.dash-hero .dh-band{display:inline-block;margin:6px 0 8px;font-family:var(--font-display);font-size:1.7rem;font-weight:800;letter-spacing:-.01em;}
.dash-hero .dh-band.band-hi{color:#7BE0A8;} .dash-hero .dh-band.band-mid{color:#F2C14E;} .dash-hero .dh-band.band-lo{color:#F4A98C;}
.dash-hero .dh-tx p{margin:0;font-size:.9rem;line-height:1.5;opacity:.88;max-width:46ch;}

.dash-gauges-wrap{margin-bottom:20px;}
.dashgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;}
.dashcat{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid var(--pline);border-radius:13px;background:#fff;}
.dc-ring{--p:0;width:58px;height:58px;flex:0 0 auto;border-radius:50%;
  background:conic-gradient(var(--aca) calc(var(--p)*1%),#E3E8EC 0);display:grid;place-items:center;position:relative;}
.dc-ring::before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff;}
.dc-ring span{position:relative;font-family:var(--font-display);font-weight:800;font-size:1.02rem;color:var(--slate);}
.dc-ring span i{font-style:normal;font-size:.6rem;font-weight:700;color:var(--mut2);}
.dc-meta b{display:block;font-size:.9rem;color:var(--slate);}
.dc-meta span{font-size:.74rem;color:var(--mut);}

.dash-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px;}
@media(max-width:620px){.dash-cols{grid-template-columns:1fr;}}
.dash-pan{border:1px solid var(--pline);border-radius:13px;padding:16px 18px;background:var(--pbg);}
.dash-pan h5{margin:0 0 11px;font-size:.7rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--mut2);}
.dashtags{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.dashtags li{display:flex;align-items:center;gap:10px;font-size:.92rem;font-weight:700;color:var(--slate);}
.dashtags li .dt-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;}
.dashtags li.st .dt-dot{background:var(--good);} .dashtags li.gw .dt-dot{background:var(--orange);}
.dashtags li .dt-sc{margin-left:auto;font-family:var(--font-display);font-weight:800;font-size:.82rem;color:var(--mut);}
.dashtags li.dt-empty,.dt-empty{color:var(--mut);font-size:.86rem;font-weight:500;}
.dash-recs{display:flex;flex-direction:column;gap:10px;}
.dash-rec{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1px solid var(--pline);border-radius:12px;background:#fff;text-decoration:none;transition:.14s;}
.dash-rec:hover{border-color:var(--aca);box-shadow:0 4px 14px rgba(23,111,137,.1);transform:translateY(-1px);}
.dash-rec .dr-ic{width:38px;height:38px;flex:0 0 auto;border-radius:9px;display:grid;place-items:center;background:var(--aca-weak);color:var(--aca);}
.dash-rec .dr-ic svg{width:19px;height:19px;}
.dash-rec .dr-tx{flex:1;} .dash-rec .dr-tx b{display:block;font-size:.94rem;color:var(--slate);}
.dash-rec .dr-tx span{font-size:.78rem;color:var(--mut);}
.dash-rec .dr-go{color:var(--aca);} .dash-rec .dr-go svg{width:18px;height:18px;}
