/* The tee's and the print's Made of on the drop page's offer and the pay page (shared/made.js; written by
   scripts/made-of.mjs): its name, one line and Goods' own rows (shared/mats.css). A quiet word with a plus opens it in
   place, as a Goods row opens, with the same timing, and the plus turns to a cross. No window over the page (Matthew,
   Nov 3: «expanding windows it doesn tneed to, slow naitons just copy more or less from the goods page»). */
.mof-go { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--rule); background: none;
  font: 500 14px/1.5 var(--sans); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mof-go:hover { border-bottom-color: currentColor; }
.mof-go i { position: relative; flex: none; width: 10px; height: 10px; transition: transform .45s var(--ease, cubic-bezier(.2, .7, .1, 1)), opacity .3s ease; }
.mof-go i::before, .mof-go i::after { content: ""; position: absolute; left: 0; top: 4.5px; width: 10px; height: 1.4px; background: currentColor; }
.mof-go i::after { transform: rotate(90deg); }
.mof-go[aria-expanded="true"] i { transform: rotate(45deg); }

/* the opening's timing, a Goods row's: shared/made.js draws it on the compositor, the panel's room laid out at once */
:root { --mof-t: .55s; --mof-e: var(--arrive, cubic-bezier(.16, 1, .3, 1)); }
.mof { display: grid; grid-template-rows: 0fr; }
.mof.on { grid-template-rows: 1fr; }
/* shut, it's out of reach as well as out of sight (made.js keeps it .on until it has finished closing) */
.mof > div { overflow: hidden; min-height: 0; visibility: hidden; }
.mof.on > div { visibility: visible; }
.mof h3 { padding-top: 6px; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 30; font-size: 26px; line-height: 1.1; }
.mof-l { margin-top: 6px; font-family: var(--serif); font-variation-settings: "opsz" 20; font-size: 17px; line-height: 1.4; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
/* the last row's rule is the panel's floor; a little air under it before whatever follows */
.mof .mats { margin-bottom: 26px; padding: 0; }
html:not(.js) .mof { grid-template-rows: 1fr; }   /* without the script, it simply shows */
html:not(.js) .mof > div { visibility: visible; }

/* the rows, on this paper: the buttons are bare whatever form they sit in, and the drop's own section called why keeps
   to its section */
.mof .mat { width: 100%; min-width: 0; max-width: none; min-height: 0; padding: 10px 0; border: 0; border-radius: 0; background: none; color: inherit;
  font: 500 16px/1.3 var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mof .mat:hover { background: none; color: inherit; }
.mof .mats .why { padding: 0; margin: 0; border: 0; max-width: none; gap: 0; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.mof .mats .why p { color: var(--ink); }
.mof .mats .why figure img { background: #ECE4D9; }
/* A phone shows each square close-up in a 4:3 box, cropped to fill (shared/mats.css). The print's "cut to the edge" row
   is the whole print, so it sits whole on its own paper colour instead, the box's height unchanged. The tee's two
   drawings are on cloth, where bars would show, so they keep filling and the crop moves to spare the fruit: the lowest
   blackcurrant and the highest cherry. The rest are close-ups of cloth and paper, and a crop of them is still them. */
.mof #why-pr-cut figure img { object-fit: contain; }
.mof #why-rp-back-3 figure img { object-position: 50% 80%; }
.mof #why-rp-sprig figure img { object-position: 50% 25%; }

@media (prefers-reduced-motion: reduce) {
  .mof-go i { transition: none; }
}
