/* ClearView Window Cleaning: product.css. Everything the part page needs beyond site.css.
   Names: clehr hero, clehs hero sentence, clerw row, cleph photo with tight marks, cleza zoom button,
   clemc mini corner (clehz its leader across to the photo, clevt its leader up to the photo on a phone),
   clelead lead, clestk spec stack, clewide wide drawing, clepr/clepx plate rect/text,
   cleti tick text, clehi hit area, clenl name list, clenph the name list kept for the phone only,
   clepq quote line, cleqg the action with its links under it, clepk hand-off,
   clenx next row hung off one leader, clepc next part, clepf its photograph, clelb lens box. */

/* ---------- hero ---------- */
.clehr { display: flex; flex-direction: column; gap: var(--s4); padding-block: var(--s4) var(--s2); }
.clehs { font-size: var(--t3); line-height: 1.35; max-inline-size: 44rem; }
.clerw { --ph: clamp(13rem, 40vh, 24rem); display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; padding-block-start: var(--s2); }

/* photo: marks at the left corners as usual, the two nearest the drawing tighten onto its edge */
.cleph { position: relative; flex: 1 1 26rem; min-inline-size: 0; }
.cleph::before {
  content: ""; position: absolute; inset: calc(var(--s2) * -1) 0 calc(var(--s2) * -1) calc(var(--s2) * -1); pointer-events: none; color: var(--c2);
  background:
    linear-gradient(currentColor, currentColor) 0 0 / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 0 0 / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 0 100% / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 0 100% / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 100% 0 / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 100% 0 / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .125rem .875rem;
  background-repeat: no-repeat;
}
.cleza { display: block; inline-size: 100%; cursor: zoom-in; }
.cleza img { inline-size: 100%; block-size: var(--ph); object-fit: cover; }
.cleza:focus-visible { outline-offset: .5rem; }

/* the corner stands the full height of the photograph, flush against it; its blue leader ends in a junction on the photo's edge.
   Its strokes are drawn in the drawing's own units, so they thicken as the drawing grows to the photograph's height. */
.clemc { position: relative; flex: 0 0 auto; display: flex; align-items: stretch; justify-content: flex-start; padding-inline-end: var(--s2); }
.clemc svg { block-size: var(--ph); min-block-size: 100%; inline-size: auto; aspect-ratio: 3 / 4; max-inline-size: none; max-block-size: none; overflow: visible; pointer-events: none; }
.clemc .cleln { stroke-width: 6; vector-effect: none; }
.clemc .cleth { stroke-width: 3; vector-effect: none; }
.clemc .cleldr { stroke-width: 4; vector-effect: none; }
.clemc .clend { stroke-width: 2; vector-effect: none; }
.clemc .clevt { display: none; }

/* ---------- body and specs ---------- */
.clelead { font-size: var(--t3); line-height: 1.4; }
.clestk { display: flex; flex-direction: column; gap: var(--s5); }
.clestk dt { align-self: flex-start; background: var(--c3); padding: var(--s1) var(--s3); font-size: var(--t1); }
.clestk dd { margin: 0; }
.clesd > .clestk { flex-basis: 18rem; }
.clesd > .clewide { flex: 2.8 1 40rem; }
.clesd:has(> .clewide) > .clefl { flex: 0 1 15rem; max-inline-size: 22rem; }

/* ---------- where it sits ---------- */
.clecr svg { max-block-size: none; }
.clepr { fill: var(--c3); }
.clepx { fill: var(--c4); font: 700 15px var(--f2); }
.cleti { fill: var(--c2); font: 400 15px var(--f2); }
.clehi { fill: transparent; }
.clecr a:hover .cleth { stroke-width: 3; }
.clecr a:hover .cleti { text-decoration: underline; }
.clecr a:focus-visible { outline: .1875rem solid var(--c2); }
.clenl { display: flex; flex-direction: column; gap: var(--s1); }
.clenl a, .clenl .clepl { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.clenl .clepl { color: var(--c4); font-weight: 600; }
/* on a desk the drawing's own labels are the links; the list of names is for the phone, where the drawing keeps only its ticks */
@media (min-width: 40rem) {
  .clenph { display: none; }
}

/* ---------- quote and hand-off ---------- */
.clepq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s5) var(--s6); }
.clepq p { flex: 1 1 22rem; max-inline-size: 38rem; font-size: var(--t3); line-height: 1.4; }
.cleqg { flex: 1 1 18rem; min-inline-size: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s2) 0 0 var(--s2); }
.clepk { gap: 0; }
.clepk a { text-decoration-thickness: .125rem; }

