/* Product page: two-frame strip, the miniature sweetness ruler, the facts ledger, neighbors and the lead-on. */

.page-product .pstrip { --strip-h: clamp(9rem, 38vh, 21rem); margin-top: var(--gut); }
.pz { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; color: inherit; }
.pcrop__in { overflow: hidden; }
.pcrop__in img { transform: scale(2.4); transform-origin: 50% 70%; }

/* Head row: ruler in the rail, name and buying line in the right cell. */
.pledger { margin-top: var(--gut); border-top: var(--line); }
.pledger > .row:first-child { border-top: 0; }
.ruler { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.ruler__ticks { flex: 1; min-height: 5rem; width: 100%; display: flex; flex-direction: column; justify-content: space-between; border-left: 0.0625rem solid var(--rule); }
.ruler__ticks li { display: flex; align-items: center; height: 0.3rem; }
.ruler__t { width: 0.9rem; }
.ruler__on { width: 100%; height: 0.3rem; }
.phead { display: grid; gap: 0.75rem var(--pad); align-content: start; }
.phead h1 { max-width: 22ch; }
.phead__price { margin-top: 0.5rem; font: 400 var(--fs-hl)/1.2 var(--display); }
.phead__buy { max-width: 34em; }
.phead__buy a { overflow-wrap: anywhere; }
@media (min-width: 48rem) {
  .phead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: var(--pad) clamp(1.5rem, 4vw, 3rem); }
}

/* Notes: the lead and body beside the flash-lit photograph, which is sized to the entry and never outruns it. */
.pnotes { display: grid; gap: var(--pad); padding: var(--pad); }
.pnotes__txt { max-width: 40em; }
.pnotes__txt > * + * { margin-top: 0.9em; }
.plead { font-size: 1.1875rem; line-height: 1.5; }
.pnotes__fig { margin: 0; }
.pnotes__pic { display: block; overflow: hidden; }
.pnotes__pic img { width: 100%; height: auto; }
@media (min-width: 48rem) {
  .pnotes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; gap: clamp(1.5rem, 4vw, 3rem); }
  .pnotes__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: clamp(10rem, 28vh, 17rem); }
  .pnotes__pic { position: relative; min-height: 0; }
  .pnotes__pic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* Neighbors: ledger rows, label in its own column, name running the rest of the width. */
.nb { display: grid; }
.nb__a { width: 100%; min-height: 4rem; padding: var(--pad); text-decoration: none; }
.nb__a + .nb__a { border-top: var(--line); }
.nb__k { color: var(--accent); font-size: var(--fs-small); }
.nb__n { font: 400 1.25rem/1.3 var(--text); }
.nb__a:focus-visible { outline-offset: -0.25rem; }
@media (min-width: 48rem) {
  .nb__a { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); column-gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline; }
  .nb__k { font-size: var(--fs-label); }
}

/* Lead-on strip. */
.pmore h2 { margin-bottom: var(--pad); }
.pmore .strip__cap { font-size: 1.0625rem; }

/* Enlarged photograph dialog (built by product.js). */
.pdlg { padding: 0; border: var(--line); background: var(--panel); color: var(--ink); max-width: min(94vw, 70rem); max-height: 94vh; }
.pdlg::backdrop { background: rgba(34, 35, 107, 0.95); }
.pdlg__in { display: grid; gap: 0.25rem; padding: 0.5rem var(--pad) var(--pad); }
.pdlg__x { justify-self: end; padding-inline: 0.5rem; }
.pdlg__img { width: auto; max-width: 100%; height: auto; max-height: 78vh; margin-inline: auto; object-fit: contain; }
