/* "More free tools" near the end of every free tool page (scripts/more_tools.py). mt- prefix.
   Same language as the guides: white tiles with a line border, a tinted well with a small looping drawing. */
.mt-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mt-c{display:flex;flex-direction:column;background:#fff;border-radius:26px;padding:14px 14px 22px;box-shadow:0 0 0 1.5px var(--line);color:var(--ink);text-decoration:none;
  transition:box-shadow .2s,transform .3s var(--ease)}
.mt-c:hover,.mt-c:focus-visible{box-shadow:0 0 0 1.5px var(--ink),0 6px 0 rgba(23,20,15,.12);transform:translateY(-4px) rotate(-.6deg)}
.mt-c:nth-child(even):hover{transform:translateY(-4px) rotate(.6deg)}
.mt-vis{position:relative;height:170px;border-radius:18px;background:var(--tint);overflow:hidden;display:grid;place-items:center}
.alt .mt-vis{background:var(--paper2)}
.mt-t{display:block;margin:20px 12px 0}
.mt-t b{display:block;font:700 21px/1.2 var(--disp);letter-spacing:-.02em}
.mt-t small{display:block;margin-top:6px;font-size:15px;color:var(--ink2)}
.mt-go{margin:16px 12px 0;display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:800}
.mt-go svg{width:15px;height:15px;transition:transform .25s var(--ease)}
.mt-c:hover .mt-go svg{transform:translateX(4px)}
.mt-go{margin-top:auto;padding-top:16px}

