/* The CP3 guide: one guide, by stage, sliced by role. Built on cp3.css (the bar, the
   language globe, the brand colours) and on the lessons' look (learn.css): the same
   chips, videos, Check yourself, sheet and bottom row, per SCREEN-NAVIGATION-GUIDE.md. */

.guide{background:var(--paper);min-height:100vh;--hue:#1F6B45;--hue-soft:#E8F2EB;--hue-ink:#1F6B45;--on:#fff}
.guide main{padding:0 0 40px}
.gw{max-width:620px;margin:0 auto;padding:10px var(--gut) 0}

/* ---------- a colour for each stage; --on is the text on it ---------- */
.c1{--hue:#E8B22B;--hue-soft:#FFF4D6;--hue-ink:#8A6200;--on:#16301F}
.c2{--hue:#2E86AB;--hue-soft:#E3F1F7;--hue-ink:#1E5F7A;--on:#fff}
.c3{--hue:#7B5EA7;--hue-soft:#EFE9F7;--hue-ink:#5E4585;--on:#fff}
.c4{--hue:#1F6B45;--hue-soft:#E8F2EB;--hue-ink:#1F6B45;--on:#fff}
.c5{--hue:#3D5A98;--hue-soft:#E6EBF6;--hue-ink:#2C4475;--on:#fff}
.c6{--hue:#C8553D;--hue-soft:#FBE9E4;--hue-ink:#A23F2A;--on:#fff}
.c7{--hue:#D9822B;--hue-soft:#FCEEDD;--hue-ink:#9A5512;--on:#fff}
.c8{--hue:#3E7C8C;--hue-soft:#E4F0F2;--hue-ink:#2E6170;--on:#fff}

/* ---------- the top row: close, where you are, contents ---------- */
.gtop{display:flex;align-items:center;gap:10px;margin:4px 0 14px}
.gtop .crumb{flex:1;margin:0;text-align:center;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hue-ink)}
.x{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;padding:0;cursor:pointer;
  background:#fff;border:1px solid var(--rail);color:var(--ink);font:inherit}
.x svg{width:20px;height:20px}

/* ---------- a section ---------- */
.sec{background:#fff;border-radius:24px;padding:22px 20px;box-shadow:0 1px 0 var(--rail),0 8px 24px rgba(22,48,31,.06);
  display:flex;flex-direction:column;gap:14px}
.sec h1{font-size:1.6rem;line-height:1.2;margin:0;color:var(--ink)}
/* Start and Continue: two quiet text links under the opening paragraph, so neither reads
   as the first section (Tarak, 25 October 2026). Only one shows at a time. */
.landing .hlinks{display:flex;flex-wrap:wrap;gap:6px 18px;margin:12px 0 0}
.landing .hlinks .start,.landing .hlinks .cont{display:inline-flex;align-items:center;gap:4px;margin:0;padding:0;
  border:0;border-radius:0;background:none;color:var(--hue-ink);font-weight:700;font-size:1rem;
  text-decoration:underline;text-underline-offset:3px;box-shadow:none;min-height:0}
.landing .hlinks svg{width:18px;height:18px}
.landing .hlinks .cont-t{display:inline;flex:0 1 auto;min-width:0}
.landing .hlinks .cont-where{font-weight:700;opacity:1;font-size:1rem}
.landing .hlinks [hidden]{display:none}
/* The lettered asides after the main flow (A, B): the basics, quieter than the stages. */
.stage.astage{background:#fff;border:1.5px dashed var(--rail)}
.stage.astage .snum{background:var(--hue-soft);color:var(--hue-ink)}
.stage.astage .sbar{background:var(--hue-soft)}
/* The Resource gallery card, after the stages. */
.aside{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border:1.5px dashed var(--rail);
  border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;font-weight:600}
.aside .sic{background:var(--rail);color:var(--ink)}
.aside .aside-t{flex:1}
.aside>svg{width:20px;height:20px;flex:none}
.aside.gallery{margin:14px 0 0}   /* the Resource gallery, after the stages */
/* The section's icon, as in the contents, beside its heading. */
.sec .hrow{display:flex;align-items:flex-start;gap:12px}
.sec .hrow .sic{width:44px;height:44px;border-radius:13px}
.sec .hrow .sic svg{width:24px;height:24px}
.sec .line{margin:-6px 0 0;color:var(--muted);font-size:1.02rem}
.tile{border-radius:18px;overflow:hidden;background:#fff;max-height:34vh}
.tile .tpic{display:block;width:100%;height:100%;max-height:34vh;object-fit:cover;object-position:50% 40%}
.points{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.points li{font-size:1.02rem;line-height:1.5;padding:11px 14px 11px 38px;background:var(--hue-soft);border-radius:14px;position:relative}
.points li::before{content:"";position:absolute;left:15px;top:19px;width:10px;height:10px;border-radius:3px;background:var(--hue);transform:rotate(45deg)}

/* a button's name, as a white pill on the tinted points and notes */
.points .act,.note .act{background:#fff;border:1px solid var(--rail)}
/* A long button name wraps inside its pill on a phone rather than pushing the page sideways. */
.act{white-space:normal;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* a note linking the ground to the portal, flowing into its chip */
.note{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;background:var(--hue-soft)}
.note p{margin:0;font-size:.98rem;line-height:1.5}

/* What your students read: links inside the guide */
.see{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.seelink{display:inline-flex;align-items:center;gap:4px;padding:6px 12px 6px 8px;border-radius:999px;background:var(--hue-soft);
  color:var(--hue-ink);font-size:.9rem;font-weight:600;text-decoration:none}
.seelink svg{width:16px;height:16px}
.print .see{font-size:.9rem;margin:0}

/* chips to the tours */
.tours{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.thint{flex-basis:100%;font-size:.82rem;font-weight:600;color:var(--muted)}
.tchip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px 7px 9px;border-radius:999px;background:#fff;
  border:1.5px solid var(--hue);color:var(--hue-ink);font-size:.9rem;font-weight:600;text-decoration:none;line-height:1.25}
.tchip svg{width:16px;height:16px;flex:none}
.tchip .tl{font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;background:var(--hue);color:var(--on);border-radius:999px;padding:1px 7px}

/* videos: a local card until tapped (T-234) */
.vcard{display:flex;flex-direction:column;gap:8px}
.vcard h3{margin:0;font-size:1.05rem}
.vcard p{margin:0;color:var(--ink);line-height:1.5}
.vid{position:relative;border-radius:18px;overflow:hidden;background:#16301F;aspect-ratio:9/16;max-height:58vh;width:100%}
.vid.wide{aspect-ratio:16/9}
.vid.ig{aspect-ratio:10/16;max-height:68vh}
.vid.live{background:#fff}
.vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid .play{position:absolute;inset:0;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:radial-gradient(circle at 30% 20%,var(--hue) 0,#16301F 78%)}
.vid .play[hidden]{display:none}
.vid .tri{width:68px;height:68px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--hue)}
.vid .tri svg{width:28px;height:28px;fill:currentColor;margin-left:4px}
.vid .lbl{font-weight:700}
.vid .by,.vid .from{font-size:.86rem;opacity:.9;text-align:center;padding:0 14px}

/* See more */
.more{border-top:1px solid var(--rail);padding-top:6px}
.more summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--hue-ink);padding:8px 0}
.more summary::-webkit-details-marker{display:none}
.more summary svg{width:18px;height:18px;transition:transform .2s}
.more[open] summary svg{transform:rotate(180deg)}
.more .m-close,.more[open] .m-open{display:none}
.more[open] .m-close{display:inline}
.mitem{padding:6px 0 4px}
.mitem h3{margin:0 0 4px;font-size:1rem}
.mitem p,.mitem li{margin:0;font-size:.98rem;line-height:1.55;color:var(--ink)}
.mitem ul{margin:4px 0 0;padding-left:1.1em}

/* Check yourself, last */
.check{border-top:1px solid var(--rail);padding-top:12px;display:flex;flex-direction:column;gap:12px}
.qtag{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin:0;font-size:.8rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;border-radius:999px;padding:5px 12px;background:var(--hue-soft);color:var(--hue-ink)}
.qtag svg{width:16px;height:16px}
.qq{margin:0;font-weight:700;font-size:1.05rem}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{font:inherit;text-align:left;padding:12px 14px;border-radius:14px;border:2px solid var(--rail);background:#fff;color:var(--ink);cursor:pointer}
.opt.right{border-color:#2F8F4E;background:#E8F2EB}
.opt.wrong{border-color:#C8553D;background:#FBE9E4;animation:shake .3s}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.fb{display:none;margin:0;padding:10px 12px;border-radius:12px;background:var(--hue-soft);line-height:1.5}
.fb.show{display:block}.fb strong{display:block}

/* sort the waste */
.sortgame{display:flex;flex-direction:column;gap:10px}
.items{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.item{font:inherit;font-size:.86rem;line-height:1.2;padding:6px 4px 8px;border-radius:16px;border:2px solid var(--rail);background:#fff;
  cursor:pointer;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.item .ipic{width:100%;max-width:72px;height:auto;aspect-ratio:1/1}
.item.sel{border-color:var(--hue);background:var(--hue-soft);font-weight:700;box-shadow:0 0 0 3px var(--hue-soft)}
.item.gone{display:none}
.round[hidden]{display:none}
.bins{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bin{font:inherit;border:0;border-radius:18px;padding:12px;text-align:left;cursor:pointer;color:#fff;min-height:68px;display:flex;flex-direction:column;justify-content:space-between}
.bin .n{font-size:.78rem;font-weight:700;background:rgba(255,255,255,.25);border-radius:999px;padding:1px 9px;align-self:flex-start}
.bin.wet{background:#2F8F4E}.bin.dry{background:#2E86AB}.bin.san{background:#B5487A}.bin.spc{background:#C8553D}

/* the bottom row: [«] [‹ Back] ... [Next ›] [»] */
.gnav{display:flex;align-items:center;gap:8px;margin:16px 0 0}
.gnav a{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;border-radius:999px;text-decoration:none}
.gnav svg{width:20px;height:20px}
.gnav .back{color:var(--hue-ink);padding:12px 6px}
.gnav .go{margin-left:auto;background:var(--hue);color:var(--on);padding:14px 22px;min-width:44%;box-shadow:0 4px 14px rgba(22,48,31,.12)}
.skip{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--hue-ink);background:var(--hue-soft)}
.skip svg{width:18px;height:18px}
.skip.off{visibility:hidden}
.skip[hidden]{display:grid;visibility:hidden}
.no-js .skip{visibility:hidden}

/* ---------- a role's page, and the contents ---------- */
.hero{padding:22px 0 6px}
.kicker{margin:0 0 4px;font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hue-ink)}
.hero h1{font-size:2rem;line-height:1.12;margin:0;color:var(--ink)}
.cont{display:flex;align-items:center;gap:12px;margin:16px 0 4px;padding:12px 14px;border-radius:18px;background:var(--hue);color:var(--on);text-decoration:none}
.cont[hidden]{display:none}
.cont-t{flex:1;display:flex;flex-direction:column}
.cont-where{font-size:.88rem;opacity:.9}
.cont svg{width:22px;height:22px}
.gw h3,.lsheet h3{display:flex;justify-content:space-between;align-items:baseline;font-size:.82rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);margin:18px 0 8px}
.count{font-weight:600;letter-spacing:0}
.toc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.toc a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;background:#fff;
  color:var(--ink);text-decoration:none;font-weight:600;border:2px solid transparent}
.toc a::after{content:"";flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--rail)}
.toc a.seen::after{background:var(--hue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;border-color:var(--hue)}
.toc a[aria-current="page"]{border-color:var(--hue)}
.start{display:flex;align-items:center;justify-content:center;gap:6px;margin:20px 0 0;background:var(--hue);color:var(--on);
  padding:14px 22px;border-radius:999px;font-weight:700;text-decoration:none}
.start svg{width:20px;height:20px}
.printlink{margin:18px 0 0;text-align:center}
.printlink a{display:inline-flex;align-items:center;gap:6px;color:var(--hue-ink);font-weight:600}
.printlink svg{width:18px;height:18px}
.printlink{display:flex;flex-direction:column;align-items:center;gap:8px}
.pdflink{display:none !important}
html[lang="en"] .pdflink[lang="en"],html[lang="pa"] .pdflink[lang="pa"],html[lang="hi"] .pdflink[lang="hi"]{display:inline-flex !important}

/* the contents sheet */
.lsheet{position:fixed;inset:0;z-index:50;background:rgba(22,48,31,.45);display:flex;align-items:flex-end;justify-content:center}
.lsheet[hidden]{display:none}
body.lsheet-on{overflow:hidden}
.lsheet-in{background:var(--paper);width:100%;max-width:560px;max-height:86vh;overflow:auto;border-radius:24px 24px 0 0;padding:16px var(--gut) 24px}
.lsheet-top{display:flex;align-items:center;justify-content:space-between}
.lsheet-top h2{font-size:1.15rem;margin:0}

/* ---------- print: the same page, expanded, with its pictures and icons ---------- */
.print{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff}
.print .pw{max-width:760px;margin:0 auto;padding:18px var(--gut)}
.pcover{padding:6mm 0 4mm;break-after:page}
.pcover h1{font-size:2.3rem;margin:0 0 6px}
.pcover .lead{font-size:1.05rem;color:var(--muted);margin:0 0 14px}
.pcover .cover{display:block;width:100%;height:auto;border-radius:16px}
.pstage{display:flex;align-items:center;gap:10px;margin:14px 0 8px;padding:8px 12px;border-radius:12px;background:var(--hue);
  color:var(--on);font-size:1.15rem;break-after:avoid}
.pstage .snum{width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.3);display:grid;place-items:center;font-weight:800}
.psec{display:grid;grid-template-columns:1fr 150px;column-gap:16px;row-gap:0;padding:10px 0 14px;border-bottom:1px solid var(--rail);break-inside:avoid}
.psec > :not(.pside){grid-column:1;margin-bottom:8px}
.pside{grid-column:2;grid-row:1 / span 30;display:flex;flex-direction:column;gap:10px;align-items:center}
.phead{display:flex;gap:10px;align-items:flex-start}
.phead .sic{flex:none;width:34px;height:34px;border-radius:10px;background:var(--hue);color:var(--on);display:grid;place-items:center}
.phead .sic svg{width:19px;height:19px}
.phead h3{margin:2px 0 0;font-size:1.12rem}.phead .line{margin:2px 0 0;color:var(--muted)}
.pqr{text-align:center}
.pqr .qr{display:none}
html[lang="en"] .pqr .qr[lang="en"],html[lang="pa"] .pqr .qr[lang="pa"],html[lang="hi"] .pqr .qr[lang="hi"]{display:block}
.pqr svg{width:84px;height:84px}
.qrcap{display:block;font-size:.66rem;line-height:1.25;color:var(--muted)}
.print .tile{max-height:none;width:150px;border-radius:12px}
.print .tile .tpic{max-height:none;width:150px;height:auto}
.print .points{gap:5px}
.print .points li{padding:6px 10px 6px 30px;font-size:.95rem;border-radius:10px}
.print .points li::before{left:11px;top:13px}
.print .note{display:block;padding:7px 10px;border-radius:10px;background:var(--hue-soft);font-size:.92rem}
.print .note .tname{display:inline-block;margin-left:4px;padding:0 8px;border-radius:999px;background:var(--hue);color:var(--on);font-weight:700;font-size:.8rem}
.print .more{border:0;padding:0}
.print .mitem h3{color:var(--hue-ink)}
@media print{
  .rule-top,.bar,.globe{display:none}
  .print .pw{padding:0}
  @page{margin:12mm}
}
@media (prefers-reduced-motion:reduce){.more summary svg{transition:none}.opt.wrong{animation:none}}

/* ---------- the landing page: colourful stages, picture tiles, progress ---------- */
.landing .hero{padding:24px 0 4px}
.landing .lead{margin:8px 0 0;font-size:1.04rem;line-height:1.5;color:var(--muted)}
.prog{display:flex;align-items:center;gap:12px;margin:16px 0 0}
.pbar{flex:1;height:10px;border-radius:999px;background:var(--rail);overflow:hidden}
.pbar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#E8B22B,#2E86AB,#7B5EA7,#1F6B45,#3D5A98);transition:width .4s}
.ptxt{font-size:.9rem;color:var(--muted);white-space:nowrap}.ptxt b{color:var(--ink);font-size:1.05rem}
.landing .cont{margin:16px 0 0}
.cont-ic{flex:none;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.25);display:grid;place-items:center}
.cont-ic svg{width:16px;height:16px;fill:currentColor}
.start[hidden]{display:none}
.landing .start{margin:12px 0 4px;background:#fff;color:var(--ink);border:2px solid var(--rail)}
.stage{margin:12px 0 0;border-radius:22px;background:var(--hue-soft);overflow:hidden}
.stage summary{list-style:none;cursor:pointer;padding:14px 14px 12px;display:block}
.stage summary::-webkit-details-marker{display:none}
.shead{display:flex;align-items:center;gap:10px}
.snum{flex:none;width:34px;height:34px;border-radius:12px;background:var(--hue);color:var(--on);display:grid;place-items:center;font-weight:800}
.stitle{flex:1;font-size:1.1rem;font-weight:700;line-height:1.25;color:var(--ink)}
.scount{font-size:.85rem;font-weight:700;color:var(--hue-ink)}
.shead > svg{flex:none;width:20px;height:20px;color:var(--hue-ink);transition:transform .2s}
.stage[open] .shead > svg{transform:rotate(180deg)}
.sbar{display:block;height:6px;border-radius:999px;background:rgba(255,255,255,.85);margin:10px 0 0;overflow:hidden}
.sbar i{display:block;height:100%;width:0;background:var(--hue);border-radius:999px;transition:width .4s}
.srows{list-style:none;margin:0;padding:0 10px 12px;display:flex;flex-direction:column;gap:6px}
.srow{display:flex;align-items:center;gap:12px;padding:9px 12px 9px 9px;border-radius:16px;background:#fff;color:var(--ink);
  text-decoration:none;border:2px solid transparent;transition:border-color .12s}
.srow:hover,.srow:focus-visible{border-color:var(--hue)}
.sic{flex:none;width:38px;height:38px;border-radius:12px;background:var(--hue);color:var(--on);display:grid;place-items:center}
.sic svg{width:21px;height:21px}
.sname{flex:1;font-weight:600;font-size:.98rem;line-height:1.3}
.stick{flex:none;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--rail);color:transparent;display:grid;place-items:center}
.stick svg{width:14px;height:14px}
.srow.seen .stick{background:var(--hue);border-color:var(--hue);color:var(--on)}
.stage.complete .snum{box-shadow:0 0 0 3px #fff inset}
@media (prefers-reduced-motion:reduce){.pbar i,.sbar i,.shead > svg{transition:none}}
