/* ==========================================================================
   Product page — Block 10: spec sheet.
   Left: drawing of the panel with dimension lines + 3 key stats.
   Right: full spec table.
   ========================================================================== */

.pspecs {
  padding: 96px var(--gutter);
  background: var(--c-ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pspecs__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.pspecs__side { position: sticky; top: calc(var(--header-h) + 32px); }

.pspecs__side .eyebrow { color: var(--c-accent); }
.pspecs__side .display { font-size: clamp(44px, 5.5vw, 80px); }
.pspecs__side .display em { font-style: normal; color: var(--c-accent); }

/* ---------- dimension drawing ---------- */

.pspecs__drawing {
  display: flex;
  align-items: stretch;            /* side view gets the same height as the front */
  gap: 36px;
  margin-top: 44px;
  padding: 0 0 34px 34px;          /* room for the dimension lines */
}

.pspecs__front { position: relative; flex: 1 1 0; min-width: 0; max-width: 360px; align-self: flex-start; }
.pspecs__depth { position: relative; display: flex; flex: none; }

.pspecs__panel {
  aspect-ratio: 32.6 / 16.6;
  padding: 2.4%;
  border-radius: 8px;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pspecs__panel span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: radial-gradient(circle, #232323 0 1px, transparent 1.4px) 0 0 / 3px 3px, #000;
}

/* side view: same height, 3.7 cm deep (to scale with the front) */
.pspecs__side-view {
  width: 100%;
  aspect-ratio: 3.7 / 16.6;
  border-radius: 4px;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pspecs__depth .pspecs__side-view { width: auto; height: 100%; }

/* dimension lines: thin volt line with end ticks + a mono label */
.pspecs__dim {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 var(--font-mono);
  color: var(--c-accent);
  white-space: nowrap;
}

.pspecs__dim::before {
  content: "";
  position: absolute;
  border: 0 solid var(--c-accent);
}

.pspecs__dim span { position: relative; padding: 0 6px; background: var(--c-ink); }

/* width: under the panel */
.pspecs__dim--w { left: 0; right: 0; bottom: -26px; height: 12px; }
.pspecs__dim--w::before { left: 0; right: 0; top: 3px; height: 6px; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; }

/* height: left of the panel, label rotated */
.pspecs__dim--h { top: 0; bottom: 0; left: -28px; width: 12px; }
.pspecs__dim--h::before { top: 0; bottom: 0; left: 3px; width: 6px; border-left-width: 1px; border-top-width: 1px; border-bottom-width: 1px; }
.pspecs__dim--h span { transform: rotate(-90deg); }

/* depth: under the side view */
.pspecs__dim--d { left: -4px; right: -4px; bottom: -26px; height: 12px; }
.pspecs__dim--d::before { left: 4px; right: 4px; top: 3px; height: 6px; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; }

/* key stats */
.pspecs__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.pspecs__stats li {
  padding: 16px;
  border-radius: 14px;
  background: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pspecs__stats strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1; }
.pspecs__stats span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* ---------- spec table ---------- */

.pspecs__table { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }

.pspecs__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pspecs__row dt {
  padding-top: 3px;
  font: 700 11px/1.4 var(--font-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.pspecs__row dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .pspecs { padding: 64px var(--gutter); }
  .pspecs__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pspecs__side { position: static; }
}

@media (max-width: 480px) {
  .pspecs__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .pspecs__stats strong { font-size: 24px; }
  .pspecs__drawing { gap: 26px; padding-right: 8px; }
  .pspecs__depth .pspecs__side-view { width: 16px; aspect-ratio: auto; }  /* fixed on phones so it can't push past the edge */
}