/* QR: a scan line runs over the code, the code changes colour */
.mt-qrc{position:relative;display:block;width:104px;height:104px;background:#fff;border-radius:14px;padding:10px;box-shadow:0 14px 22px -14px rgba(23,20,15,.5);animation:mt-ink 9s infinite;overflow:hidden}
.mt-qrc .fq{display:block;width:100%;height:100%}
.mt-scan{position:absolute;left:4px;right:4px;top:8px;height:3px;border-radius:2px;background:var(--pop);box-shadow:0 0 12px 3px rgba(255,196,0,.55);animation:mt-scan 3s var(--ease) infinite}
@keyframes mt-scan{0%{transform:translateY(0);opacity:0}10%{opacity:1}50%{transform:translateY(86px)}90%{opacity:1}100%{transform:translateY(0);opacity:0}}
@keyframes mt-ink{0%,30%{color:#17140F}33%,63%{color:#1F3A2E}66%,96%{color:#5B2A86}100%{color:#17140F}}

/* card: front and back, turning over */
.mt-cardw{perspective:600px}
.mt-card{position:relative;width:150px;height:90px;transform-style:preserve-3d;animation:mt-flip 7s var(--ease) infinite}
.mt-cf,.mt-cb{position:absolute;inset:0;border-radius:10px;backface-visibility:hidden;box-shadow:0 14px 22px -14px rgba(23,20,15,.55)}
.mt-cf{background:#1E3A5F;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.mt-lg{width:16px;height:16px;border-radius:5px;background:#F4B942;margin-bottom:8px}
.mt-cf b{width:70%;height:8px;border-radius:4px;background:#fff}
.mt-cf s{width:50%;height:5px;border-radius:3px;background:#ffffff80}.mt-cf s.s{width:38%}
.mt-cb{background:#fff;transform:rotateY(180deg);display:grid;place-items:center}
.mt-cb span{width:58px;height:58px;color:#1E3A5F}.mt-cb .fq{display:block;width:100%;height:100%}
@keyframes mt-flip{0%,8%{transform:rotate(-4deg) rotateY(0)}42%,58%{transform:rotate(3deg) rotateY(180deg)}92%,100%{transform:rotate(-4deg) rotateY(360deg)}}

/* signature: an email, the signature writes itself at the bottom */
.mt-mail{width:190px;background:#fff;border-radius:12px;padding:14px;display:grid;gap:6px;box-shadow:0 0 0 1.5px var(--ink),0 4px 0 rgba(23,20,15,.1)}
.mt-mail>i{height:5px;border-radius:3px;background:var(--paper2)}.mt-mail>i.s{width:55%}
.mt-sg{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:9px;border-top:1.5px dashed var(--line)}
.mt-av{flex:none;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#d9b48f,#8a5a3c);animation:mt-in 6s var(--ease) infinite}
.mt-sl{flex:1;display:grid;gap:4px}
.mt-sl b{height:6px;border-radius:3px;background:var(--ink);animation:mt-w 6s var(--ease) infinite}
.mt-sl s{width:60%;height:4px;border-radius:2px;background:#E4572E;animation:mt-in 6s var(--ease) infinite .3s}
.mt-sl em{display:flex;gap:4px}
.mt-sl em i{width:8px;height:8px;border-radius:2px;background:#0A66C2;animation:mt-in 6s var(--ease) infinite .5s}
.mt-sl em i:nth-child(2){background:#17140F;animation-delay:.6s}.mt-sl em i:nth-child(3){background:#E1306C;animation-delay:.7s}
@keyframes mt-w{0%,8%{width:0}34%,90%{width:80%}100%{width:0}}
@keyframes mt-in{0%,14%{opacity:0;transform:scale(.6)}26%,90%{opacity:1;transform:none}100%{opacity:0}}

/* pixel ID: checked, then the three platforms light up in turn */
.mt-px{display:grid;gap:14px;justify-items:center}
.mt-id{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:9px 10px 9px 14px;box-shadow:0 0 0 1.5px var(--ink),0 4px 0 rgba(23,20,15,.1)}
.mt-id span{font:700 15px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.03em}
.mt-id b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:var(--okbg);color:var(--ok);animation:mt-in 4.5s var(--ease) infinite}
.mt-id svg{width:14px;height:14px}
.mt-dots{display:flex;gap:10px}
.mt-dots i{width:12px;height:12px;border-radius:50%;background:#CFC6B8;animation:mt-dot 4.5s infinite;animation-delay:var(--d)}
@keyframes mt-dot{0%,20%{background:#CFC6B8;box-shadow:none}30%,70%{background:var(--pc);box-shadow:0 0 0 4px color-mix(in srgb,var(--pc) 20%,transparent)}85%,100%{background:#CFC6B8}}

@media (max-width:900px){
  .mt-g{grid-template-columns:minmax(0,1fr);gap:12px}
  .mt-c{display:grid;grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:10px 16px 10px 10px}
  .mt-vis{grid-row:span 2;height:110px;border-radius:16px}
  .mt-vis>div{position:absolute;left:50%;top:50%;width:max-content;transform:translate(-50%,-50%) scale(.6)}
  .mt-t{margin:0}
  .mt-t b{font-size:18px}
  .mt-t small{font-size:14px;margin-top:4px}
  .mt-go{margin:8px 0 0;padding-top:0;font-size:13.5px}
}
@media (prefers-reduced-motion:reduce){
  .mt-vis *{animation:none!important}
  .mt-scan{display:none}
}

/* ---------- the closing band (tool_end in scripts/more_tools.py): compact, the same on every tool page ---------- */
.mt-end .box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:center;text-align:left;padding:52px 56px;border-radius:32px}
.mt-end h2{font-size:clamp(30px,3.4vw,46px);max-width:18ch;margin:0;line-height:1.05}
.mt-end .lede{margin:14px 0 0;max-width:52ch;font-size:17px}
.mt-rel{margin-top:14px;font-size:14px;font-weight:600;color:var(--ink2)}
.mt-rel a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.mt-ea{display:grid;justify-items:center;gap:12px}
.mt-url{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:12px;background:#fff;box-shadow:0 0 0 1.5px var(--ink),0 4px 0 rgba(23,20,15,.12);font:700 16px var(--body);transform:rotate(-2deg)}
.mt-url i{font-style:normal;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:bottom;width:0;border-right:2px solid var(--ink);animation:mt-type 6s steps(8) infinite,mt-car .8s step-end infinite}
@keyframes mt-type{0%,8%{width:0}40%,88%{width:8.6ch}100%{width:0}}
@keyframes mt-car{50%{border-color:transparent}}
.mt-ea .btn svg{transition:transform .25s var(--ease)}
.mt-ea .btn:hover svg{transform:translateX(4px)}
.mt-ea small{font-size:13px;font-weight:700;color:var(--ink2)}
@media (max-width:800px){
  .mt-end .box{grid-template-columns:minmax(0,1fr);gap:28px;padding:36px 24px;text-align:center}
  .mt-end h2,.mt-end .lede{margin-left:auto;margin-right:auto}
}
@media (prefers-reduced-motion:reduce){.mt-url i{animation:none;width:auto;border:0}}
