/* Product page: the single pair over the room painting. */

/* Opening: ticket left, painted plate right */
.open { padding-block: calc(var(--pad) * .6) var(--pad); }
.open__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64em) { .open__grid { grid-template-columns: 1fr 1.35fr; gap: 2rem; } }
.title--prod { font-size: clamp(1.9rem, 1.15rem + 2.6vw, 3.4rem); line-height: 1.12; }
.title__in { display: block; font-size: .6em; color: var(--volt); margin-top: .3em; }
.open__ticket .ticket__row { grid-template-columns: 8rem 1fr; }
.open__ticket .ticket__row--tall { padding: 1.1rem 1.25rem; }
.open__kind { margin: .9rem 0 0; font-size: var(--fs-body); color: var(--pink); }
.open__ticket .lede { margin: 0; font-size: clamp(1.0625rem, 1rem + .25vw, 1.2rem); }
.open__call { grid-template-columns: 8rem 1fr auto; align-items: center; }
.open__call .tmark { grid-column: 1; grid-row: 1; width: 0; height: 0; border: 0; background: none; visibility: hidden; }
.open__call [data-call] { grid-column: 2; grid-row: 1; justify-self: start; }
.open__call .open__num { grid-column: 3; grid-row: 1; font-size: var(--fs-body); text-align: right; }
.open[data-at="3"] [data-call] { border-color: var(--ink); }
@media (max-width: 40em) {
  .open__ticket .ticket__row { grid-template-columns: 1fr; gap: .35rem; }
  .open__call { grid-template-columns: 1fr; row-gap: .6rem; }
  .open__call .tmark { display: none; }
  .open__call [data-call] { grid-column: 1; grid-row: 1; justify-self: stretch; }
  .open__call .open__num { grid-column: 1; grid-row: 2; text-align: left; }
}

/* The plate: one photograph, one hairline route from the outlet to the panel, one elbow */
.stage { position: relative; }
.stage__pic { position: relative; }
.stage__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage__svg { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3; }
.stage__svg path { fill: none; vector-effect: non-scaling-stroke; }
.stage__svg .over { stroke: var(--ink); stroke-width: 1; }
.sn { position: absolute; width: 1.1rem; height: 1.1rem; transform: translate(-50%, -50%); }
.sn--a { left: 25%; top: 71%; }
.sn--b { left: 83%; top: 34%; }
.plate-label { position: absolute; margin: 0; background: var(--cherry); border: var(--hair) solid var(--ink); padding: .5rem .75rem; font-size: var(--fs-small); line-height: 1.35; max-width: 42%; }
/* Each plate sits against its own node: the symptom right of the outlet, the service hung under the hairline at the panel */
.plate-label--a { left: 30%; top: 71%; transform: translateY(-50%); }
.plate-label--b { right: calc(17% + .9rem); top: calc(34% + .7rem); }
.plate-label__k { color: var(--volt); font-size: var(--fs-small); }
.plate-label .ticket__key { font-size: var(--fs-small); }
.zoom { position: absolute; left: .6rem; bottom: .6rem; background: var(--cherry); min-height: 2.75rem; }
.js .zoom { display: inline-flex; }
.zoom[hidden] { display: none; }
@media (max-width: 40em) {
  .sn, .stage__svg { display: none; }
  .plate-label { position: static; transform: none; max-width: none; border: 0; border-top: var(--hair) solid var(--ink); text-align: left; }
  .plate-label--b { text-align: left; }
  /* The labels are in the flow here, so the button follows them instead of lying on the last one */
  .zoom { position: static; margin: .6rem .75rem; }
}

/* What the job is */
.detail { display: grid; gap: 2rem; margin-top: 1rem; align-items: start; }
@media (min-width: 56em) { .detail { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }
.detail__text .lede { max-width: none; }
.detail__specs .ticket__row { grid-template-columns: minmax(7rem, 30%) 1fr; }

/* Same room, other work: symptom and service meet on a short connector at the row's spine */
.sib { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: var(--hair) solid var(--ink); }
.sib__i { display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1.4fr); gap: .4rem 1rem; align-items: center; padding: .7rem 0; border-bottom: var(--hair) solid var(--ink); }
.sib__sym { text-align: right; font-size: var(--fs-body); }
.sib__pair { width: 100%; }
.sib__a { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; font-size: var(--fs-h3); line-height: 1.2; }
@media (max-width: 40em) {
  .sib__i { grid-template-columns: 1fr; }
  .sib__sym { text-align: left; }
  .sib__pair { width: 5rem; }
}
.sib__hub { display: flex; justify-content: flex-end; margin: 1.1rem 0 0; }
.sib__hub .next__link { justify-self: end; }

/* Have this ready */
.ready__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) { .ready__grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.ready__list { margin: 1rem 0 0; padding-left: 1.4rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }
.ready__list li { margin-bottom: .6rem; padding-left: .3rem; }
.ready__act { display: grid; gap: .75rem; border: var(--hair) solid var(--ink); padding: 1.25rem; background: var(--cherry); }
.ready__tel { font-family: var(--display); font-stretch: 150%; font-weight: 500; font-size: clamp(1.1rem, 1rem + 1vw, 1.7rem); min-height: 3.5rem; }
.ready__h { margin: 0; font-size: var(--fs-small); }
.page-product .ready .ready__act { background: var(--green); }

/* Elsewhere in the house: one mount height, captions on one baseline */
.more { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .more { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.more__i { display: grid; grid-template-rows: auto auto auto; align-content: start; }
.more__pic { display: block; border: var(--hair) solid var(--ink); }
.more__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.more h3 { margin: .8rem 0 .2rem; min-height: 2.4em; }
.more h3 a { text-decoration: none; }
.more h3 a:hover { text-decoration: underline; }
.more__p { margin: 0; color: var(--pink); }

/* The enlarged picture */
.zoomd { padding: .75rem; border: var(--hair) solid var(--ink); background: var(--green); color: var(--ink); max-width: 94vw; }
.zoomd::backdrop { background: var(--cherry); }
.zoomd img { max-height: 78vh; width: auto; max-width: 100%; margin-top: .75rem; object-fit: contain; }
