/* Allied Decorations Co · the survey slip and the blank job ticket. */

/* allct — contact survey slip, with room for the whole measuring photograph. */
.allct {
  align-items: center;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

/* allcx — contact survey copy at the left of the mat. */
.allcx { grid-column: span 3; min-width: 0; }
.allcx .alltx { margin-top: .875rem; }

/* allcp — contact photograph, on its chalk mat. */
.allcp { grid-column: span 5; min-width: 0; }
.allcp img { height: auto; aspect-ratio: 16 / 9; }

/* alljt — job ticket, sized like the label on a crate lid. */
.alljt {
  --ticket-width: 49rem;
  width: min(100%, var(--ticket-width));
  box-sizing: border-box;
  align-self: center;
  display: grid;
  gap: .75rem;
  padding: 1.125rem 1.375rem;
}
.alljt .alllb { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.alljt .allno { font-size: 2.5rem; }

/* alljf — job fields, with blank dotted runs for the measurements and dates. */
.alljf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .375rem 1.125rem;
  margin: 0;
}
.alljf > div {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr);
  align-items: baseline;
  gap: .625rem;
  padding: .375rem .625rem;
}
.alljf > div:last-child { grid-column: 1 / -1; }
.alljf .alldw {
  box-shadow: inset 0 0 0 var(--hairline) var(--brass),
    inset 0 0 0 .1875rem var(--fir), inset 0 0 0 .25rem var(--brass);
}
.alljf dt { font: 700 1.3125rem/1.15 var(--stencil); }
.alljf dd {
  margin: 0;
  min-height: 1em;
  border-bottom: .125rem dotted var(--chalk);
  font: 400 .95rem/1.2 var(--packing-slip);
}

/* alljr — job replies: the brass number beside the email. */
.alljr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.5rem;
  border-top: .3125rem double var(--brass);
  padding-top: .375rem;
}
.alljr a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.alljr .allte { font: 800 2.125rem/1.1 var(--stencil); }

/* allja — job actions, printed at equal weight on the ticket and the last slip. */
.allja {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .75rem;
}
.allja .allbt { box-sizing: border-box; text-align: center; }

/* allcsu — contact supporting slips on the full eight columns. */
.allcsu > * { min-width: 0; }
.allcsu .alltx { margin-top: .875rem; }

/* allci — contact instructions, the booking order. */
.allci { grid-column: span 5; }
.allci .allsp { margin-top: 1rem; }
.allci .allsp li:last-child { padding-bottom: 0; }

/* allca — contact address and the hours at the phone desk. */
.allca { grid-column: span 3; }
.allca address { font-style: normal; }

/* allcr — contact readiness slip, the checks before the visit. */
.allcr { grid-column: span 3; }
.allcr ul { list-style: none; margin: .875rem 0 0; padding: 0; }
.allcr li {
  border-top: .25rem double var(--brass);
  padding-block: .625rem;
  font-size: 1.0625rem;
}
.allcr li:last-child { padding-bottom: 0; }

/* allco — contact onward slip, to the quote and packing list. */
.allco {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.allco .allja { margin-top: auto; padding-top: 1.25rem; }

@media (max-width: 56rem) {
  .allcx, .allcp, .allci, .allca, .allcr, .allco { grid-column: 1 / -1; }
  .allct { gap: 1rem; }
  .allcr li { font-size: 1rem; }
}

@media (max-width: 36rem) {
  .allct { padding: 1.125rem; }
  .alljt { padding: 1rem; }
  .alljt .alllb { gap: .75rem; }
  .alljt .allno { font-size: 2rem; }
  .alljf { grid-template-columns: minmax(0, 1fr); }
  .alljr { gap: 0 .875rem; }
  .allja {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }
}
