/* Product page: adds to site.css, never restates it. */

/* HELD PANE: call, directions and the hours note are three items of one list, evenly spaced.
   On phones the links keep their 2.75rem touch height and the hours note stands off by the same gap;
   on desktop the rows close up to one tight gap. */
.split__held .bar { margin-bottom: 1rem; }
.split__held h1 { margin-bottom: 0.25rem; }
.kind { font-size: 1.15rem; margin: 0 0 1.25rem; }
.held__stay { background: var(--straw); min-width: 0; }
.held__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.held__links li { margin: 0; }
.hours { font-size: 1rem; line-height: 1.55; max-width: 30rem; margin: 0; padding-top: 0.55rem; }

/* RUN */
.split__run > * { min-width: 0; }
/* The opening photograph is the square .shot; the bar stands clear of it by the block's own gap. */
.shot--bar { border-top: var(--bar) solid var(--teal); padding-top: 1.25rem; margin-bottom: 1.25rem; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; }
.split__run > .lede { margin-bottom: var(--gap); }
.split__run .block { padding-bottom: clamp(2rem, 6vh, 4rem); }
.split__run .block:last-child { padding-bottom: var(--gap); }
.split__run .block h2 { margin-top: 0; }
.split__run .block p { max-width: 38rem; }
.note { font-size: 1.0625rem; }
.split__run .block p.note { margin-top: 0.5rem; }

/* WORN / SOUND: the pair sits right under the photograph and lede */
.split__run .pair { margin-bottom: clamp(2rem, 6vh, 4rem); }
.pair li { font-size: 1.0625rem; line-height: 1.45; padding-block: 0.3rem; }

/* CLOSING BLOCK: one bar, then the guide steps, the opposite repair and the other repairs */
.hand { min-width: 0; }
.hand .next { border-top: 0; padding: 0.4rem 0; font-size: 1.3rem; }
.next__to { font-family: var(--text); font-size: 1.0625rem; line-height: 1.45; }
.hand__h { margin: var(--gap) 0 0.6rem; }

/* ACROSS THE BENCH: a plain text row */
.across { display: block; color: var(--ink); text-decoration: none; max-width: 38rem; padding-block: 0.25rem; }
.across > span { display: block; }
.across__side { margin-bottom: 0.2rem; }
.across__name { font-family: var(--display); font-size: 1.3rem; line-height: 1.18; margin-bottom: 0.3rem; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; transition: color var(--quick) linear; }
.across:hover .across__name { color: var(--teal); }

/* LEADING ON: three equal squares in one row */
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.more li { min-width: 0; }
.more a { display: block; color: var(--ink); text-decoration: none; }
.more img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.more__name { display: block; margin-top: 0.6rem; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; transition: color var(--quick) linear; }
.more a:hover .more__name { color: var(--teal); }
.more__meta { display: block; font-size: 1rem; overflow-wrap: anywhere; }

/* PICTURE OPENED LARGE (dialog written by product.js) */
.lightbox { width: min(96vw, 78rem); max-height: 96vh; padding: 0; border: 0; background: var(--straw); color: var(--ink); }
.lightbox::backdrop { background: rgba(48, 39, 6, 0.85); }
.lightbox__in { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.75rem; }
.lightbox__img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 0; }
.lightbox__close { min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; font-size: 1.0625rem; text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.3em; }
.lightbox__close:hover { color: var(--teal); }

/* DESKTOP: the opening words (step, h1, kind, lede) rest in the page itself and are read before any scroll;
   the pane runs the full height of the page and only the call, directions and hours group stays pinned, on its own straw ground. */
@media (min-width: 51.25rem) {
  .product .split__held { position: static; align-self: stretch; }
  .product .held__stay { position: sticky; top: calc(var(--head-h) + 0.5rem); padding-block: 0.5rem; }
  .product .held__links { gap: 0.4rem; }
  .product .held__links .link-plain { min-height: 0; }
  .product .held__links .hours { padding-top: 0; }
}

/* PHONE: the three stack in one column, still equal */
@media (max-width: 40rem) {
  .more { grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .more img { aspect-ratio: 3 / 2; }
  .more__name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .across__name, .more__name { transition: none; }
}
