/* =====================================================================
   Toolkit — education and tools, one row each. Markup: Widgets/Toolkit.php;
   arrival: js/toolkit.js. Style controls write the custom properties on
   .sz-tk; the defaults below are the design.
   ===================================================================== */

.sz-tk{
  --szt-bg:var(--sz-card); --szt-radius:28px; --szt-line:var(--sz-line); --szt-label:236px;
  --szt-ink:var(--sz-ink); --szt-muted:var(--sz-t2); --szt-pill:var(--sz-fill); --szt-pill-ink:var(--sz-ink);
  min-width:0;border-radius:var(--szt-radius);background:var(--szt-bg);box-shadow:var(--sz-s1),inset 0 0 0 1px rgba(13,27,42,.04);overflow:hidden;container-type:inline-size;
}

.sz-tk__row{display:grid;grid-template-columns:var(--szt-label) minmax(0,1fr);align-items:center;gap:12px 24px;min-height:76px;padding:18px 24px}
/* a hairline between rows */
.sz-tk__row + .sz-tk__row{box-shadow:inset 0 1px 0 var(--szt-line)}

.sz-tk__head{display:flex;align-items:center;gap:12px;min-width:0}
.sz-tk__tile{width:36px;height:36px;border-radius:10px;font-size:17px}
.sz-tk__label{min-width:0;font-size:14px;font-weight:600;line-height:1.3;color:var(--szt-ink)}
/* how many: a quiet number, the same weight as the pills' text */
.sz-tk__count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:8px;padding:0 6px;vertical-align:1px;border-radius:99px;background:var(--szt-pill);font-size:11.5px;font-weight:700;line-height:1;color:var(--sz-t3);font-variant-numeric:tabular-nums}
.sz-tk__row.is-o .sz-tk__count{background:var(--sz-peach);color:#C2410C}

/* two lines: what, then where (and when) */
.sz-tk__text{min-width:0}
.sz-tk__title{display:block;font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--szt-ink)}
.sz-tk__sub{display:block;margin-top:3px;font-size:14px;line-height:1.45;color:var(--szt-muted)}
.sz-tk__sep{margin:0 .45em;color:var(--sz-t3)}
.sz-tk__years{font-variant-numeric:tabular-nums;white-space:nowrap}

/* the tools: pills with the row's colour as a dot; not buttons, so no hover */
.sz-tk .sz-tk__tools{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.sz-tk .sz-tk__tools li{display:inline-flex;align-items:center;gap:7px;height:36px;margin:0;padding:0 13px 0 11px;border-radius:99px;background:var(--szt-pill);font-size:14px;font-weight:500;line-height:1;color:var(--szt-pill-ink);white-space:nowrap}
.sz-tk .sz-tk__tools li::before{content:"";flex:none;width:8px;height:8px;border-radius:3px;background:var(--sz-navy)}
.sz-tk__row.is-o .sz-tk__tools li::before{background:var(--sz-orange)}
/* used every day: said in words, after a hairline */
.sz-tk__daily{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--sz-t3)}
.sz-tk__daily::before{content:"";width:1px;height:12px;background:rgba(13,27,42,.14)}

/* narrow cards (phones): the label above its content */
@container (max-width:700px){
  .sz-tk__row{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 18px}
  .sz-tk__tile{width:34px;height:34px;font-size:16px}
  .sz-tk .sz-tk__tools li{height:34px;font-size:13.5px}
}

/* the arrival (armed by the script only when it will play): rows rise in turn, tiles spring, pills cascade */
.sz-tk.is-armed .sz-tk__row{opacity:0;transform:translateY(12px)}
.sz-tk.is-armed .sz-tk__tile{transform:scale(.6) rotate(-8deg)}
.sz-tk.is-armed .sz-tk__tools li,.sz-tk.is-armed .sz-tk__text{opacity:0;transform:translateY(6px)}
.sz-tk.is-lit .sz-tk__row{opacity:1;transform:none;transition:opacity .45s var(--sz-ease),transform .6s var(--sz-ease);transition-delay:calc(var(--r) * 120ms)}
.sz-tk.is-lit .sz-tk__tile{transform:none;transition:transform .55s var(--sz-spring);transition-delay:calc(var(--r) * 120ms + 80ms)}
.sz-tk.is-lit .sz-tk__text{opacity:1;transform:none;transition:opacity .4s var(--sz-ease),transform .5s var(--sz-ease);transition-delay:calc(var(--r) * 120ms + 140ms)}
.sz-tk.is-lit .sz-tk__tools li{opacity:1;transform:none;transition:opacity .35s var(--sz-ease),transform .45s var(--sz-spring);transition-delay:calc(var(--r) * 120ms + 140ms + var(--i) * 35ms)}
