/* Lab Equipment = the one store, every product opens its own sales page in a new tab (Dre 2026-11-16 ~2:52 AM PT, "A: new tab").
   1) Shelf tiles on /equipment/: each plugin, skill and dashboard as its own tile with a Plugin / Skill / Dashboard tag and price
      (made from the shop catalog by scripts/equipment-tiles.mjs).
   2) Homepage equipment bench: 5 cards matching Lab Equipment (Dre: "5 cards, match"), Plugin Builder wide on top.
   3) Jump links: full product names where there is room. */

/* 1) Shelf tiles */
.shelf-tiles { margin: 22px 0 6px; }
.shelf-tiles-h { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--light-gold, #f3d58a); margin: 0 0 6px; }
.shelf-tiles ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d6c0922e; }
.shelf-tile { border-bottom: 1px solid #d6c0922e; }
.shelf-tile-main { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 14px 10px 14px 4px; color: var(--ivory, #f1ece0); text-decoration: none; transition: background .2s; }
.shelf-tile-main:hover { background: #d9a93f12; }
.shelf-tile-main:focus-visible, .shelf-tile-demo:focus-visible { outline: 2px solid var(--light-gold, #f3d58a); outline-offset: 2px; }
.shelf-tile-main img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.shelf-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shelf-tile-text b { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.shelf-tile-text span { font-size: 14px; line-height: 1.45; color: #c9bea8; }
.shelf-tile-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.shelf-tile-meta .badge { min-height: 0; padding: 3px 7px; font-size: 10px; }
.shelf-tile-price { font-size: 16px; color: var(--light-gold, #f3d58a); }
.shelf-tile-go { color: var(--gold, #d9a93f); font-size: 15px; }
.shelf-tile-demo { display: inline-flex; align-items: center; min-height: 40px; margin: -6px 0 8px 76px; font-size: 14px; color: var(--light-gold, #f3d58a); text-decoration: underline; text-underline-offset: 3px; }
.shelf-tile-demo:hover { color: var(--ivory, #f1ece0); }
@media (max-width: 600px) {
  .shelf-tile-main { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 14px 2px; }
  .shelf-tile-main img { width: 48px; height: 48px; border-radius: 12px; }
  .shelf-tile-go { display: none; }
  .shelf-tile-text b { font-size: 16px; }
  .shelf-tile-demo { margin-left: 62px; }
}

/* 3) Jump links: "Social Media Designer" / "SB Agent Prompt Pack" in full, short on phones */
@media (max-width: 900px) { .lab-journey .jl-full { display: none; } }

/* Collapsible shelves (Dre 2026-11-17 9:50 AM PT): each shelf is a <details>, closed until tapped. */
.shelf-tiles > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #d6c09259; border-radius: 12px; margin: 0; user-select: none; }
.shelf-tiles > summary::-webkit-details-marker { display: none; }
.shelf-tiles > summary::marker { content: ""; }
.shelf-tiles > summary:hover, .shelf-tiles > summary:focus-visible { border-color: var(--light-gold, #f3d58a); }
.shelf-tiles > summary:focus-visible { outline: 2px solid var(--light-gold, #f3d58a); outline-offset: 2px; }
.shelf-tiles-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.shelf-tiles-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.shelf-tiles[open] .shelf-tiles-toggle::after { transform: rotate(-135deg) translateY(-2px); }
.shelf-tiles .shelf-hide, .shelf-tiles[open] .shelf-show { display: none; }
.shelf-tiles[open] .shelf-hide { display: inline; }
.shelf-tiles[open] > summary { border-radius: 12px 12px 0 0; }
.shelf-tiles[open] > ul { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .shelf-tiles-toggle::after { transition: none; } }

/* Card titles open their product too (Dre 2026-11-17 6:13 PM PT: "make the card titles clickable as well").
   They look the same as before; a mouse hover underlines them. */
.card-title-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* 4) Glass cards, look A (Dre 2026-11-19 9:08 PM PT: "you don't need too much information on the preview cards. Use a glass iOS
      look for them, and that brown lettering on the cream background, it's not really dynamic. I don't think that's the Hermosi
      look I asked for"; 9:10 PM picked "A · glass over the picture"). Every product card on the homepage bench and Lab Equipment,
      English and Spanish, and every section tile: the picture fills the card, a frosted glass panel sits on it with the name
      (Inter 900 caps, last word gold), one hook line, the price and one flat gold button. 10:05 PM: "make them maybe
      25% smaller… a quarter of it hanging off the bottom of the card. That way, you can see the card details": the panel is
      about 25% smaller and translateY(25%) hangs a quarter of it below the picture; the card keeps room under it. The card's tag (product code / kind)
      is a small glass pill on the picture. The whole picture still opens the product (scene-link), and so do the title and button.
      Two cards to a row, one on phones. */
html body .equipment-shelf, html body .equipment-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; border: 0; }
html body .equipment-directory { margin-top: 10px; padding-bottom: 20px; }
html body .equipment-directory > .product-group, html body .equipment-shelf > .bench-group { grid-column: 1 / -1; }

html body :is(.equipment-shelf .shelf-item, .equipment-directory .equipment-card, .group-tiles .group-tile) {
  position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); gap: 0; margin: 0 0 34px; padding: 0;
  border: 0; border-radius: 28px; overflow: visible; isolation: isolate; background: transparent; min-width: 0; box-shadow: none;
}
html body :is(.equipment-shelf .shelf-item, .equipment-directory .equipment-card, .group-tiles .group-tile):hover { background: transparent; box-shadow: none; }
html body :is(.shelf-item, .equipment-card, .group-tile):hover > :is(.product-scene, .group-scene) { box-shadow: 0 44px 90px -40px #000, 0 0 0 1px #f3d58a66; }
/* The picture box keeps the card's full width and its own shape (align-self: start + width: 100%). Before 2026-11-24 it was
   align-self: stretch, which Safari (every iPhone browser and Safari on a Mac) reads as "be as tall as the glass panel",
   then shrinks the width to match, so the product pictures came out tiny and hidden under the panel (Dre 2026-11-24
   8:12 PM PT: "why are you hiding my project images underneath the placard?"). Chrome looked fine, so it was missed. */
html body :is(.equipment-shelf .shelf-item > .product-scene, .equipment-directory .equipment-card > .product-scene, .group-tiles .group-tile > .group-scene) {
  grid-area: 1 / 1; align-self: start; justify-self: stretch; width: 100%; height: auto; min-height: 0; aspect-ratio: 1260 / 880; margin: 0;
  border: 0; border-radius: 28px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 40%, #302313, #0d0b07);
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px #ffffff1f; transition: box-shadow .25s ease;
}
html body .group-tiles .group-tile > .group-scene { aspect-ratio: 4 / 3; }
html body :is(.shelf-item, .equipment-card, .group-tile) :is(.product-scene, .group-scene) img { transition: transform .5s ease; }
html body :is(.shelf-item, .equipment-card, .group-tile):hover :is(.product-scene, .group-scene) img { transform: scale(1.035); }

/* the glass panel */
html body :is(.equipment-shelf .shelf-item > .product-info, .equipment-directory .equipment-card > .equipment-copy, .group-tiles .group-tile > .group-copy) {
  --ivory: #f1ece0; --gold: #f3d58a; --light-gold: #f3d58a; --muted: #e6dcc6; --line: #ffffff33;
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 4; margin: 0 14px; padding: 14px 16px 13px;
  transform: translateY(25%); border-radius: 18px; border: 1px solid #ffffff47; color: #f1ece0; color-scheme: dark; text-align: left;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; min-width: 0; flex: none;
  background: linear-gradient(135deg, #ffffff2a, #ffffff0a), #0d0b0799;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 #ffffff55, 0 20px 40px -20px #000c;
}
html body :is(.shelf-item, .equipment-card, .group-tile):hover > :is(.product-info, .equipment-copy, .group-copy) { background: linear-gradient(135deg, #ffffff33, #ffffff10), #0d0b0799; }

/* name: Inter 900 caps, last word gold */
html body :is(.shelf-item .product-info h3, .equipment-card .equipment-copy h2, .group-tile .group-copy :is(h3, h4)) {
  font-family: Inter, system-ui, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.02;
  font-size: 21px; margin: 0; color: #f1ece0; text-align: left; max-width: none; text-wrap: balance;
}
html body .equipment-card .equipment-copy h2 { font-size: 24px; }
html body :is(.shelf-item, .equipment-card, .group-tile) :is(h2, h3, h4) a { color: inherit; }
html body :is(.shelf-item, .equipment-card, .group-tile) :is(h2, h3, h4) em { font-style: normal; color: #f3d58a; }

/* one hook line */
html body :is(.shelf-item .product-info > p, .equipment-card .equipment-copy > .lede, .group-tile .group-copy > p) {
  font: 600 13px/1.4 Inter, system-ui, sans-serif; color: #ece3cf; margin: 5px 0 0; max-width: none; text-align: left; letter-spacing: 0;
}

/* price + one gold button */
html body :is(.shelf-item .shelf-bottom, .group-tile .group-bottom) {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: nowrap; width: 100%; margin: 10px 0 0;
  font: 900 18px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: #f1ece0;
}
html body :is(.shelf-item .shelf-bottom, .group-tile .group-bottom) small { font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: 0; color: #d6cbb3; margin-left: 2px; }
html body .equipment-card .equipment-copy > .price { font: 900 20px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: #f1ece0; margin: 10px 0 0; text-align: left; }
/* The price and the button share a row when they fit; when they don't (phones, tablets, longer Spanish buttons) the button
   moves under the price and the price stays on one line (Dre 2026-11-23 11:27 PM PT, "Yeah, fix it", on the Spanish
   Plugins y skills card's "Desde $17" breaking onto three lines; the same squeeze broke "From $17", "$17", "$37", "$67" and
   "$97" on other cards at some phone and tablet widths). Before: a grid whose price column could shrink to almost nothing. */
html body .equipment-directory .equipment-card > .equipment-copy { display: flex; flex-flow: row wrap; justify-content: flex-start; column-gap: 14px; row-gap: 0; align-items: center; }
html body .equipment-card .equipment-copy > :is(h2, .lede) { flex: 0 0 100%; min-width: 0; }
html body .equipment-card .equipment-copy > .price { flex: 1 0 auto; white-space: nowrap; }
html body .equipment-card .equipment-copy > .button { flex: 0 1 auto; max-width: 100%; margin: 10px 0 0; }
/* on the smallest phones (320 px wide) the longest buttons are wider than the card: there they get a little less side
   padding and slightly smaller letters so they stay on one line, and if a button still can't fit, its words wrap inside
   it rather than spill past its edge */
html body .equipment-directory .equipment-card .equipment-copy > .button { white-space: normal; text-align: center; }
@media (max-width: 340px) { html body .equipment-directory .equipment-card .equipment-copy > .button { padding: 0 9px; font-size: 10px; letter-spacing: .02em; } }
html body .equipment-card .equipment-copy > .shelf-tiles { flex: 0 0 100%; min-width: 0; order: 9; margin: 10px 0 0; }
html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button) {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 34px; padding: 0 15px; border-radius: 999px;
  background: #d9a93f; color: #15110a; border: 0; box-shadow: none; text-decoration: none;
  font: 900 11px/1 Inter, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase;
}
html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button):hover { background: #f3d58a; color: #15110a; }
html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the tag: a small glass pill on the picture */
html body :is(.shelf-item .product-scene .product-code, .equipment-card .product-scene .product-code, .group-tile .group-scene .group-kind) {
  position: absolute; left: 16px; top: 16px; right: auto; bottom: auto; z-index: 5; margin: 0; width: auto; max-width: calc(100% - 32px);
  padding: 8px 12px; border-radius: 999px; border: 1px solid #ffffff3d; background: #0d0b0740;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap;
}

/* the shelf lists (Plugins & skills, Dashboards) open inside the glass */
html body .equipment-card .equipment-copy .shelf-tiles > summary { border-color: #ffffff38; background: #0d0b0726; }
html body .equipment-card .equipment-copy .shelf-tiles ul { border-top-color: #ffffff2b; }
html body .equipment-card .equipment-copy .shelf-tile { border-bottom-color: #ffffff22; }
html body .equipment-card .equipment-copy .shelf-tile-main { color: #f1ece0; }
html body .equipment-card .equipment-copy .shelf-tile-main:hover { background: #ffffff12; }
html body .equipment-card .equipment-copy .shelf-tile-text span { color: #ddd2bb; }
html body .equipment-card .equipment-copy :is(.shelf-tile-price, .shelf-tile-go, .shelf-tile-demo, .shelf-tiles-h) { color: #f3d58a; }
/* The open list drops down from the pill and sits on top (Dre 2026-11-23 10:32 PM PT: "I can't close it once I open the pills
   to see the options and select the options. I can't close it back. Also, the pill option hides behind the next product that's
   underneath it"). Before: the list grew inside the glass panel, and the panel is pinned to the bottom of the picture, so the
   panel grew upward, the pill jumped up (sometimes under the sticky bar or off the screen) and the list ran down behind the
   next card. Now the panel keeps its size, the pill stays where it was tapped, the list hangs under it on its own dark glass,
   and the card with an open list sits above the cards around it (still under the sticky bars). equipment-shelf.js closes it on
   a tap outside, on Escape and after an item is picked. */
html body .equipment-card .equipment-copy .shelf-tiles { position: relative; }
html body .equipment-card .equipment-copy .shelf-tiles[open] > ul {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 0; padding: 2px 10px;
  border: 1px solid #ffffff38; border-top: 0; border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #ffffff14, #ffffff05), #15110b; box-shadow: 0 30px 60px -24px #000, 0 0 0 1px #00000040;
}
html body .equipment-card .equipment-copy .shelf-tiles[open] .shelf-tile:last-child { border-bottom: 0; }
html body .equipment-directory .equipment-card:has(.shelf-tiles[open]) { z-index: 20; }

/* 5) The two sections: Scroll Stoppers and Belong & Buy (Dre 2026-11-19 7:33–7:39 PM PT). A full-width block after the
      SB Music Video Maker card on Lab Equipment and on the homepage bench: the section's name and words, then its plugins as
      glass cards. Made by scripts/build-plugin-pages.mjs between <!--group:…--> markers. */
.product-group { border-top: 0; padding: 50px 0 30px; }
.product-group-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.product-group-head .eyebrow { justify-content: center; }
.product-group-head h2 { font-size: 48px; }
.product-group-head .lede { font-size: 20px; font-weight: 600; margin: 20px 0 10px; color: var(--ivory); }
.product-group-head p:not(.eyebrow):not(.lede) { font-size: 17px; max-width: 62ch; margin-left: auto; margin-right: auto; }
.group-tiles { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.equipment-shelf .bench-group { padding: 34px 0 10px; border: 0; }
.equipment-shelf .bench-group .product-group-head { margin-bottom: 26px; }
.equipment-shelf .bench-group .group-code { font-family: var(--mono, "JetBrains Mono", monospace); font-size: 11px; letter-spacing: .16em; color: var(--gold, #d9a93f); margin: 0 0 12px; }
.equipment-shelf .bench-group h3 { font-size: 36px; margin: 0 0 8px; }
.equipment-shelf .bench-group .product-group-head p:not(.group-code) { font-size: 16px; margin: 0 auto; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) {
  html body :is(.shelf-item, .equipment-card, .group-tile) :is(.product-scene, .group-scene) img { transition: none; }
  html body :is(.shelf-item, .equipment-card, .group-tile):hover :is(.product-scene, .group-scene) img { transform: none; }
}
@media (max-width: 900px) {
  .product-group-head h2 { font-size: 36px; }
  html body :is(.shelf-item .product-info h3, .equipment-card .equipment-copy h2, .group-tile .group-copy :is(h3, h4)) { font-size: 19px; }
  html body :is(.equipment-shelf .shelf-item > .product-info, .equipment-directory .equipment-card > .equipment-copy, .group-tiles .group-tile > .group-copy) { margin: 0 10px; padding: 12px 13px 11px; }
  html body :is(.shelf-item .product-info > p, .equipment-card .equipment-copy > .lede, .group-tile .group-copy > p) { font-size: 12.5px; }
  html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button) { padding: 0 12px; font-size: 11px; }
}
@media (max-width: 700px) {
  html body .equipment-shelf, html body .equipment-directory, .group-tiles { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-group { padding: 36px 0 20px; }
  .equipment-shelf .bench-group h3 { font-size: 29px; }
  /* Phones: the glass panel sits under the picture and only overlaps its bottom edge (Dre 2026-11-24 9:05 PM PT, "Yes,
     please", to moving the glass box lower on phones so it covers less of the picture). On a phone the panel is nearly as
     tall as the picture, so the desktop layout (panel on the picture, a quarter hanging below) covered up to about half
     of it. Same glass, words, button and pill; computers and tablets unchanged. */
  html body :is(.equipment-shelf .shelf-item, .equipment-directory .equipment-card, .group-tiles .group-tile) { grid-template: auto auto / minmax(0, 1fr); margin-bottom: 6px; }
  html body :is(.equipment-shelf .shelf-item > .product-scene, .equipment-directory .equipment-card > .product-scene, .group-tiles .group-tile > .group-scene) { grid-area: 1 / 1; }
  html body :is(.equipment-shelf .shelf-item > .product-info, .equipment-directory .equipment-card > .equipment-copy, .group-tiles .group-tile > .group-copy) { grid-area: 2 / 1; align-self: start; transform: none; margin-top: -44px; }
}
/* lab-daylight.css paints the first bench card's text brown for the old cream panel; on glass it stays ivory, gold and dark-on-gold */
html body .equipment-shelf .shelf-item:first-child .product-info { background: linear-gradient(135deg, #ffffff2a, #ffffff0a), #0d0b0799; }
html body .equipment-shelf .shelf-item:first-child .product-info :is(h3, h3 a, p, .shelf-bottom) { color: #f1ece0; }
html body .equipment-shelf .shelf-item:first-child .product-info p { color: #ece3cf; }
html body .equipment-shelf .shelf-item:first-child .product-info h3 em { color: #f3d58a; }
html body .equipment-shelf .shelf-item:first-child .product-info .shelf-bottom .text-link { color: #15110a; }

/* 6) Phones (2026-11-19 10:09 PM PT, Dre: "make sure that everything is optimized for mobile"):
   - the "In this room" bar now holds 8 links (with Scroll Stoppers + Belong & Buy), too many for one phone row, so on phones it
     becomes a row of chips you swipe sideways, inside the screen, instead of pushing the page 4px wider;
   - the smaller glass-card buttons keep a full 44px tap area (the visible pill stays small). */
@media (max-width: 600px) {
  html body .lab-journey-inner { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  html body .lab-journey-inner::-webkit-scrollbar { display: none; }
  html body .lab-journey a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding-inline: 10px; }
}
html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button) { position: relative; }
html body :is(.shelf-item .shelf-bottom .text-link, .group-tile .group-bottom .text-link, .equipment-card .equipment-copy > .button)::after { content: ""; position: absolute; inset: -6px -4px; }
@media (max-width: 600px) { .equipment-shelf .bench-group .group-code { letter-spacing: .08em; } }
