/* ==========================================================================
   for-jewellers.html · page CSS
   Loads after styles.css. Every rule is scoped under .page-jw or uses a
   jw- class. Tokens only: no hex, no rgba, no !important.
   ========================================================================== */

/* ---------- Hero: copy left, one packshot right, register below ---------- */
.page-jw .jw-hero__side { align-self: start; }
.page-jw .jw-hero__fig img { width: 100%; background: var(--bg-muted); border-radius: var(--radius-3); } /* 8px photo radius, as the system .spread */
@media (min-width: 921px) {
  .page-jw .jw-hero__side { padding-top: 6px; }
}
.page-jw .jw-hero__spec { margin-top: var(--space-5); }

/* ---------- Art direction tabs ---------- */
.page-jw .jw-tabs .tabs__panel:focus-visible { outline-offset: 6px; }
.page-jw .jw-panel__n { margin-bottom: var(--space-3); font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); }
.page-jw .jw-panel__text { align-self: start; }
.page-jw .jw-opts {
  margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2);
}
.page-jw .jw-opts span { display: block; margin-bottom: 2px; font-size: var(--fs-caption); font-weight: 600; color: var(--fg); }
@media (min-width: 921px) {
  .page-jw .jw-panel__text { padding-top: 4px; max-width: 34ch; }
}

/* ---------- Detail: a 4K frame and a crop from the same file ---------- */
.page-jw .jw-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-3); }
.page-jw .jw-detail__main img { width: 100%; background: var(--bg-muted); border-radius: var(--radius-3); }
.page-jw .jw-detail__loupe { position: relative; overflow: hidden; background: var(--bg-muted); border-radius: var(--radius-3); }
.page-jw .jw-detail__loupe img {
  position: absolute; left: 50%; top: 50%;
  width: 400%; max-width: none; height: auto;
  transform: translate(-52%, -62%);
}
.page-jw .jw-detail__tag {
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-2);
  background: var(--bg-raised); font-size: var(--fs-caption); font-weight: 500; line-height: 1.5; color: var(--fg);
}
@media (max-width: 600px) {
  .page-jw .jw-detail { grid-template-columns: minmax(0, 1fr); }
  .page-jw .jw-detail__loupe { aspect-ratio: 4 / 3; }
}

/* ---------- Formats: one frame, cropped to each channel's ratio ---------- */
.page-jw .jw-stage {
  --stage-h: clamp(300px, 30vw, 420px);
  --stage-pad: var(--space-5);
  display: grid; place-items: center;
  height: var(--stage-h); padding: var(--stage-pad);
  background: var(--bg-muted); border: 1px solid var(--line); border-radius: var(--radius-3);
}
.page-jw .jw-frame {
  --ar: 1;
  width: min(100%, calc((var(--stage-h) - 2 * var(--stage-pad)) * var(--ar)));
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}
.page-jw .jw-frame picture, .page-jw .jw-frame img { width: 100%; height: 100%; }
.page-jw .jw-frame img { object-fit: cover; }
.page-jw .jw-stage__now { margin-top: 12px; font-size: var(--fs-small); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.page-jw .jw-stage__now b { color: var(--fg); font-weight: 600; }

.page-jw .jw-formats__list { align-self: start; }
.page-jw .jw-formats__legend {
  float: left; width: 100%;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small); font-weight: 600;
}
.page-jw .jw-formats__legend + * { clear: both; }
.page-jw .jw-format {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 4.5em 7.5em; align-items: center; gap: var(--space-3);
  padding: 12px 12px 12px 4px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.4; cursor: pointer;
  transition: background-color .15s ease;
}
.page-jw .jw-format:hover { background: var(--bg-muted); }
.page-jw .jw-format input { width: 18px; height: 18px; margin: 0; accent-color: var(--mark); cursor: pointer; }
.page-jw .jw-format__name { font-weight: 500; }
.page-jw .jw-format__ratio, .page-jw .jw-format__px { text-align: right; font-variant-numeric: tabular-nums; }
.page-jw .jw-format__px { color: var(--fg-2); }
.page-jw .jw-format:has(input:checked) { background: var(--mark-soft); box-shadow: inset 2px 0 0 var(--mark); }
.page-jw .jw-formats__note { margin-top: var(--space-4); font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); max-width: 46ch; }
@media (max-width: 420px) {
  .page-jw .jw-format { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .page-jw .jw-format__px { display: none; }
}

/* ---------- Cost and time: comparison table, stacked on phones ---------- */
.page-jw .jw-compare tbody th { width: 9.5em; }
.page-jw .jw-compare td:last-child { color: var(--fg); }
.page-jw .jw-compare thead th:not(:first-child) { color: var(--fg); }
@media (max-width: 640px) {
  .page-jw .jw-compare, .page-jw .jw-compare tbody, .page-jw .jw-compare tr,
  .page-jw .jw-compare tbody th, .page-jw .jw-compare td { display: block; width: 100%; }
  .page-jw .jw-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-jw .jw-compare tbody { border-top: 1px solid var(--rule); }
  .page-jw .jw-compare tr { padding: 14px 0 6px; border-bottom: 1px solid var(--line-2); }
  .page-jw .jw-compare tbody th, .page-jw .jw-compare td { padding: 0 0 8px; border-bottom: 0; }
  .page-jw .jw-compare td::before {
    content: attr(data-label); display: block;
    font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2);
  }
}

/* ---------- Callback form ---------- */
.page-jw .jw-form { align-self: start; }
.page-jw #callback .steps { max-width: 48ch; }
