/* "Kids skin": the colourful look for pieces made only for young learners (catalog ages = young only). Loaded by
   functions/materials/[[slug]].js when the page is a young-learner piece and the preview switch ?kids=1 is on (the default once approved).
   Everything is scoped to html.kids #sheet, so the toolbar, teacher's page and all other shelves keep their calm look.
   No external fonts or images: the mascots are our own files in /assets/art. China-safe. */
html.kids #sheet{background:#fffdf5;border:4px solid #ffb703;border-radius:20px;box-shadow:0 6px 22px rgba(255,150,0,.18)}
html.kids #sheet *{-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* the banner: sky, hills, a rainbow title and a mascot */
html.kids #sheet .hd{position:relative;overflow:hidden;min-height:132px;padding:16px 170px 18px 18px;margin:-12px -12px 14px;border-radius:16px 16px 0 0;
  background:radial-gradient(150px 46px at 14% 108%,#7ed957 98%,transparent 100%),radial-gradient(190px 56px at 78% 112%,#5fbf4a 98%,transparent 100%),linear-gradient(#6ec6ff,#d9f2ff 75%)}
html.kids #sheet .hd::after{content:"";position:absolute;right:8px;bottom:-6px;width:150px;height:158px;background:var(--mascot,none) no-repeat center bottom/contain;pointer-events:none}
html.kids #sheet .hd .big{font-size:60px;filter:drop-shadow(0 3px 0 rgba(0,0,0,.12))}
html.kids #sheet .hd h1{font-size:clamp(30px,6.4vw,52px);font-weight:900;letter-spacing:1px;text-transform:uppercase;
  background:linear-gradient(90deg,#ff595e,#ff924c,#e0a100,#8ac926,#2ec4b6,#1982c4,#6a4c93,#ff6ba6);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 0 rgba(0,0,0,.18))}
html.kids #sheet .ribbon{background:#ff6ba6;border-radius:99px;padding:6px 20px;box-shadow:0 3px 0 #c2417a;font-size:16px}
html.kids #sheet .hd .topic{background:rgba(255,255,255,.75);border-radius:10px;padding:4px 10px;display:inline-block}
html.kids #sheet .lvl{position:absolute;right:166px;top:10px;margin:0;background:#fff;border:3px solid #1982c4;color:#1982c4;border-radius:14px}

/* every numbered section gets its own colour */
html.kids #sheet .sec{--kc:#ff595e;border:3px solid var(--kc);border-radius:20px;background:#fff;box-shadow:0 3px 0 var(--kc)}
html.kids #sheet .sec:nth-of-type(7n+2){--kc:#ff924c}
html.kids #sheet .sec:nth-of-type(7n+3){--kc:#e0a100}
html.kids #sheet .sec:nth-of-type(7n+4){--kc:#5fa51f}
html.kids #sheet .sec:nth-of-type(7n+5){--kc:#2ec4b6}
html.kids #sheet .sec:nth-of-type(7n+6){--kc:#1982c4}
html.kids #sheet .sec:nth-of-type(7n+7){--kc:#6a4c93}
html.kids #sheet .sec h2{font-size:21px;font-weight:900;color:#243044}
html.kids #sheet .sec h2 .num{background:var(--kc);color:#fff;width:34px;height:34px;font-size:19px;box-shadow:0 2px 0 rgba(0,0,0,.2)}
html.kids #sheet .sec h2 .sub{color:#5a6577;font-weight:700}

/* picture cards: big, coloured, one colour each */
html.kids #sheet .vocab .vc{--c:#ff595e;--b:#fff0f0;background:var(--b);border:3px solid var(--c);border-radius:18px;box-shadow:0 3px 0 var(--c)}
html.kids #sheet .vocab .vc:nth-child(8n+2){--c:#ff6ba6;--b:#fff0f6}
html.kids #sheet .vocab .vc:nth-child(8n+3){--c:#1982c4;--b:#eaf5ff}
html.kids #sheet .vocab .vc:nth-child(8n+4){--c:#ff924c;--b:#fff3e8}
html.kids #sheet .vocab .vc:nth-child(8n+5){--c:#e0a100;--b:#fff9e0}
html.kids #sheet .vocab .vc:nth-child(8n+6){--c:#2ec4b6;--b:#e8faf8}
html.kids #sheet .vocab .vc:nth-child(8n+7){--c:#6a4c93;--b:#f4eeff}
html.kids #sheet .vocab .vc:nth-child(8n+8){--c:#5fa51f;--b:#f0fae6}
html.kids #sheet .vocab .vc .em{font-size:54px;line-height:1.15}
html.kids #sheet .vocab .vc .w{font-weight:900;font-size:21px;letter-spacing:.3px}

/* tables, word boxes and answer lines */
html.kids #sheet table th{background:#fff3b8;color:#243044}
html.kids #sheet table td,html.kids #sheet table th{border-color:#ffe08a}
html.kids #sheet table.band td[style*="font-size:22px"]{font-size:50px!important;line-height:1.1;width:96px}   /* the picture column of the vocabulary tables */
html.kids #sheet table.band td{vertical-align:middle}
html.kids #sheet table.band td b{font-size:19px;font-weight:900}
html.kids #sheet table.band tbody tr:nth-child(even) td{background:#fffaf0}
html.kids #sheet .chips span,html.kids #sheet .wb span,html.kids #sheet .bank span{border:2px solid #ff924c;background:#ffe9d6;border-radius:99px;font-weight:800}
html.kids #sheet .chips span:nth-child(3n+2),html.kids #sheet .wb span:nth-child(3n+2){border-color:#2ec4b6;background:#e1f8f5}
html.kids #sheet .chips span:nth-child(3n+3),html.kids #sheet .wb span:nth-child(3n+3){border-color:#6a4c93;background:#f0e9ff}
html.kids #sheet .ft{background:#243044;color:#fff;border-radius:0 0 14px 14px;margin:14px -12px -4px;padding:8px 14px}

@media (max-width:640px){
  html.kids #sheet .hd{padding-right:18px;min-height:0}
  html.kids #sheet .hd::after{display:none}
  html.kids #sheet .lvl{position:static;margin-left:auto}
}
@media print{html.kids #sheet{box-shadow:none}}
