/* Git Pullover page, debugjuice.com. Loads after dj-shop.css and reuses its tokens
   (--mono, --slate, --body, --line, --accent, .dj-wrap, .dj-section, .dj-h2 ...).
   Every class here starts with djh-. Built by ../build.py. */

/* ---------- hero: 3D stage beside the buy box ---------- */
.dj-gp.djh-gp { padding-block: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 18px) clamp(64px, 8vw, 110px); }
.dj-gp.djh-gp::before { inset: -10% 35% 10% -25%; }
.djh-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.djh-stage-col { position: sticky; top: calc(var(--nav-h) + 8px); }
.djh-buy-col { min-width: 0; padding-top: 4px; }

.djh-stage {
  position: relative; isolation: isolate; container-type: inline-size;
  width: min(100%, calc((100svh - var(--nav-h) - 110px) * .95)); aspect-ratio: 760 / 800; margin-inline: auto;
}
.djh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none; }
.djh-stage canvas:active { cursor: grabbing; }
.djh-stage canvas:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 24px; }
.djh-smoke {
  position: absolute; z-index: -2; inset: -18% -38% -8% -38%; pointer-events: none;
  background: var(--djh-smoke) center / cover no-repeat; opacity: .55; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent);
}
.djh-word {
  position: absolute; z-index: -1; left: 50%; top: 45.5%; transform: translate(-50%, -50%); pointer-events: none;
  font: 700 19.7cqw/1 var(--mono); letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}
.djh-floor {
  position: absolute; z-index: -1; left: 25%; top: 82.5%; width: 50%; height: 5.5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
}
.djh-still { position: absolute; left: 15.5%; top: 15%; width: 66%; height: auto; pointer-events: none; transition: opacity .5s; }
.djh-stage.is-live .djh-still { opacity: 0; }

.djh-callouts { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.djh-callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.djh-stage[data-side='front'].is-settled .djh-callouts--front,
.djh-stage[data-side='back'].is-settled .djh-callouts--back { opacity: 1; }
.djh-callout { position: absolute; width: 17.2%; transform: translateY(-50%); text-shadow: 0 0 6px var(--carbon), 0 0 14px var(--carbon), 0 0 22px var(--carbon); }
.djh-callout--l { left: 0; text-align: right; }
.djh-callout--r { left: 83.2%; text-align: left; }
.djh-callout b { display: block; font: 500 max(13px, 2.25cqw)/1.2 var(--mono); color: var(--white); white-space: nowrap; }
.djh-callout small { display: block; margin-top: 5px; font: 400 max(10.5px, 1.58cqw)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }

.djh-controls {
  width: min(100%, calc((100svh - var(--nav-h) - 110px) * .95)); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.djh-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
}
.djh-pill svg { width: 15px; height: 15px; color: var(--cyan); }
.djh-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(10, 10, 10, .6); }
.djh-seg button {
  height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); transition: background .25s, color .25s;
}
.djh-seg button[aria-pressed='true'] { background: var(--white); color: var(--carbon); }
.djh-seg button:focus-visible, .djh-arrows button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.djh-arrows { display: inline-flex; align-items: center; gap: 10px; }
.djh-count { margin-right: 6px; font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--slate); }
.djh-count b { color: var(--white); font-weight: 500; }
.djh-arrows button {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background .25s;
}
.djh-arrows button:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.djh-arrows svg { width: 18px; height: 18px; }

/* ---------- buy column ---------- */
.djh-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 6px; }
.djh-kicker .dj-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.djh-kicker .dj-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.djh-status { font: 500 13px/1.2 var(--mono); color: var(--accent); }

/* OpenShop's product box, already themed by .dj-item in dj-shop.css. The stage replaces its gallery,
   and the description keeps only its opening paragraph (the rest lives in the accordions and the release notes). */
.djh-buy.dj-item.dj-item.dj-item .os-product-details-media { display: none; }
.djh-buy.dj-item.dj-item.dj-item .os-product-details { display: block; }
.djh-buy.dj-item.dj-item .description-content > :not(p:first-of-type) { display: none; }
.djh-buy.dj-item.dj-item .description-content > p:first-of-type { margin: 0; }

.djh-pairs {
  margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; border-radius: 18px;
  background: #0F0F12; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: box-shadow .3s;
}
.djh-pairs:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--potion) 60%, transparent); }
.djh-pairs img { width: 30px; height: 82px; object-fit: contain; flex: none; }
.djh-pairs span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.djh-pairs b { font-weight: 500; font-size: 15px; color: var(--white); }
.djh-pairs small { font-size: 14px; color: var(--slate); }
.djh-pairs i { display: grid; color: var(--potion); }
.djh-pairs i svg { width: 18px; height: 18px; }