/* ---------- leading on: three crops hung off one leader, each stepping down and away ---------- */
.clenx { position: relative; display: flex; flex-direction: column; gap: var(--s3) var(--s6); }
.clenx::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: .125rem; background: var(--c2); }
.clepc { position: relative; display: flex; flex-direction: column; gap: var(--s3); align-content: start; min-inline-size: 0; padding-inline-start: var(--s6); padding-block-end: var(--s5); text-decoration: none; }
.clepc:last-child { padding-block-end: 0; }
.clepc::before { content: ""; position: absolute; inset-block-start: var(--s4); inset-inline-start: 0; inline-size: var(--s6); block-size: .125rem; background: var(--c2); transition: background-color var(--d1); }
.clepc::after { content: ""; position: absolute; inset-block-start: .75rem; inset-inline-start: -.25rem; inline-size: .625rem; block-size: .625rem; background: var(--c2); outline: .125rem solid var(--c3); transition: background-color var(--d1); }
.clepc:hover::before, .clepc:hover::after, .clepc:focus-visible::before, .clepc:focus-visible::after { background: var(--c4); }
.clepf { display: block; min-inline-size: 0; }
.clepf img { inline-size: 100%; block-size: clamp(10rem, 26vh, 14rem); object-fit: cover; }
/* every caption holds two lines of its own size, so the prices under them sit on one straight line whatever the name */
.clepc h3 { font-size: var(--t4); line-height: 1.18; align-self: start; min-block-size: 2.36em; }
.clepc .clecpt { align-self: start; }
.clepc:hover h3 { text-decoration: underline; text-decoration-thickness: .125rem; }

@media (min-width: 48rem) {
  .clenx { flex-direction: row; align-items: flex-start; gap: var(--s6); }
  .clenx::before { inset-block: 0 auto; inset-inline: 0; inline-size: auto; block-size: .125rem; }
  .clepc { padding-inline-start: 0; padding-block: var(--s5) 0; }
  /* three unequal widths, hung at three depths, with three heights of crop: a stagger, not a strip */
  .clepc:nth-child(1) { flex: 1.7 1 15rem; }
  .clepc:nth-child(2) { flex: 1.1 1 11rem; margin-block-start: var(--s4); }
  .clepc:nth-child(3) { flex: .75 1 9rem; margin-block-start: var(--s6); }
  .clepc::before { inset-block-start: 0; inset-inline-start: var(--s4); inline-size: .125rem; block-size: var(--s5); }
  .clepc:nth-child(2)::before { inset-block-start: calc(-1 * var(--s4)); block-size: calc(var(--s4) + var(--s5)); }
  .clepc:nth-child(3)::before { inset-block-start: calc(-1 * var(--s6)); block-size: calc(var(--s6) + var(--s5)); }
  .clepc::after { inset-block-start: -.25rem; inset-inline-start: .75rem; }
  .clepc:nth-child(2)::after { inset-block-start: calc(-1 * var(--s4) - .25rem); }
  .clepc:nth-child(3)::after { inset-block-start: calc(-1 * var(--s6) - .25rem); }
  .clepc:nth-child(1) .clepf img { block-size: clamp(13rem, 34vh, 20rem); }
  .clepc:nth-child(2) .clepf img { block-size: clamp(11rem, 28vh, 16.5rem); }
  .clepc:nth-child(3) .clepf img { block-size: clamp(9rem, 22vh, 13rem); }
}

/* ---------- lens: the picture opened large ---------- */
.clelb { padding: 0; border: 0; background: var(--c2); color: var(--c3); max-inline-size: min(96vw, 80rem); max-block-size: 96vh; overflow: auto; }
.clelb[open] { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3); }
.clelb::backdrop { background: rgba(8, 6, 17, .82); }
.clelb img { inline-size: 100%; max-block-size: 78vh; object-fit: contain; }
.clelb button { align-self: flex-end; min-block-size: 2.75rem; padding: var(--s2) var(--s5); background: var(--c3); color: var(--c2); transition: background-color var(--d1), color var(--d1); }
.clelb button:hover { background: var(--c4); color: var(--c3); }
.clelb :focus-visible { outline-color: var(--c3); }

/* ---------- phone: the drawing keeps its ticks, the list carries the names; the corner hangs under the photo and its leader runs up into it ---------- */
@media (max-width: 39.99rem) {
  .clepr, .clepx, .cleti { display: none; }
  .clecr svg { max-block-size: 18rem; }
  .clerw { --ph: clamp(11rem, 30vh, 16rem); flex-wrap: wrap; }
  .clemc { flex-basis: 100%; padding: 0; }
  .clemc svg { block-size: 11rem; min-block-size: 0; }
  .clemc .clehz { display: none; }
  .clemc .clevt { display: inline; }
}
