/* Learn with Tayo layer: lock panel, unlock bar, padlocks. Hidden save buttons are handled in JS. */
header nav button.bg-sun{display:none!important}
#tayo-lock{position:fixed;inset:0;z-index:60;background:rgba(243,234,214,.96);display:grid;place-items:center;padding:20px;overflow:auto}
#tayo-lock[hidden]{display:none}
html.tayo-locked-page body{overflow:hidden}
#tayo-lock .tl-card{position:relative;max-width:420px;width:100%;background:#fff;border-radius:24px;padding:28px 22px 22px;text-align:center;box-shadow:0 18px 50px rgba(28,22,18,.18);font-family:Nunito,system-ui,sans-serif;color:#1c1612}
#tayo-lock .tl-tayo{height:150px;width:auto;margin:-10px auto 0;display:block}
#tayo-lock .tl-lock{position:absolute;top:16px;right:18px;font-size:30px}
#tayo-lock h2{font-family:Fredoka,Nunito,sans-serif;font-size:1.7rem;margin:8px 0 4px;color:#2a2f6b}
#tayo-lock .tl-who{font-weight:800;color:#b13222;margin:0 0 8px}
#tayo-lock p{margin:8px 0;line-height:1.45}
#tayo-lock .tl-buy{display:block;margin:16px 0 6px;padding:16px;border-radius:18px;background:#b13222;color:#fff;font-weight:900;font-size:1.15rem;text-decoration:none;box-shadow:0 6px 0 #7f2217}
#tayo-lock .tl-small{font-size:.9rem;color:#6b5f55}
#tayo-lock .tl-back{color:#2a2f6b;font-weight:800}
#tayo-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:520px;margin:0 auto;padding:14px 18px;border-radius:18px;background:#2a2f6b;color:#fff;text-decoration:none;font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:1.05rem;box-shadow:0 10px 30px rgba(28,22,18,.3)}
#tayo-bar b{background:#f2b82c;color:#1c1612;border-radius:12px;padding:4px 12px}
#tayo-bar[hidden]{display:none}
body{padding-bottom:84px}
a.tayo-lk img{filter:grayscale(.55) brightness(.92)}
.tayo-pad{position:absolute;top:6px;right:8px;z-index:2;font-size:18px;line-height:1;background:#fff;border-radius:999px;padding:5px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
a .tayo-pad.pin{top:-8px;right:-8px;font-size:11px;padding:3px}
@media print{#tayo-lock,#tayo-bar{display:none!important}}

/* Worksheets card (journey screen) */
#tayo-ws{margin:8px 0 26px;padding:18px 16px 16px;border-radius:24px;background:linear-gradient(135deg,#f2b82c,#ef6418);color:#1c1612;box-shadow:0 10px 26px rgba(177,50,34,.25);font-family:Nunito,system-ui,sans-serif;text-align:center}
#tayo-ws .ws-head{display:flex;align-items:center;justify-content:center;gap:10px}
#tayo-ws h2{font-family:Fredoka,Nunito,sans-serif;font-weight:700;font-size:1.8rem;margin:0;color:#fff;text-shadow:0 2px 0 #b13222}
#tayo-ws .ws-tag{background:#2a2f6b;color:#fff;font-weight:900;font-size:.75rem;border-radius:999px;padding:3px 9px;letter-spacing:.06em}
#tayo-ws .ws-prev{display:flex;justify-content:center;gap:8px;margin:14px 0 10px}
#tayo-ws .ws-prev img{width:31%;max-width:150px;aspect-ratio:210/297;object-fit:cover;background:#fff;border-radius:8px;box-shadow:0 4px 10px rgba(0,0,0,.2)}
#tayo-ws .ws-prev img:nth-child(1){transform:rotate(-3deg)}#tayo-ws .ws-prev img:nth-child(3){transform:rotate(3deg)}
#tayo-ws .ws-what{margin:6px 0 12px;font-size:1.02rem;color:#2b1a10}
#tayo-ws .ws-btn{display:block;padding:15px;border-radius:18px;background:#b13222;color:#fff;font-weight:900;font-size:1.15rem;text-decoration:none;box-shadow:0 6px 0 #7f2217}
#tayo-ws .ws-btn span{display:block;font-size:.85rem;font-weight:700;color:#ffe6b3}
#tayo-ws .ws-or{margin:12px 0 0;font-size:.95rem}#tayo-ws .ws-or a{color:#2a2f6b;font-weight:900}

/* Certificate (/certificate, 18 Oct 2026): screen = phone-friendly card, print = one A4 landscape page */
.tc-panel{margin:0 0 18px;padding:16px;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(28,22,18,.08);font-family:Nunito,system-ui,sans-serif;color:#1c1612}
.tc-panel h1{font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:1.5rem;line-height:1.2;color:#173445;margin:0 0 8px}
.tc-panel p{margin:6px 0;line-height:1.45}
.tc-lbl{display:block;font-size:.9rem;color:#6b5f55;margin-top:8px}
.tc-name-in{display:block;width:100%;margin-top:4px;height:46px;border-radius:999px;border:2px solid #e8dcc2;background:#fff;padding:0 16px;font-size:1.15rem;color:#1c1612;font-family:inherit;box-sizing:border-box}
.tc-print{width:100%;height:50px!important;margin-top:12px;border-radius:999px!important;font-size:1.1rem!important}
.tc-hint{font-size:.8rem;color:#6b5f55}
.tc-prog{height:14px;border-radius:999px;background:#efe5cf;overflow:hidden;margin:12px 0 4px}.tc-prog span{display:block;height:100%;background:linear-gradient(90deg,#e4b12a,#ef6418);border-radius:999px}
.tc-count{font-weight:800;color:#173445}
.tc-btn{display:block;text-align:center;margin-top:10px;padding:14px;border-radius:16px;background:#b13222;color:#fff!important;font-weight:900;text-decoration:none;box-shadow:0 5px 0 #7f2217}
.tc-cert{position:relative;max-width:1000px;margin:0 auto;box-sizing:border-box;border:10px double #173445;border-radius:16px;background:#fffdf6;padding:16px 14px;text-align:center;font-family:Nunito,system-ui,sans-serif;color:#1c1612;display:flex;flex-direction:column;align-items:center;gap:10px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.tc-cert.tc-locked>*:not(.tc-lock){filter:grayscale(1);opacity:.6}
.tc-logo{height:46px;width:auto}
.tc-tayo{height:120px;width:auto;object-fit:contain}
.tc-kicker{margin:0;font-family:Fredoka,Nunito,sans-serif;font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#b13222}
.tc-title{margin:2px 0 0;font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:1.65rem;line-height:1.15;color:#5c2d82}
.tc-small{margin:6px 0 0;font-size:.8rem;color:#6b5f55}
.tc-name{margin:4px auto 0;min-width:70%;padding:0 10px 2px;border-bottom:2px solid rgba(28,22,18,.3);font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:1.8rem;line-height:1.2;color:#173445;overflow-wrap:anywhere}
.tc-why{margin:8px auto 0;max-width:640px;font-size:.82rem;line-height:1.45}
.tc-heroes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:8px 6px;width:100%}
.tc-heroes li{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.62rem;font-weight:700;color:#6b5f55;line-height:1.1}
.tc-heroes img{width:48px;height:48px;border-radius:999px;object-fit:cover;object-position:top;box-shadow:0 0 0 3px #efe5cf}
.tc-heroes li.got img{box-shadow:0 0 0 3px #e4b12a}.tc-heroes li:not(.got) img{filter:grayscale(1);opacity:.5}
.tc-foot{display:flex;width:100%;align-items:flex-end;justify-content:space-between;gap:8px;font-size:.65rem;color:#6b5f55}
.tc-foot p{margin:0}.tc-date{text-align:left}.tc-date b{font-family:Fredoka,Nunito,sans-serif;font-size:.85rem;color:#1c1612;font-weight:600}
.tc-note{flex:1;font-style:italic;max-width:260px}
.tc-sign{text-align:right}.tc-sign span{display:inline-block;width:100px;border-bottom:1px solid rgba(28,22,18,.45);padding-top:18px}
.tc-lock{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.tc-lock b{background:#173445;color:#fff;font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:1.15rem;border-radius:999px;padding:12px 22px;box-shadow:0 10px 24px rgba(0,0,0,.25)}
@media (min-width:700px){
  .tc-cert{aspect-ratio:297/210;padding:22px 34px;justify-content:space-between}
  .tc-logo{position:absolute;left:26px;top:22px;height:64px}
  .tc-tayo{height:130px}.tc-title{font-size:2.4rem}.tc-name{font-size:2.4rem;min-width:55%}.tc-why{font-size:.95rem}
  .tc-heroes{grid-template-columns:repeat(10,1fr)}.tc-heroes img{width:56px;height:56px}.tc-foot{font-size:.75rem}
}
@media print{
  body:has(.tc-cert) *{visibility:hidden}
  body:has(.tc-cert){padding:0!important;background:#fff!important}
  body:has(.tc-cert) .tc-cert,body:has(.tc-cert) .tc-cert *{visibility:visible}
  .tc-cert{position:fixed;left:0;top:0;width:281mm;height:192mm;max-width:none;margin:0;aspect-ratio:auto;padding:7mm 12mm;justify-content:space-between;gap:2mm;border-radius:6mm}
  .tc-logo{position:absolute;left:9mm;top:7mm;height:24mm}
  .tc-tayo{height:52mm}.tc-kicker{font-size:9pt}.tc-title{font-size:30pt}.tc-small{font-size:10pt}.tc-name{font-size:28pt;min-width:55%}.tc-why{font-size:11pt;max-width:200mm}
  .tc-heroes{grid-template-columns:repeat(10,1fr)}.tc-heroes img{width:17mm;height:17mm}.tc-heroes li{font-size:7.5pt}
  .tc-foot{font-size:9pt}.tc-date b{font-size:12pt}.tc-note{max-width:110mm}.tc-sign span{width:55mm;padding-top:10mm}
  .tc-lock{display:none!important}
}
#tayo-cert{display:block;width:max-content;max-width:100%;margin:10px auto 0;padding:10px 18px;border-radius:999px;background:#173445;color:#fff;font-family:Fredoka,Nunito,sans-serif;font-weight:600;text-decoration:none;text-align:center}
