/* Allied Decorations Co · events.css — the run sheet and the event panels. Desk first; the narrow rules at the foot take things away. */
:root {
  --doors-width: 11rem;
  --bunting-photo: calc(var(--first-screen) - 18rem);
}

/* allev — body class of this page (events); nothing to set on it */
.allev { background: transparent; }

/* allpr — the pinned offer stands on its own solid plate, so the page's text passes beneath it; allpw and allst share that ground */
.allpr { background: var(--crate); }
.allpw { background: var(--crate); }
.allst { background: var(--crate); border-radius: 50%; }
@media (min-width: 56.0625rem) {
  .allpr { padding: .5rem .25rem .75rem .5rem; border: var(--hairline) solid var(--brass); }
}

/* allhp — head panel: job number left, h1 and sentence right */
.allhp { align-items: center; }
.allhp .alltx { margin-top: .9rem; }
/* allhf — the bunting photograph, wide across the opening */
.allhf { box-sizing: border-box; height: clamp(14rem, var(--bunting-photo), 42rem); }
.allhf img { object-position: 50% 60%; }

/* allrn — the run sheet: a head panel over a three-column ledger; allrh the head */
.allrn { display: grid; grid-template-columns: 1fr var(--doors-width) 1fr; gap: var(--crate-gap); }
.allrh { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; align-items: center; }

/* allcl — a clock ledger, one row per step; allck is the count in its margin */
.allcl { list-style: none; margin: 1rem 0 0; padding: 0; }
.allcl li {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: .25rem 1rem;
  padding: .95rem 0; border-top: .25rem double var(--brass);
  font-size: 1rem; line-height: 1.55;
}
.allcl li:first-child { border-top: 0; padding-top: .25rem; }
.allcl b { grid-column: 2; font: 800 1.75rem/1 var(--stencil); }
.allcl .allrs { grid-column: 2; }
.allck { grid-column: 1; grid-row: 1 / span 2; font: 400 1.25rem/1.2 var(--packing-slip); color: var(--brass); }

/* alldr — the panel between the columns; alldt the tall "Doors open." line, set down its spine */
.alldr { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.5rem .75rem; gap: 1rem; }
.alldr .allrl { width: 100%; margin: 0; }
.alldt {
  margin: 0; font: 300 clamp(3.25rem, 5vw, 4.5rem)/1 var(--stencil);
  writing-mode: vertical-rl; white-space: nowrap;
}
.alldt b { font-weight: 800; }

/* allbl allbr — bunting panel, steps left and facts right; allsd the facts box, allsl the link under it */
.allbl { grid-column: 1 / 6; }
.allbr { grid-column: 6 / 9; align-self: start; }
.allsd {
  margin: 0; padding: 1.25rem 1.4rem;
  box-shadow: inset 0 0 0 .0625rem var(--brass), inset 0 0 0 .3125rem var(--crate), inset 0 0 0 .375rem var(--brass);
}
.allsd div + div { margin-top: .75rem; padding-top: .75rem; border-top: .25rem double var(--brass); }
.allsd dt { font: 400 .9rem/1.4 var(--packing-slip); color: var(--brass); }
.allsd dd { margin: .2rem 0 0; font: 700 1.4rem/1.2 var(--stencil); }
.allsl { margin: 1.1rem 0 0; font-size: 1.0625rem; }

/* allhi allhn — lighting panel: the event photograph left, its words right */
.allhi { grid-column: 1 / 5; align-self: stretch; }
.allhi img { aspect-ratio: 3 / 2; min-height: 18rem; }
.allhn { grid-column: 5 / 9; align-self: center; }
.allhn .alltx { margin-top: 1rem; }

/* allml allmr — what-to-tell-us panel: the manual left, the blank label right */
.allml { grid-column: 1 / 6; }
.allmr { grid-column: 6 / 9; align-self: start; }
.allmr .allds { grid-template-columns: 1fr; }
.allml .alltx { margin-top: 1rem; }

/* allnx — the hand-off at the foot; allnl its two stencil links */
.allnx { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.allnx .alltx { margin-top: 1rem; }
.allnl { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.allnl li + li { border-top: .25rem double var(--brass); }
.allnl a { display: block; padding: .9rem 0; font: 700 1.625rem/1.15 var(--stencil); text-decoration: none; }
.allnl a:hover, .allnl a:focus-visible { text-decoration: underline double var(--brass); text-underline-offset: .15em; }
.allnl .allrs { margin-top: .3rem; font: 400 1rem/1.5 var(--packing-slip); }

/* ================= NARROWER ================= */
@media (max-width: 56rem) {
  .allhf { height: auto; }
  .allhf img { height: auto; flex: none; aspect-ratio: 16 / 9; }
  .allrn, .allrh, .allnx { grid-template-columns: minmax(0, 1fr); }
  .alldr { flex-direction: row; padding: 1rem; }
  .alldr .allrl { display: none; }
  .alldt { writing-mode: horizontal-tb; font-size: 2.5rem; }
  .allbl, .allbr, .allhi, .allhn, .allml, .allmr { grid-column: 1 / -1; }
  .allhi img { min-height: 0; }
  .allcl li { grid-template-columns: 2.75rem 1fr; }
  .allcl b { font-size: 1.5rem; }
  .allnl a { font-size: 1.5rem; }
}
