/* Allied Decorations Co · storage.css — the rack page. Class names begin "all"; each is spelled out where first written. */
:root { --upright: .5rem; --plank: .375rem; --bay-height: 6.5rem; }

/* allhp — the head panel: the h1 left, its one sentence right */
.allhp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: end; }
/* allwd — the wide store photograph; it takes whatever height the first screen leaves */
.allwd { flex: 1 1 0; min-height: 15rem; contain: size; }

/* allrk — the rack panel: its head, then the bay beside the list */
.allrk { display: grid; gap: 1.5rem; }
.allrk .alltx { margin-top: .75rem; }
/* allbr — bay row: the drawing left, the packing list right */
.allbr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: var(--crate-gap); align-items: start; }
/* allby — the bay: two double-rule uprights and a top beam */
.allby { border: var(--upright) double var(--brass); border-bottom: 0; }
/* allsh — a shelf: crates stand on a double-rule plank */
.allsh { display: flex; align-items: flex-end; gap: .5rem; padding: 1rem .6rem 0; border-bottom: var(--plank) double var(--brass); }
/* allcr — a crate, a labelled rectangle you pick; allnm is its number */
.allcr {
  --slip: var(--claret);
  flex: 1 1 0; min-width: 0; min-height: var(--bay-height);
  display: flex; flex-direction: column; justify-content: space-between; gap: .4rem;
  padding: .7rem .65rem; border: 0; background: var(--slip); color: var(--chalk);
  text-align: left; cursor: pointer; font: 400 .9rem/1.25 var(--packing-slip); overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 .125rem var(--brass), inset 0 0 0 .25rem var(--slip), inset 0 0 0 .3125rem var(--brass);
}
.allcr:nth-child(2) { min-height: calc(var(--bay-height) + 1.25rem); }
.allcr:nth-child(3) { min-height: calc(var(--bay-height) - .75rem); }
.allcr.picked { --slip: var(--chalk); color: var(--crate); }
.allnm { font: 800 2rem/.9 var(--stencil); color: var(--brass); }
.allcr.picked .allnm { color: var(--crate); }

/* allvw — the view: all nine lists stacked in one cell, only the shown one visible */
.allvw { display: grid; }
/* allpk — one packing list on its own solid panel; allsf is its shelf line */
.allpk { grid-area: 1 / 1; visibility: hidden; padding: 1.25rem 1.5rem; align-content: start; }
.allpk.shown { visibility: visible; }
.allsf { margin: .5rem 0 0; color: var(--brass); font: 400 .9rem/1.4 var(--packing-slip); }
.allpk ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.allpk li { padding: .65rem 0; border-top: .25rem double var(--brass); font-size: 1rem; line-height: 1.5; }

/* allsx — wide steps: the step, then its result in the column beside it */
.allsx { margin-top: 1.25rem; }
.allsx li { grid-template-columns: 3.75rem minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1rem 1.5rem; }
.allsx li > * { grid-column: auto; }
.allsx li::before { grid-row: auto; }

/* allsa — the sample label beside what its lines are for (not allsm: that name is the offer stamp in site.css) */
.allsa { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--crate-gap); }
.allsa .alllb { align-content: start; }
/* allfd — the building, door and run lines of the sample label */
.allfd { grid-column: 1 / -1; display: grid; gap: .6rem; margin: 0; }
.allfd > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; }
.allfd dt { color: var(--brass); font: 400 .9rem/1.3 var(--packing-slip); }
.allfd dd { margin: 0; min-height: 1.75rem; font: 400 1rem/1.4 var(--packing-slip); border-bottom: .125rem dotted rgba(241, 230, 210, .6); }
.allsa .allds dd { font: 400 1rem/1.4 var(--packing-slip); }

/* allrp — the replace panel: the crate photograph beside what gets swapped */
.allrp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; align-items: stretch; }
.allrp .allph img { min-height: 20rem; }
.allrp .alltx { margin-top: .75rem; }
/* allrw — rows of what is replaced and when */
.allrw { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.allrw li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 0; border-top: .25rem double var(--brass); font-size: 1.0625rem; line-height: 1.55; }
.allrw b { font: 800 1.375rem/1.1 var(--stencil); color: var(--brass); }

/* allhf — the hand-off: where to go next, and the call button */
.allhf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.allhf > div { flex: 1 1 24rem; }
.allhf .alltx { margin-top: .75rem; }

/* the pinned offer on this page: the long reading panels run the full width and pass beneath it.
   The drawn stamp's lettering has no ground of its own to stand on (it is drawn, not set), so on a
   desk screen the offer is the plain tag and its × on their solid crate plate; the stamp is put away.
   The phone keeps its small stamp in the slim band. */
.allpr, .allpw, .allpt, .allpx { background: var(--crate); }
@media (min-width: 56.0625rem) {
  .allst { display: none; }
  .allpr { width: auto; padding: .5rem; }
}

@media (max-width: 56rem) {
  :root { --bay-height: 5rem; }
  .allhp, .allbr, .allsa, .allrp { grid-template-columns: minmax(0, 1fr); }
  .allwd { contain: none; flex: none; min-height: 0; }
  .allwd img { flex: none; height: auto; aspect-ratio: 3 / 2; }
  .allrk.allpd { padding: 1rem; }
  .allsh { gap: .4rem; padding: .8rem .4rem 0; }
  .allcr { padding: .5rem .4rem; }
  .allnm { font-size: 1.625rem; }
  .allpk { padding: 1rem; }
  .allsx li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .3rem 1rem; }
  .allsx li > * { grid-column: 2; }
  .allsx li::before { grid-row: span 2; }
  .allfd > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .allrp .allph img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .allrw li { grid-template-columns: minmax(0, 1fr); }
  .allhf .allbt { width: 100%; }
}
