/* Product page: the Part opens as a tick, becomes an eight-notch menu rule, and ends in a dot at the address. */

/* Opening: head, photograph and body. One column on mobile; photograph in columns 7-12 from 48rem. */
.pd { padding-block: clamp(1rem, 3vw, 2.5rem) var(--space); }
.pd-head, .pd-photo, .pd-body { grid-column: 1 / -1; min-width: 0; }
.pd-head { padding-top: clamp(1.5rem, 5vw, 3rem); }
.pd-title {
  margin-top: 1.25rem; font-size: clamp(2.5rem, .6rem + 11vw, 4rem);
  line-height: .92; letter-spacing: -.035em; overflow-wrap: break-word;
}
.pd-line { margin-top: 1.25rem; max-width: 30rem; }
.pd-photo { margin-top: 2rem; }
.pd-body { margin-top: 2.5rem; }
.pd-body p:not(.lede) { max-width: 34rem; margin-top: 1.1em; }
.pd-body .lede + p { margin-top: 1.5rem; }

@media (min-width: 48rem) {
  .pd-grid { grid-template-rows: auto 1fr; }
  .pd-head { grid-column: 1 / 7; grid-row: 1; padding: clamp(3rem, 7vw, 7rem) var(--col-gap) 0 0; }
  .pd-title { font-size: clamp(2.5rem, .6rem + 5.2vw, 5.75rem); }
  .pd-photo { grid-column: 7 / 13; grid-row: 1 / 3; margin-top: 0; }
  .pd-body { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: clamp(2rem, 4vw, 3.5rem); }
  .pd--solo .pd-head { grid-column: 1 / 10; }
  .pd--solo .pd-body { grid-column: 1 / 7; }
}

/* Specs: a ruled two-column list, no card. */
.pd-specs { padding-bottom: var(--space); }
.pd-split-h { grid-column: 1 / -1; align-self: start; padding-top: 1rem; }
.specs { grid-column: 1 / -1; margin-top: 1rem; }
.spec { display: grid; gap: .25rem 1.5rem; padding: 1rem 0; border-top: .0625rem solid var(--hair); }
.spec:last-child { border-bottom: .0625rem solid var(--hair); }
.spec dt { font-size: var(--fs-label); line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.spec dd { font-size: var(--fs-m); line-height: 1.3; }
@media (min-width: 40rem) { .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; } }
@media (min-width: 48rem) {
  .pd-split-h { grid-column: 1 / 5; }
  .specs { grid-column: 5 / 13; margin-top: 0; }
}

/* Set piece, the menu rule: eight notches on one persimmon line; labels sit in the rows below, never on it. */
.mr { padding-bottom: var(--space); }
.mr .label { margin-bottom: 1.25rem; }
.mr-list {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
}
.mr-list::before {
  content: ""; grid-row: 1; grid-column: 1 / -1; align-self: center;
  height: var(--part-w); background: var(--part);
}
.js .mr-list::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease); }
.js .mr-list.is-in::before { transform: none; }
.mr-item { display: contents; }
.mr-notch { grid-row: 1; grid-column: var(--c); position: relative; display: block; height: 2.75rem; min-width: 0; }
.mr-notch::after {
  content: ""; position: absolute; left: 0; top: 50%; width: .125rem; height: .875rem;
  transform: translateY(-50%); background: var(--part);
  transition: width .25s var(--ease);
}
a.mr-notch:hover::after, a.mr-notch:focus-visible::after { width: .3125rem; }
.mr-here::after { width: 1.25rem; height: 1.25rem; border-radius: 50%; }

.mr-name {
  grid-row: 2; grid-column: var(--c); min-width: 0;
  display: flex; flex-direction: column; gap: .3rem; padding: .625rem .75rem 0 0; min-height: 2.75rem;
}
.mr-tag { font-size: var(--fs-label); line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.mr-text {
  font-family: var(--display); font-weight: 800; font-size: 1.125rem; line-height: 1.1; letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.mr-now .mr-text { font-size: var(--fs-m); }
a.mr-name .mr-text {
  text-decoration: underline; text-decoration-color: var(--part-faint);
  text-decoration-thickness: .12em; text-underline-offset: .25em;
  transition: text-decoration-color .25s var(--ease), text-decoration-thickness .25s var(--ease);
}
a.mr-name:hover .mr-text, a.mr-name:focus-visible .mr-text { text-decoration-color: var(--part); text-decoration-thickness: .2em; }

/* Desktop: the rule sits inside the gutters, columns weighted so the three printed names have room. */
@media (min-width: 48rem) {
  .mr-list { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; grid-template-columns: var(--cols); }
}

/* Mobile: the rule runs edge to edge so all eight notches are 44px wide; previous, current, next stack beneath. */
@media (max-width: 47.99rem) {
  .mr-name {
    grid-row: auto; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline;
    gap: .25rem .75rem; padding: .5rem var(--gut);
  }
  .mr-tag { flex: none; width: 5.5rem; }
  .mr-text { flex: 1 1 auto; min-width: 0; }
}

/* Price, links and the address where the line ends. */
.pd-price { padding-bottom: var(--space); }
.pd-price-main { grid-column: 1 / -1; margin-top: 1rem; }
.pd-price-line { max-width: 16ch; }
.pd-price-main .lede { margin-top: 1.25rem; }
.pd-acts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: 1.5rem; }
.pd-hours { margin-top: 1rem; max-width: 34rem; font-size: var(--fs-s); color: var(--ink-soft); }
@media (min-width: 48rem) { .pd-price-main { grid-column: 5 / 13; margin-top: 0; } }

.pd-addr { display: flex; align-items: center; gap: .75rem; margin-top: clamp(2.5rem, 6vw, 5rem); }
.pd-addr .part { flex: 1 1 3rem; width: auto; }
.pd-addr address { flex: 0 1 auto; min-width: 0; font-family: var(--display); font-weight: 800; font-size: var(--fs-m); line-height: 1.15; letter-spacing: -.01em; }
