/* Made of, as Goods writes it: each material is a line, and a tap opens it onto one close-up and why we chose it. One
   open at a time per piece (shared/mats.js). Goods' pieces use it, and so do the tee's and the print's Made of on the drop
   page and the pay page (shared/made.css), so the colours and the timing come from the page it's on. */
.mats{list-style:none;margin-top:10px;border-top:1px solid var(--rule)}
.mats > li{border-bottom:1px solid var(--rule)}
.mat{display:grid;grid-template-columns:44px 1fr 14px;align-items:center;gap:14px;width:100%;padding:10px 0;font-size:16px;font-weight:500;line-height:1.3}
.mat img{width:44px;height:44px;border-radius:3px;object-fit:cover}
.mat i{position:relative;width:12px;height:12px;justify-self:end;transition:transform .45s var(--ease, cubic-bezier(.2,.7,.1,1))}
.mat i::before,.mat i::after{content:"";position:absolute;left:0;top:5.3px;width:12px;height:1.4px;background:currentColor}
.mat i::after{transform:rotate(90deg)}
.mat[aria-expanded="true"] i{transform:rotate(45deg)}
.mat:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.mats .why{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--arrive, cubic-bezier(.16,1,.3,1))}
.mats .why.on{grid-template-rows:1fr}
/* shut, it's out of reach as well as out of sight, once it has finished closing */
.mats .why > div{overflow:hidden;min-height:0;visibility:hidden;transition:visibility 0s .55s}
.mats .why.on > div{visibility:visible;transition:none}
.mats .why figure{display:grid;gap:14px;padding:4px 0 20px}
.mats .why figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px;transform:scale(1.03);opacity:0;transition:transform .9s var(--arrive, cubic-bezier(.16,1,.3,1)),opacity .5s ease}
.mats .why.on figure img{transform:none;opacity:1}
.mats .why p{font:400 18px/1.45 var(--serif);font-variation-settings:"opsz" 18;max-width:40ch;text-wrap:pretty}
html:not(.js) .mats .why{grid-template-rows:1fr}   /* without the script, every reason simply shows */
html:not(.js) .mats .why > div{visibility:visible}
html:not(.js) .mats .why figure img{transform:none;opacity:1}
@media (min-width:860px){
  .mats .why figure{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:end;padding:6px 0 22px}
  .mats .why figure img{aspect-ratio:1}
}
@media (prefers-reduced-motion: reduce){
  .mat i,.mats .why,.mats .why > div,.mats .why figure img{transition:none}
}
