.detail-with-proof {
  grid-template-areas: "gallery intro" "gallery description";
  grid-template-rows: max-content 1fr;
  row-gap: 1rem;
}
.detail-intro { grid-area: intro; min-width: 0; }
.detail-text { grid-area: description; min-width: 0; }
.sample-gallery { grid-area: gallery; margin: 0; min-width: 0; }
.edition-picker { padding: 0; margin: 0 0 .65rem; border: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.edition-picker legend { color: var(--ink); padding: 0; margin-bottom: .35rem; font-weight: 650; }
.edition-picker label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .8rem; background: white; border: 1px solid #929c91; border-radius: .25rem; cursor: pointer; }
.edition-picker label:has(:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.edition-picker input { margin: 0; accent-color: var(--pine); }
.sample-frame { display: grid; place-items: center; padding: clamp(.5rem, 1.75vw, 1.25rem); background: #eceae2; border: 1px solid var(--line); border-radius: .25rem; cursor: zoom-in; }
.sample-frame img { display: block; width: 100%; height: auto; max-height: 30rem; object-fit: contain; }
.sample-gallery figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: .75rem; margin-top: .4rem; color: #344b3e; }
.sample-gallery figcaption span { flex: 1 1 14rem; }
.sample-enlarge, .sample-gallery noscript a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.sample-dialog { padding: 0 1rem .9rem; background: #fffdf8; color: #192c22; border: 1px solid #b4b9ae; border-radius: .4rem; max-width: min(95vw, 58rem); max-height: 92vh; max-height: 92dvh; overflow: auto; }
.sample-dialog::backdrop { background: rgb(16 31 24 / .76); }
.sample-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; background: #fffdf8; padding: .55rem 0; }
.detail .sample-dialog-bar h2 { font-size: 1.35rem; margin: 0; }
.sample-zoom, .sample-close { font: inherit; font-weight: 650; border-radius: .2rem; border: 1px solid #2c4c39; background: white; color: #203b2b; padding: .4rem .85rem; min-height: 44px; cursor: pointer; }
.sample-dialog-bar h2 { flex: 1; }
.sample-dialog-bar { gap: .65rem; }
.sample-viewport { width: min(78vw, 860px); max-height: 65vh; overflow: auto; }
.sample-viewport img { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.sample-viewport.is-zoomed img { width: 175%; }
@media (max-width: 30rem) {
  .sample-dialog { padding-inline: .55rem; }
  .sample-viewport { width: 85vw; }
  .sample-dialog-bar { gap: .3rem; }
  .sample-dialog-bar h2 { font-size: 1rem; }
}
.detail .sample-dialog p { margin: .5rem 0 0; }
@media (max-width: 46rem) {
  .detail-with-proof { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "intro" "gallery" "description"; }
}

.listing-lines { white-space: pre-line; overflow-wrap: anywhere; }
