/* Product page: opening plate, position marker, job sheet, hand-off, leading-on list, picture dialog. Builds on site.css. */

/* Opening */
.popen { padding-block: 0 clamp(1.5rem, 4vh, 2.5rem); }
.popen h1 { font-size: clamp(1.75rem, 4.8vw, 4.75rem); overflow-wrap: break-word; }
.popen__side { min-height: 29rem; position: relative; z-index: 2; overflow-x: clip; }
.band--pale .pwrap { filter: drop-shadow(0.4rem 0.4rem 0 var(--deep)); }
.plate .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; padding-inline: 0.8rem; font-size: 1.2rem; }
.popen figcaption { padding-inline: var(--inset); }
.popen .opening__pic img { aspect-ratio: 16 / 10; }
@media (min-width: 48em) {
  .popen__side { min-height: 0; display: flex; flex-direction: column; align-self: stretch; }
  .popen .opening__pic img { height: auto; aspect-ratio: 1 / 1; max-height: 68vh; }
  .popen .opening__pic figcaption { padding-left: 5.5rem; }
}

/* Position marker: three flat bars, the service's row solid. It stands on its own ground and is
   clipped to the plate's column, so no letter of it can show past the plate over the picture.
   On the desk screen it rides down to the foot of the plate's column, so its line of note lands on
   the same baseline as the picture caption opposite, instead of floating in the dark under the plate. */
.marker {
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
  max-width: 100%;
  width: 15rem;
  overflow: clip;
  background: var(--deep);
  padding: 0.4rem 0.9rem 0.9rem 0;
}
.band--pale .marker { background: var(--pale); }
.marker p { margin: 0; font-size: var(--t-body); line-height: 1.4; max-width: 15rem; }
@media (min-width: 48em) {
  .popen__side > .pwrap { flex: 0 0 auto; }
  .popen__side .marker { margin-top: auto; padding-bottom: 0.35rem; }
}
.marker .section3, .hand .section3 { width: 11rem; max-width: 100%; gap: 0.6rem; margin-right: 0.4rem; }
.section3--link .section3__row { min-height: 2.75rem; padding: 0; }
.section3--link .section3__row > * { padding-inline: 0.6rem; }
.section3--link .section3__row > span { display: flex; align-items: center; flex: 1; align-self: stretch; }
.section3--link a { display: flex; align-items: center; align-self: stretch; flex: 1; text-decoration: none; }
.section3--link a:hover { text-decoration: underline; }

/* Job sheet: one row rhythm for every line, labels at reading size */
.spec__grid { display: grid; gap: var(--gap) clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 48em) { .spec__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.spec__text h2 { margin-bottom: 0.6em; }
.spec__text p:not(.lead) { max-width: 36em; }
.spec__rows h3 { margin-bottom: 0.5em; }
.spec__rows .rows > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.75fr) minmax(0, 2fr);
  gap: 0.3rem 1.25rem;
  align-items: baseline;
  border-top: var(--rule);
  padding: 0.85rem 0;
  font-size: var(--t-body);
  line-height: 1.4;
}
.spec__rows dt { font-size: 1.0625rem; line-height: 1.3; }
.spec__rows dd { margin: 0; font-size: var(--t-body); }
@media (max-width: 29.99em) {
  .spec__rows .rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}
.spec__note { margin: 1.1rem 0 0; font-size: var(--t-row); line-height: 1.45; }

/* Hand-off */
.hand__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.hand__call h2 { margin-bottom: 0.4em; }
.hand__call p, .hand__links p { margin: 0 0 0.8rem; max-width: 24em; }
.hand__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.hand__links p { font-size: var(--t-row); }

/* Leading on: an uneven ledger of links. Each thumbnail sits hard against its own name, the row's rule
   carries the full width, so nothing reads as a field of empty ground between a link and its picture. */
.more { padding-block: clamp(2.5rem, 7vh, 5rem); }
.more h2 { margin-bottom: 0.5em; }
.more__list { list-style: none; margin: 0; padding: 0; }
.more__li { border-top: var(--rule); }
.more__li:last-child { border-bottom: var(--rule); }
.more__a {
  display: flex;
  align-items: center;
  gap: 0.5rem clamp(0.9rem, 2vw, 1.6rem);
  padding-block: 0.5rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: inherit;
}
.more__li--1 .more__a { padding-left: 0; }
.more__li--2 .more__a { padding-left: clamp(0.5rem, 6vw, 5rem); }
.more__li--3 .more__a { padding-left: clamp(1rem, 12vw, 10rem); }
.more__txt { display: block; flex: 0 1 auto; min-width: 0; }
.more__name { display: block; font-family: var(--display); line-height: 1; }
.more__li--1 .more__name { font-size: clamp(1.75rem, 4vw, 3.25rem); }
.more__li--2 .more__name { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.more__li--3 .more__name { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.more__price { display: block; margin-top: 0.3rem; font-size: var(--t-row); line-height: 1.4; }
.more__thumb { display: block; flex: none; overflow: clip; }
.more__thumb img { width: 100%; height: 100%; object-fit: cover; }
.more__li--1 .more__thumb { width: clamp(5.5rem, 13vw, 10rem); aspect-ratio: 16 / 10; }
.more__li--2 .more__thumb { width: clamp(4rem, 9vw, 6.5rem); aspect-ratio: 1 / 1; }
.more__li--3 .more__thumb { width: clamp(3rem, 6.5vw, 4.5rem); aspect-ratio: 4 / 5; }
.more__a:hover .more__name { text-decoration: underline; text-decoration-thickness: 0.06em; }

/* Picture dialog (added by js/product.js) */
.is-zoomable { cursor: zoom-in; }
.zoom-open { display: block; min-height: 2.75rem; padding: 0.4rem 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 0.18em; font-size: var(--t-row); text-align: left; }
.zoom { background: var(--deep); color: var(--pale); border: 0.1875rem solid var(--pale); padding: 0.75rem; width: min(94vw, 64rem); max-height: 94vh; overflow: auto; }
.zoom::backdrop { background: rgb(27 18 71 / 0.9); }
.zoom img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
.zoom p { margin: 0.7rem 0; font-size: var(--t-row); }
.zoom__x { min-height: 2.75rem; padding: 0.4rem 1.3rem; background: var(--pale); color: var(--deep); border: 0; font-family: var(--display); font-size: 1.2rem; }
