/* ClearView Window Cleaning: track.css. Page-only pieces for track.html, general to particular.
   Key: --c7 the marker ink of one row; ink at rest, blue while its note is hovered or holds focus (the sill row is blue when neither is). */

/* cletr (track rail): the stack of three rows that carries the profile; clerw (row): one height of the profile, in the order glass zone, sill, channel */
.cletr { display: flex; flex-direction: column; }
.clerw { --c7: var(--c2); position: relative; display: flex; flex-direction: column; gap: var(--s4); padding-block-end: var(--s5); border-inline-start: .1875rem solid var(--c2); }

/* clesil (sill row) and clech (channel row): on a phone each steps in once more, so the spine has two steps */
.clesil, .clech { align-self: flex-end; }
.clesil { inline-size: calc(100% - var(--s5)); }
.clech { inline-size: calc(100% - 2 * var(--s5)); }
.clesil::before, .clech::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: calc(-1 * (var(--s5) + .1875rem)); inline-size: calc(var(--s5) + .1875rem); block-size: .1875rem; background: var(--c2); }

/* clegl (glass zone): the opening row's text, above the sill */
.clegl { padding-inline-start: var(--s5); }

/* the notes on the rail: the foundation's clent, set tighter for a phone spine */
.cletr .clent { padding-inline-start: calc(var(--s5) + var(--s2)); }
.cletr .clent::after { inset-inline-start: -.40625rem; }
.cletr .clent h3 { color: var(--c2); }

/* clenx (next link): a link to a part page, a full touch height, kept to its own width */
.clenx { display: inline-flex; align-items: center; align-self: flex-start; min-block-size: 2.75rem; font-weight: 500; }

/* clepq (pull line): the one line I'd want read if nothing else were */
.clepq { font-family: var(--f1); font-weight: 700; font-size: var(--t4); line-height: 1.25; color: var(--c3); }

/* clesv (section view): the drawn half of a row, hidden on a phone; clemk (marker): the junction square on the drawn line; clems (sill) and clemc (channel) set where along it */
.clesv svg { display: none; }
.clemk { display: none; position: absolute; inset-block-start: -.3125rem; inline-size: .625rem; block-size: .625rem; background: var(--c7); outline: .125rem solid var(--c3); transition: background-color var(--d1); }
.clems { inset-inline-start: calc(22% - .3125rem); }
.clemc { inset-inline-start: calc(61% - .3125rem); }

/* the held state: one row at a time carries blue; with nothing held the sill row does */
.cletr:not(:has(.clent:is(:hover, :focus-within))) .clesil,
.clerw:has(.clent:is(:hover, :focus-within)) { --c7: var(--c4); }
.cletr:not(:has(.clent:is(:hover, :focus-within))) .clesil .cleldr,
.clerw:has(.clent:is(:hover, :focus-within)) .cleldr { stroke-width: 3; }
.cletr .cleldr { stroke: var(--c7); }
.cletr .clent::before, .cletr .clent::after { background: var(--c7); }

/* the pictures: the sill shot inside its note, the last-look photograph beside the hand-off */
.clent .clepic { padding-block-start: var(--s2); }
.clent .clepic > img { aspect-ratio: 3 / 2; object-fit: cover; }
.clesd .clepic > img { aspect-ratio: 4 / 3; object-fit: cover; }
.clesd h2 { max-inline-size: 36rem; }

@media (min-width: 48rem) {
  /* the profile is drawn at full grid width: drawing left, notes right; row edges are the ledge and floor lines */
  .clerw { flex-direction: row; gap: 0; padding-block-end: 0; border: 0; }
  .clesil, .clech { align-self: stretch; inline-size: auto; }
  .clesil::before, .clech::before { display: none; }
  .clesv { order: -1; position: relative; flex: 0 0 48%; }
  .clesv svg { display: block; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
  .clemk { display: block; }
  .clegl, .cletr .clent { flex: 1 1 0; min-inline-size: 0; padding-inline-start: var(--s6); padding-block: var(--s3) var(--s6); }
  .cletr .clent::before { inset-block-start: -.0625rem; }
  .cletr .clent::after { inset-block-start: -.3125rem; inset-inline-start: 0; }
  .clegl { padding-block-start: 0; justify-content: center; }
}
