/* Demo page layout for this entry. Not part of the pattern. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rush { width: min(560px, 100%); padding: 20px 22px 22px; }
.rush-head { display: grid; gap: 4px; }
.rush h1 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.rush-sub { color: var(--demo-mute); font-size: 13.5px; }

/* the hours: ink bars, the rush hour in red; a baseline drawn under the plot */
.hours { --bars-h: 196px; margin-top: 28px; color: var(--demo-ink); }
.hours .bars { --bar-gap: 10px; font-size: 13px; }
.hours::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1.9em; border-top: 1px solid var(--demo-ink); font-size: 13px; }
.hours .bar-fill { background: color-mix(in srgb, var(--demo-ink) 82%, var(--demo-paper)); }
.hours .bar-num { font-weight: 650; font-size: 13px; }
.hours .bar-label { color: var(--demo-mute); font-size: 12px; }
.hours .peak { --bar-color: var(--demo-red); }
.hours .peak .bar-fill { background: var(--demo-red); }
.hours .peak .bar-num { color: var(--demo-red); font-size: 17px; font-weight: 750; }
.hours .peak .bar-label { color: var(--demo-red); font-weight: 650; }
/* the rule at the rush height, with its note set on the right, clear of the bars */
.peak-mark { --v: .78; color: var(--demo-red); font-size: 13px; }
.peak-mark span { position: absolute; right: 0; bottom: 4px; font-size: 12px; font-weight: 600; background: var(--demo-paper); padding-left: 6px; }

/* per-bar values; in your own markup these go in style="--v: .53; --to: 112" */
.hours li:nth-child(1) { --v: .181; --to: 38; }
.hours li:nth-child(2) { --v: .533; --to: 112; }
.hours li:nth-child(3) { --v: .78;  --to: 164; }
.hours li:nth-child(4) { --v: .623; --to: 131; }
.hours li:nth-child(5) { --v: .361; --to: 76; }
.hours li:nth-child(6) { --v: .276; --to: 58; }
.hours li:nth-child(7) { --v: .461; --to: 97; }
.hours li { --i: 0; }
.hours li:nth-child(2) { --i: 1; } .hours li:nth-child(3) { --i: 2; } .hours li:nth-child(4) { --i: 3; }
.hours li:nth-child(5) { --i: 4; } .hours li:nth-child(6) { --i: 5; } .hours li:nth-child(7) { --i: 6; }

.split-h { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--demo-line); font-size: 14px; font-weight: 650; }
.orders { --bars-delay: 700ms; --bar-gap: 9px; --bar-thick: 12px; font-size: 13px; color: var(--demo-ink); }
.orders .bar-fill { background: var(--demo-blue); }
.orders .bar-num { font-weight: 650; }
.orders li:nth-child(1) { --v: .82;  --to: 62; --i: 0; }
.orders li:nth-child(2) { --v: .635; --to: 48; --i: 1; }
.orders li:nth-child(3) { --v: .41;  --to: 31; --i: 2; }
.orders li:nth-child(4) { --v: .304; --to: 23; --i: 3; }

@media (max-width: 420px) {
  .rush { padding: 16px 14px 18px; }
  .hours { --bars-h: 170px; }
  .hours .bars { --bar-gap: 6px; }
  .hours .bar-num { font-size: 11.5px; }
  .hours .peak .bar-num { font-size: 15px; }
}
@media (max-height: 520px) {
  .rush { padding-block: 14px; }
  .hours { --bars-h: 150px; margin-top: 10px; }
  .split-h { margin: 10px 0 6px; padding-top: 8px; }
  .orders { --bar-gap: 5px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .rush { width: 600px; }
  .hours { --bars-h: 220px; }
}