.djh-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.djh-facts > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 20px 20px; }
.djh-facts > div:first-child { padding-left: 0; }
.djh-facts > div + div { border-left: 1px solid var(--line); }
.djh-facts dt { order: 2; font: 500 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.djh-facts dd { margin: 0; font: 700 clamp(22px, 2vw, 30px)/1 var(--mono); letter-spacing: -.02em; color: var(--white); }

.djh-acc { margin-top: 8px; }
.djh-acc details { border-bottom: 1px solid var(--line); }
.djh-acc summary {
  list-style: none; cursor: pointer; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 500 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--white);
}
.djh-acc summary::-webkit-details-marker { display: none; }
.djh-acc summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.djh-acc summary i { display: grid; color: var(--slate); transition: transform .3s var(--ease-lux); }
.djh-acc summary i svg { width: 18px; height: 18px; }
.djh-acc details[open] summary i { transform: rotate(45deg); }
.djh-acc .djh-acc__body { padding: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--body); }
.djh-acc .djh-acc__body p { margin: 0 0 10px; }
.djh-acc .djh-acc__body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.djh-acc .djh-acc__body small { font: 400 13px/1.4 var(--mono); color: var(--slate); }

/* ---------- sections ---------- */
.djh-sec { border-top: 1px solid var(--line); }
.djh-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.djh-tiles figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.djh-tiles .djh-shot { aspect-ratio: 426 / 488; }
.djh-shot { border-radius: 22px; overflow: hidden; background: #0E0E11; box-shadow: inset 0 0 0 1px var(--line); }
.djh-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.djh-tiles figcaption { display: flex; justify-content: space-between; gap: 16px; font: 400 13px/1.4 var(--mono); color: var(--slate); }
.djh-tiles figcaption b { font-size: 15px; font-weight: 400; color: var(--white); }

.djh-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.djh-side {
  position: relative; isolation: isolate; aspect-ratio: 652 / 760; margin: 0; border-radius: 28px; overflow: hidden;
  background: #0E0E11; box-shadow: inset 0 0 0 1px var(--line);
}
.djh-side--back::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--djh-smoke) center / cover no-repeat; opacity: .35; mix-blend-mode: screen;
}
.djh-side .dj-eyebrow { position: absolute; left: 28px; top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.djh-side .dj-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.djh-side img { position: absolute; left: 50%; top: 10%; height: 77%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.djh-side figcaption { position: absolute; left: 28px; right: 28px; bottom: 26px; font-size: 15px; line-height: 1.55; color: var(--body); }

.djh-wild { display: grid; gap: 24px; }
.djh-wild__row { display: grid; gap: 24px; }
.djh-wild__row--a { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); aspect-ratio: 1328 / 624; }
.djh-wild__row--b { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr) minmax(0, 9fr); aspect-ratio: 1328 / 452; }
.djh-wild figure { position: relative; margin: 0; height: 100%; }
.djh-wild .djh-shot { height: 100%; }
.djh-wild figcaption {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 400 12px/1.2 var(--mono); letter-spacing: .06em; color: var(--white);
}
.djh-wild figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.djh-notes { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
.djh-notes .dj-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
.djh-notes .dj-section-head .dj-lede { justify-self: auto; }
.djh-log { border-radius: 22px; background: #0D0D10; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.djh-log__bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); font: 400 13px/1.2 var(--mono); color: var(--slate); }
.djh-log__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2A2E; }
.djh-log__bar span { margin-left: 10px; }
.djh-log ol { list-style: none; margin: 0; padding: 10px 0; }
.djh-log li { display: grid; grid-template-columns: 96px 72px minmax(0, 1fr); gap: 14px; padding: 12px 24px; font: 400 15px/1.5 var(--mono); color: #E5E9F0; }
.djh-log li > span:first-child { color: #7A8494; }
.djh-log .is-feat { color: var(--potion); }
.djh-log .is-fix { color: var(--cyan); }
.djh-log .is-misc { color: var(--slate); }

/* The shared lineup, retitled for this page: the purple can matches the thread. */
.djh-page .dj-mini[href$='/api-potion'] { box-shadow: inset 0 0 0 1px var(--potion), 0 30px 80px rgba(181, 121, 239, .12); }
.djh-page .dj-mini[href$='/api-potion'] .dj-mini__meta::after {
  content: "Matches the thread"; justify-self: start; align-self: start; order: -1; margin-bottom: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(181, 121, 239, .14); font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #D9BDFB;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .djh-callouts { display: none; }
}
@media (max-width: 960px) {
  .djh-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .djh-stage-col { position: relative; top: auto; }
  .djh-stage, .djh-controls { width: min(100%, 560px); }
  .djh-stage { aspect-ratio: 390 / 440; }
  .djh-still { left: 16%; top: 13%; width: 69%; }
  .djh-tiles, .djh-wild__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; aspect-ratio: auto; }
  .djh-tiles > li, .djh-wild__row > figure { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
  .djh-wild__row > figure { height: auto; aspect-ratio: 3 / 4; }
  .djh-notes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .djh-sides { gap: 12px; }
}
@media (max-width: 640px) {
  .djh-pill { height: 46px; padding: 0 14px; }
  .djh-arrows { display: none; }
  .djh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .djh-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .djh-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .djh-side { border-radius: 20px; aspect-ratio: 3 / 4; }
  .djh-side .dj-eyebrow { left: 14px; top: 14px; font-size: 11px; }
  .djh-side figcaption { display: none; }
  .djh-side img { top: 16%; height: 76%; }
  .djh-log li { grid-template-columns: 58px minmax(0, 1fr); padding: 10px 16px; font-size: 13px; }
  .djh-log li > span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .djh-callouts, .djh-still, .djh-acc summary i { transition: none; }
}
