/* Libritos ZP — Word Lab blog interactives (lzp-wordlab-2026-10) */
.wl{--wl-ink:#33263f;--wl-plum:#54315d;--wl-orange:#c86d12;--wl-gold:#f8c75a;--wl-cream:#fbf6ee;--wl-line:#e8dcd2;--wl-muted:#6a5d6c;
  margin:2.2rem 0;border:1px solid var(--wl-line);border-radius:20px;background:#fff;padding:clamp(1rem,3vw,1.6rem);color:var(--wl-ink);font-size:1rem;line-height:1.55}
.wl *{box-sizing:border-box}
.wl h3.wl-title{margin:0 0 .25rem;font-size:1.3rem;line-height:1.25;color:var(--wl-plum)}
.wl .wl-kicker{display:block;font-size:.74rem;letter-spacing:.14em;font-weight:800;text-transform:uppercase;color:#9b5a14;margin-bottom:.35rem}
.wl .wl-sub{margin:0 0 1rem;color:var(--wl-muted);font-size:.95rem}
.wl button{font:inherit;cursor:pointer}
.wl .wl-btn{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.55rem 1rem;border-radius:12px;border:1px solid #d9c9dc;background:#fff;color:var(--wl-plum);font-weight:700}
.wl .wl-btn:hover{background:#f7f0f8}
.wl .wl-btn--primary{background:var(--wl-plum);border-color:var(--wl-plum);color:#fff}
.wl .wl-btn--primary:hover{background:#432549}
.wl :focus-visible{outline:3px solid #e89b37;outline-offset:2px}
.wl .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- playable puzzle ---------- */
.wl-puzzle{background:linear-gradient(160deg,#fff 0,#fff 55%,var(--wl-cream) 100%)}
.wl-play{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:1.4rem;align-items:start}
.wl-board{display:flex;flex-direction:column;gap:2px;touch-action:none;user-select:none;-webkit-user-select:none;background:#f1e9f2;border-radius:14px;padding:6px;width:100%;max-width:560px}
.wl-row{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:2px}
.wl-cell{aspect-ratio:1;border:0;border-radius:6px;background:#fff;color:#2c2234;font-weight:800;font-size:clamp(.72rem,2.4vw,1.05rem);padding:0;line-height:1;display:grid;place-items:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;transition:background .12s}
.wl-cell:hover{background:#f8eedd}
.wl-cell.is-sel{background:var(--wl-gold);color:#2c2234}
.wl-cell.is-anchor{background:var(--wl-gold);box-shadow:inset 0 0 0 2px var(--wl-orange)}
.wl-cell.is-hint{animation:wl-pulse 1.6s ease 1}
@keyframes wl-pulse{0%,100%{box-shadow:none}30%,70%{box-shadow:inset 0 0 0 3px var(--wl-orange);background:#ffe6c2}}
.wl-cell.is-found{color:#1d1424}
.wl-hit-0{background:#ffd9a8!important}.wl-hit-1{background:#cfe8d4!important}.wl-hit-2{background:#d6e2fb!important}
.wl-hit-3{background:#f7d0e0!important}.wl-hit-4{background:#e7dcfa!important}.wl-hit-5{background:#fff0a8!important}
.wl-puzzle.is-miss .wl-board{animation:wl-shake .3s}
@keyframes wl-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.wl-side{display:flex;flex-direction:column;gap:.9rem}
.wl-meta{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-weight:700;color:var(--wl-plum);background:#f7f0f8;border-radius:12px;padding:.6rem .85rem}
.wl-timer{font-variant-numeric:tabular-nums;color:#7a4b10}
.wl-words{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;max-height:340px;overflow:auto}
.wl-words li{display:flex;flex-wrap:wrap;gap:.35rem}
.wl-chip{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.88rem;font-weight:650;border:1px solid #e3d6e5;background:#fff}
.wl-chip--es{background:#fff7ea;border-color:#f0d9b5}
.wl-chip.is-found{text-decoration:line-through;text-decoration-thickness:2px;opacity:.6}
.wl-chip.is-revealed{text-decoration:none;opacity:1;border-style:dashed}
.wl-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.wl-done{border-radius:14px;padding:1rem 1.1rem;background:linear-gradient(120deg,#fff3dc,#f6e9fb);border:1px solid #efd5a5;font-size:1rem}
.wl-done strong{display:block;font-size:1.1rem;color:var(--wl-plum)}
.wl-puzzle.is-done .wl-board{box-shadow:0 0 0 3px #f8c75a}
.wl-howto{font-size:.88rem;color:var(--wl-muted);margin:.25rem 0 0}
.wl-nojs{font-size:.92rem;color:var(--wl-muted)}
.wl-puzzle.is-ready .wl-nojs{display:none}

/* ---------- flip cards ---------- */
.wl-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.8rem;margin:1rem 0}
.wl-card{position:relative;min-height:132px;border:0;padding:0;background:transparent;perspective:900px;text-align:center;border-radius:16px}
.wl-card-inner{position:absolute;inset:0;transition:transform .45s;transform-style:preserve-3d;border-radius:16px}
.wl-card[aria-pressed="true"] .wl-card-inner{transform:rotateY(180deg)}
.wl-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;padding:.8rem}
.wl-front{background:var(--wl-plum);color:#fff;box-shadow:0 6px 16px #39204522}
.wl-front .wl-word{font-size:1.2rem;font-weight:800}
.wl-front .wl-tap{font-size:.74rem;opacity:.85;letter-spacing:.08em;text-transform:uppercase}
.wl-back{background:#fff7ea;border:2px solid #f0d9b5;transform:rotateY(180deg);color:#2e2236}
.wl-back .wl-word{font-size:1.15rem;font-weight:800;color:#8a4a0e}
.wl-back .wl-note{font-size:.8rem;line-height:1.35;color:#5d5160}
@media (prefers-reduced-motion:reduce){.wl-card-inner{transition:none}.wl-cell{transition:none}.wl-puzzle.is-miss .wl-board{animation:none}}

/* ---------- quiz ---------- */
.wl-q{border:0;margin:0 0 1.2rem;padding:0}
.wl-q legend{font-weight:750;font-size:1.04rem;margin-bottom:.55rem;padding:0;color:#2f2338}
.wl-q legend .wl-qn{display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--wl-gold);color:#3a2700;font-size:.85rem;margin-right:.45rem}
.wl-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.wl-opt{min-height:44px;text-align:left;padding:.6rem .85rem;border-radius:12px;border:1px solid #dacbdd;background:#fff;color:#2f2338;font-weight:600}
.wl-opt:hover:not(:disabled){background:#f7f0f8}
.wl-opt:disabled{cursor:default}
.wl-opt.is-right{background:#e2f2e4;border-color:#5f9b67;color:#1f4a25}
.wl-opt.is-right::after{content:" ✓";font-weight:800}
.wl-opt.is-wrong{background:#fbe3e3;border-color:#c46a6a;color:#6b1f1f}
.wl-opt.is-wrong::after{content:" ✗";font-weight:800}
.wl-feedback{margin-top:.55rem;padding:.6rem .85rem;border-radius:12px;background:#fbf6ee;font-size:.93rem;color:#4a3f4d}
.wl-verdict{font-weight:800;color:var(--wl-plum)}
.wl-quiz-score{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem;border-radius:14px;background:linear-gradient(120deg,#fff3dc,#f6e9fb)}
.wl-quiz-score strong{font-size:1.15rem;color:var(--wl-plum)}

/* ---------- word list ---------- */
.wl-list-tools{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:.7rem}
.wl-list-tools input[type=search],.wl-list-tools select{min-height:44px;border:1px solid #d9cadd;border-radius:12px;padding:.5rem .8rem;background:#fff;color:#33263f;font:inherit}
.wl-list-tools input[type=search]{flex:1 1 220px}
.wl-list-tools select{flex:0 1 230px;max-width:100%}
.wl-toggle{display:inline-flex;align-items:center;gap:.45rem;font-weight:650;color:var(--wl-plum);min-height:44px}
.wl-toggle input{width:20px;height:20px;accent-color:#54315d}
.wl-list-count{font-size:.88rem;color:var(--wl-muted);margin:0 0 .5rem}
.wl-table-wrap{max-height:520px;overflow:auto;border:1px solid var(--wl-line);border-radius:14px}
.wl-table{width:100%;border-collapse:collapse;margin:0!important;display:table!important;font-size:.95rem}
.wl-table th,.wl-table td{border:0!important;border-bottom:1px solid #f0e8ee!important;padding:.45rem .75rem!important;text-align:left;min-width:0!important}
.wl-table thead th{position:sticky;top:0;background:#f7f0f8!important;z-index:1;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:#5a4060}
.wl-table tbody th{background:#fbf6ee!important;font-size:.85rem;color:#7a4b10;font-weight:800}
.wl-table td:first-child{font-weight:650}
.wl-reveal-cell{display:none;border:1px dashed #d9c3a2;background:#fff8ec;color:transparent;border-radius:8px;padding:.15rem .5rem;min-height:32px;min-width:6rem;text-align:left;font-weight:650}
.wl-reveal-cell[aria-pressed="true"]{color:#5a3608;border-style:solid}
.wl-hide-2 .wl-plain{display:none}
.wl-hide-2 .wl-reveal-cell{display:inline-block}
.wl-reveal-cell .wl-ph{color:#9b7a55;font-weight:600}
.wl-reveal-cell[aria-pressed="true"] .wl-ph{display:none}
.wl-reveal-cell:not([aria-pressed="true"]) .wl-ans{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.wl-list:not(.is-ready) .wl-list-tools{display:none}

/* ---------- book fit card ---------- */
.wl-fit{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1.4rem;align-items:start;background:linear-gradient(140deg,#fff 0,#fbf6ee 100%)}
.wl-fit img{width:100%;height:auto;border-radius:8px;box-shadow:0 10px 24px #2c1f3533;margin:0!important}
.wl-fit h3{margin:0 0 .5rem!important;font-size:1.35rem!important;color:var(--wl-plum)}
.wl-fit .wl-chiprow{display:flex;flex-wrap:wrap;gap:.4rem;margin:.2rem 0 .7rem}
.wl-fit .wl-pill{display:inline-block;background:#f1e7f4;border-radius:999px;padding:.25rem .7rem;font-weight:750;font-size:.88rem;color:#3d2547}
.wl-fit .wl-pill--age{background:#fff0d9;color:#7a4b10}
.wl-fit dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem .9rem;margin:.6rem 0 1rem}
.wl-fit dt{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--wl-muted);font-weight:800}
.wl-fit dd{margin:0;font-weight:700}
.wl-dots{display:inline-flex;gap:4px;vertical-align:middle;margin-left:.2rem}
.wl-dots i{width:12px;height:12px;border-radius:50%;border:2px solid #bba9c6;display:inline-block}
.wl-dots i.on{background:#54315d;border-color:#54315d}
.wl-dots--v i.on{background:#d98a1c;border-color:#d98a1c}
.wl-fit .wl-actions a{text-decoration:none!important}
.wl-fit .wl-best{margin:0 0 .3rem;color:#4a3f4d}

/* ---------- callouts ---------- */
.wl-fact{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.9rem;align-items:start;background:#fff8ec;border:1px solid #f0d9b5;border-radius:16px;padding:1rem 1.2rem;margin:1.6rem 0}
.wl-fact .wl-fact-badge{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f8c75a;color:#3a2700;font-weight:900;font-size:1.1rem}
.wl-fact p{margin:0!important}
.wl-fact strong:first-child{color:#7a4b10}

@media (max-width:760px){
  .wl-play{grid-template-columns:1fr}
  .wl-words{max-height:none}
  .wl-opts{grid-template-columns:1fr}
  .wl-fit{grid-template-columns:96px minmax(0,1fr);gap:1rem}
}
@media print{.wl-actions,.wl-list-tools,.wl-cards-tools{display:none}.wl-table-wrap{max-height:none;overflow:visible}}
@media (max-width:760px){.wl-words{flex-direction:row;flex-wrap:wrap;gap:.45rem .6rem}}

/* ---------- vocabulary showcase (20 pairs) ---------- */
.wl-show-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-top:.9rem}
.wl-show-group{border:1px solid var(--wl-line);border-radius:16px;padding:.9rem 1rem;background:#fffdf9}
.wl-show-group h4{margin:0 0 .5rem!important;font-size:.82rem!important;letter-spacing:.08em;text-transform:uppercase;color:#9b5a14!important;line-height:1.3}
.wl-show-group ul{list-style:none;margin:0!important;padding:0!important}
.wl-show-group li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.38rem 0;border-bottom:1px dashed #efe3d8;margin:0!important}
.wl-show-group li:last-child{border-bottom:0}
.wl-show-a{font-weight:700;color:#2f2338}
.wl-show-b{text-align:right;color:#7a4b10;font-weight:600}
.wl-show-more{margin:1rem 0 0!important;font-weight:750}
@media (max-width:640px){.wl-show-grid{grid-template-columns:1fr}}

/* "Vocabulary & topics" line on the "Who it's for" card */
.wl-fit .wl-topics{font-size:.95rem;line-height:1.5;margin:.5rem 0}
