/* THE MAKER WALL (src/lib/maker-wall.ts): a list of categories, and every manufacturer A to Z beside it. Radio buttons and CSS. Loaded by the pages that
 * draw it (the home page, procurement), on the kit or not: it depends on nothing but longform.css. --mw-bleed is the padding of the box it stands in on a
 * phone, so the rows that slide reach its edges. maker-wall.js does what CSS cannot when a category is pressed. */
.lf .mw { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 26px; align-items: start; min-width: 0; margin: 0; padding: 0; border: 0; overflow-anchor: none; }
.lf .mw > legend { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lf .mw-r { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lf .mw-cats { position: sticky; top: 112px; display: grid; border-top: 1px solid #16181c; }
.lf .mw-cats label { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px 7px 14px; border-bottom: 1px solid #dfe2e7; cursor: pointer; transition: background-color 160ms ease; }
.lf .mw-cats label:hover { background: #f4f5f7; }
.lf .mw-cats strong { display: block; font-family: 'Bricolage Grotesque', 'Ubuntu', sans-serif; font-size: 17px; line-height: 1.25; font-weight: 700; color: #000; }
.lf .mw-cats em { display: block; font-family: 'Ubuntu', sans-serif; font-style: normal; font-size: 13px; line-height: 1.35; color: #5b6472; }
.lf .mw-cats b { flex: none; min-width: 30px; padding: 3px 7px; border-radius: 999px; box-sizing: border-box; background: #eceef1; text-align: center; font-family: 'Ubuntu', sans-serif; font-size: 13px; line-height: 1.4; font-weight: 700; color: #33383f; }
.lf .mw-r:nth-of-type(1):checked ~ .mw-cats label:nth-of-type(1), .lf .mw-r:nth-of-type(2):checked ~ .mw-cats label:nth-of-type(2), .lf .mw-r:nth-of-type(3):checked ~ .mw-cats label:nth-of-type(3), .lf .mw-r:nth-of-type(4):checked ~ .mw-cats label:nth-of-type(4), .lf .mw-r:nth-of-type(5):checked ~ .mw-cats label:nth-of-type(5), .lf .mw-r:nth-of-type(6):checked ~ .mw-cats label:nth-of-type(6), .lf .mw-r:nth-of-type(7):checked ~ .mw-cats label:nth-of-type(7), .lf .mw-r:nth-of-type(8):checked ~ .mw-cats label:nth-of-type(8), .lf .mw-r:nth-of-type(9):checked ~ .mw-cats label:nth-of-type(9), .lf .mw-r:nth-of-type(10):checked ~ .mw-cats label:nth-of-type(10), .lf .mw-r:nth-of-type(11):checked ~ .mw-cats label:nth-of-type(11), .lf .mw-r:nth-of-type(12):checked ~ .mw-cats label:nth-of-type(12), .lf .mw-r:nth-of-type(13):checked ~ .mw-cats label:nth-of-type(13) { background: #14181f; border-color: #14181f; box-shadow: inset 5px 0 0 #f31827; }
.lf .mw-r:nth-of-type(1):checked ~ .mw-cats label:nth-of-type(1) strong, .lf .mw-r:nth-of-type(2):checked ~ .mw-cats label:nth-of-type(2) strong, .lf .mw-r:nth-of-type(3):checked ~ .mw-cats label:nth-of-type(3) strong, .lf .mw-r:nth-of-type(4):checked ~ .mw-cats label:nth-of-type(4) strong, .lf .mw-r:nth-of-type(5):checked ~ .mw-cats label:nth-of-type(5) strong, .lf .mw-r:nth-of-type(6):checked ~ .mw-cats label:nth-of-type(6) strong, .lf .mw-r:nth-of-type(7):checked ~ .mw-cats label:nth-of-type(7) strong, .lf .mw-r:nth-of-type(8):checked ~ .mw-cats label:nth-of-type(8) strong, .lf .mw-r:nth-of-type(9):checked ~ .mw-cats label:nth-of-type(9) strong, .lf .mw-r:nth-of-type(10):checked ~ .mw-cats label:nth-of-type(10) strong, .lf .mw-r:nth-of-type(11):checked ~ .mw-cats label:nth-of-type(11) strong, .lf .mw-r:nth-of-type(12):checked ~ .mw-cats label:nth-of-type(12) strong, .lf .mw-r:nth-of-type(13):checked ~ .mw-cats label:nth-of-type(13) strong { color: #fff; }
.lf .mw-r:nth-of-type(1):checked ~ .mw-cats label:nth-of-type(1) em, .lf .mw-r:nth-of-type(2):checked ~ .mw-cats label:nth-of-type(2) em, .lf .mw-r:nth-of-type(3):checked ~ .mw-cats label:nth-of-type(3) em, .lf .mw-r:nth-of-type(4):checked ~ .mw-cats label:nth-of-type(4) em, .lf .mw-r:nth-of-type(5):checked ~ .mw-cats label:nth-of-type(5) em, .lf .mw-r:nth-of-type(6):checked ~ .mw-cats label:nth-of-type(6) em, .lf .mw-r:nth-of-type(7):checked ~ .mw-cats label:nth-of-type(7) em, .lf .mw-r:nth-of-type(8):checked ~ .mw-cats label:nth-of-type(8) em, .lf .mw-r:nth-of-type(9):checked ~ .mw-cats label:nth-of-type(9) em, .lf .mw-r:nth-of-type(10):checked ~ .mw-cats label:nth-of-type(10) em, .lf .mw-r:nth-of-type(11):checked ~ .mw-cats label:nth-of-type(11) em, .lf .mw-r:nth-of-type(12):checked ~ .mw-cats label:nth-of-type(12) em, .lf .mw-r:nth-of-type(13):checked ~ .mw-cats label:nth-of-type(13) em { color: #cfd5dd; }
.lf .mw-r:nth-of-type(1):checked ~ .mw-cats label:nth-of-type(1) b, .lf .mw-r:nth-of-type(2):checked ~ .mw-cats label:nth-of-type(2) b, .lf .mw-r:nth-of-type(3):checked ~ .mw-cats label:nth-of-type(3) b, .lf .mw-r:nth-of-type(4):checked ~ .mw-cats label:nth-of-type(4) b, .lf .mw-r:nth-of-type(5):checked ~ .mw-cats label:nth-of-type(5) b, .lf .mw-r:nth-of-type(6):checked ~ .mw-cats label:nth-of-type(6) b, .lf .mw-r:nth-of-type(7):checked ~ .mw-cats label:nth-of-type(7) b, .lf .mw-r:nth-of-type(8):checked ~ .mw-cats label:nth-of-type(8) b, .lf .mw-r:nth-of-type(9):checked ~ .mw-cats label:nth-of-type(9) b, .lf .mw-r:nth-of-type(10):checked ~ .mw-cats label:nth-of-type(10) b, .lf .mw-r:nth-of-type(11):checked ~ .mw-cats label:nth-of-type(11) b, .lf .mw-r:nth-of-type(12):checked ~ .mw-cats label:nth-of-type(12) b, .lf .mw-r:nth-of-type(13):checked ~ .mw-cats label:nth-of-type(13) b { background: #dd1421; color: #fff; }
.lf .mw-r:nth-of-type(1):focus-visible ~ .mw-cats label:nth-of-type(1), .lf .mw-r:nth-of-type(2):focus-visible ~ .mw-cats label:nth-of-type(2), .lf .mw-r:nth-of-type(3):focus-visible ~ .mw-cats label:nth-of-type(3), .lf .mw-r:nth-of-type(4):focus-visible ~ .mw-cats label:nth-of-type(4), .lf .mw-r:nth-of-type(5):focus-visible ~ .mw-cats label:nth-of-type(5), .lf .mw-r:nth-of-type(6):focus-visible ~ .mw-cats label:nth-of-type(6), .lf .mw-r:nth-of-type(7):focus-visible ~ .mw-cats label:nth-of-type(7), .lf .mw-r:nth-of-type(8):focus-visible ~ .mw-cats label:nth-of-type(8), .lf .mw-r:nth-of-type(9):focus-visible ~ .mw-cats label:nth-of-type(9), .lf .mw-r:nth-of-type(10):focus-visible ~ .mw-cats label:nth-of-type(10), .lf .mw-r:nth-of-type(11):focus-visible ~ .mw-cats label:nth-of-type(11), .lf .mw-r:nth-of-type(12):focus-visible ~ .mw-cats label:nth-of-type(12), .lf .mw-r:nth-of-type(13):focus-visible ~ .mw-cats label:nth-of-type(13) { outline: 3px solid #14181f; outline-offset: 2px; }
.lf .mw-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 7px; list-style: none; margin: 0; padding: 0; }
.lf .mw-wall > li { min-width: 0; }
/* A maker stays if it sells what was pressed. */
.lf .mw-r:nth-of-type(2):checked ~ .mw-wall > li:not(.k2), .lf .mw-r:nth-of-type(3):checked ~ .mw-wall > li:not(.k3), .lf .mw-r:nth-of-type(4):checked ~ .mw-wall > li:not(.k4), .lf .mw-r:nth-of-type(5):checked ~ .mw-wall > li:not(.k5), .lf .mw-r:nth-of-type(6):checked ~ .mw-wall > li:not(.k6), .lf .mw-r:nth-of-type(7):checked ~ .mw-wall > li:not(.k7), .lf .mw-r:nth-of-type(8):checked ~ .mw-wall > li:not(.k8), .lf .mw-r:nth-of-type(9):checked ~ .mw-wall > li:not(.k9), .lf .mw-r:nth-of-type(10):checked ~ .mw-wall > li:not(.k10), .lf .mw-r:nth-of-type(11):checked ~ .mw-wall > li:not(.k11), .lf .mw-r:nth-of-type(12):checked ~ .mw-wall > li:not(.k12), .lf .mw-r:nth-of-type(13):checked ~ .mw-wall > li:not(.k13) { display: none; }
.lf .mw-cell { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 7px 7px 8px; border: 1px solid #eceef1; border-radius: 6px; background: #fff; text-decoration: none; }
.lf .mw-face { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 5px; }
.lf .mw-face img { display: block; width: auto; height: auto; max-width: 100%; max-height: 39px; object-fit: contain; filter: grayscale(35%); opacity: 0.92; transition: filter 200ms ease, opacity 200ms ease; }
.lf .mw-word { font-family: 'Bricolage Grotesque', 'Ubuntu', sans-serif; font-size: 15px; line-height: 1.15; font-weight: 800; text-align: center; color: #14181f; }
.lf .mw-tags { flex: 1; padding-top: 5px; border-top: 1px solid #eceef1; font-family: 'Ubuntu', sans-serif; font-size: 11.5px; line-height: 1.38; text-align: center; text-wrap: balance; color: #5b6472; }
.lf .mw-tags i { font-style: normal; white-space: nowrap; }
.lf .mw-cell--linked { overflow: hidden; border-color: #dfe2e7; transition: box-shadow 160ms ease, border-color 160ms ease; }
.lf .mw-cell--linked::after { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent #dd1421 transparent transparent; }
/* Only a maker with a page of its own answers the pointer. */
.lf .mw-cell--linked:hover, .lf .mw-cell--linked:focus-visible { border-color: #dd1421; box-shadow: 0 6px 20px rgba(20, 24, 31, 0.13); }
.lf .mw-cell--linked:hover img, .lf .mw-cell--linked:focus-visible img { filter: none; opacity: 1; }
/* The word that was pressed is the one in red. */
.lf .mw-r:nth-of-type(2):checked ~ .mw-wall .t2, .lf .mw-r:nth-of-type(3):checked ~ .mw-wall .t3, .lf .mw-r:nth-of-type(4):checked ~ .mw-wall .t4, .lf .mw-r:nth-of-type(5):checked ~ .mw-wall .t5, .lf .mw-r:nth-of-type(6):checked ~ .mw-wall .t6, .lf .mw-r:nth-of-type(7):checked ~ .mw-wall .t7, .lf .mw-r:nth-of-type(8):checked ~ .mw-wall .t8, .lf .mw-r:nth-of-type(9):checked ~ .mw-wall .t9, .lf .mw-r:nth-of-type(10):checked ~ .mw-wall .t10, .lf .mw-r:nth-of-type(11):checked ~ .mw-wall .t11, .lf .mw-r:nth-of-type(12):checked ~ .mw-wall .t12, .lf .mw-r:nth-of-type(13):checked ~ .mw-wall .t13 { font-weight: 700; color: #c8121f; }
@media (max-width: 1000px) {
  .lf .mw { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lf .mw-cats { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 0; }
  .lf .mw-cats label { padding: 8px 10px 8px 12px; border: 1px solid #dfe2e7; border-radius: 6px; }
  .lf .mw-cats em { display: none; }
  .lf .mw-cats strong { font-size: 15.5px; }
}
@media (max-width: 760px) {
  .lf .mw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .lf .mw-cats label { padding: 7px 7px 7px 11px; gap: 6px; }
  .lf .mw-cats strong { font-size: 14.5px; }
  .lf .mw-cats b { min-width: 26px; padding: 2px 5px; font-size: 12px; }
  /* Sixty makers one row under another are five screens on a phone: four rows that slide. */
  .lf .mw ul.mw-wall { grid-template-columns: none; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: 128px; gap: 7px; margin: 0 calc(-1 * var(--mw-bleed, 14px)); padding: 2px var(--mw-bleed, 14px) 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--mw-bleed, 14px); -webkit-overflow-scrolling: touch; }
  .lf .mw-wall > li { scroll-snap-align: start; }
  .lf .mw-tags { font-size: 11.5px; }
}
