/* =====================================================================
   Paper and Ink · essays/the-queue-is-part-of-the-price.css
   "The Queue Is Part of the Price": the figures only this essay uses.
   Loaded after the shared stylesheets; everything shared lives in css/.
   ===================================================================== */

/* Layout: one 64ch reading column on grained paper; two paper objects break out to 860px:
   a numbered counter ticket with a pencilled time ledger beside it (Figure 1), and a
   worksheet on taped graph paper comparing four service arrangements, with a delay-cost
   dial and a reckoning ledger (Figure 2).
   Gold = the money paid; blue = the time spent waiting; graphite = notes, rulers, transfers. */

.dek { max-width: 44ch; }

/* ---- footnote markers -------------------------------------------------- */
sup.ref { font-family: var(--sans); font-size: .62em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; color: var(--life); padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }
.sources li:target { color: var(--ink); background: var(--life-soft); }

/* ---- Figure 1: the ticket and the time ledger ---------------------------- */
.fig1 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: 40px; align-items: start; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.ticket {
  position: relative; background: var(--noise), var(--slip);
  padding: 1.1rem 1.1rem 1.5rem; font-family: var(--mono); font-size: .76rem; line-height: 1.6;
  transform: rotate(-1.6deg); animation: fade .6s ease both;
  /* perforated top and bottom edges */
  -webkit-mask: radial-gradient(circle 4px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x,
                radial-gradient(circle 4px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
  mask: radial-gradient(circle 4px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x,
        radial-gradient(circle 4px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
}
.ticket .th, .log .lh { font-family: var(--sans); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin: .3rem 0 .7rem; opacity: .8; text-align: center; line-height: 1.5; }
.log .lh { text-align: left; }
.ticket .tsub { margin: 0; text-align: center; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; opacity: .7; }
.ticket .tnum { margin: 0 0 .5rem; text-align: center; font-family: var(--serif); font-size: 4.2rem; line-height: 1; font-weight: 400; animation: fade .6s ease .3s both; }
.trow { display: flex; gap: 6px; margin: 0; align-items: baseline; }
.trow span { flex: none; }
.trow i { flex: 1; min-width: 10px; border-bottom: 1px dotted currentColor; opacity: .4; transform: translateY(-.45em); }
.trow b { flex: none; font-weight: 500; }
.trow.once { color: var(--slip-once); }
.ticket .s-paid { display: table; margin: .8rem auto .2rem; color: var(--slip-once); transform: rotate(-7deg); animation-delay: .8s; }
.ticket .tfoot { margin: .8rem 0 0; text-align: center; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }

.log {
  position: relative; margin-top: 1.4rem; padding: 1rem 1rem 1.2rem 1.1rem;
  background:
    var(--noise),
    linear-gradient(transparent 1.75rem, color-mix(in srgb, var(--slip-life) 16%, transparent) 1.75rem, transparent calc(1.75rem + 1px)) 0 .55rem / 100% 1.85rem,
    var(--sheet);
  transform: rotate(1.4deg); animation: fade .7s ease 1.2s both;
}
.log .lh { margin: 0 0 .5rem; }
.log .lrow { margin: 0; color: var(--slip-life); font-size: 1.08rem; line-height: 1.85rem; white-space: nowrap; animation: fade .5s ease both; }
.log .lrow .t { font-family: var(--mono); font-style: normal; font-size: .76rem; display: inline-block; min-width: 3.1rem; }
.log .lrow:nth-of-type(2) { animation-delay: 1.6s; }
.log .lrow:nth-of-type(3) { animation-delay: 2s; }
.log .lrow:nth-of-type(4) { animation-delay: 2.4s; }
.log .lrow:nth-of-type(5) { animation-delay: 2.8s; }
.log .lrow.tot { animation-delay: 3.2s; border-top: 1.5px solid var(--slip-life); margin-top: .3rem; }
.log .s-time { display: table; margin: .7rem 0 0 auto; color: var(--slip-life); transform: rotate(5deg); font-size: .66rem; animation-delay: 3.8s; }

.side { display: grid; gap: 6.5rem; padding-top: 3.4rem; }
.side .mnote p { max-width: 22ch; }
.m1 p { animation: fade .7s ease 1s both; }
.m2 p { animation: fade .7s ease 4.1s both; }
.side .a1 path { animation-delay: .9s; }
.side .a2 path { animation-delay: 3.9s; }
.again { margin-top: 1rem; }

/* ---- Figure 2: the worksheet ------------------------------------------- */
.chart2 { cursor: auto; touch-action: auto; padding: 26px 20px 20px; color: var(--slip-ink); }
.qchart text { fill: var(--slip-ink); }
.qchart .colhead { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.qchart .rowname { font-size: 17px; }
.qchart .val { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.qchart .svgnote.sm { font-size: 13px; }
.qchart .zero { fill: none; stroke: var(--slip-once); stroke-width: 1.6; }
.qchart .tk { stroke: var(--slip-ink); stroke-width: 1; opacity: .55; }
.qchart .tk.major { opacity: .9; stroke-width: 1.3; }
.qchart .rowlab { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--graphite); }

.dial { margin: 1rem 0 0; max-width: 560px; font-family: var(--sans); font-size: .85rem; color: var(--slip-ink); }
.dial label { display: block; margin-bottom: .4rem; line-height: 1.45; }
.dial b { font-family: var(--mono); font-weight: 500; }
.dial .vr, .dial .vu { color: var(--slip-life); }
.dial input { width: 100%; max-width: 420px; accent-color: var(--slip-life); }
.dial input:focus-visible { outline: 2px solid var(--life); outline-offset: 3px; }

.ledger {
  margin: 1rem 0 0; max-width: 560px; background: var(--noise), var(--slip); padding: .7rem .9rem .6rem;
  box-shadow: 0 1px 1px var(--shadow); font-family: var(--mono); font-size: .76rem; transform: rotate(-.4deg);
}
.ledger .lrow { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: .14rem 0; line-height: 1.45; }
.ledger .lrow span { flex: 0 1 auto; }
.ledger .lrow i { flex: 1; min-width: 10px; border-bottom: 1px dotted currentColor; opacity: .4; transform: translateY(-.45em); }
.ledger .lrow b { flex: none; width: 5.4rem; text-align: right; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.ledger .lrow b.once { color: var(--slip-once); }
.ledger .lrow b.life { color: var(--slip-life); }
.ledger .lrow.hd { font-family: var(--sans); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; border-bottom: 1px solid color-mix(in srgb, var(--slip-ink) 30%, transparent); padding-bottom: .3rem; margin-bottom: .2rem; }
.ledger .lrow.hd i { visibility: hidden; }
.ledger .lrow.best span, .ledger .lrow.best b:last-child { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ledger .lfoot { margin: .4rem 0 0; font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--graphite); }

@media (max-width: 760px) {
  .fig1 { grid-template-columns: 1fr; gap: 22px; }
  .side { gap: 14px; padding-top: 0; }
  .side .pen { display: none; }
}
/* Phone mode: the ticket and ledger stay side by side but tighten, the worksheet is redrawn
   as stacked rows on a 400-wide sheet (by the page script), and its text and ledger enlarge. */
@media (max-width: 560px) {
  .pair { gap: 12px; }
  .ticket { padding: 1rem .7rem 1.4rem; font-size: .72rem; }
  .ticket .tnum { font-size: 3.4rem; }
  .log { padding: .9rem .7rem 1rem; margin-top: .9rem; }
  .log .lrow { font-size: 1rem; white-space: normal; }
  .log .lrow .t { min-width: 2.7rem; font-size: .72rem; }
  .sheet { min-width: 0; user-select: none; }
  .sheet-scroll { overflow-x: clip; }
  .chart2 { padding: 26px 12px 14px; }
  .qchart .svglab, .qchart .rowname { font-size: 21px; }
  .qchart .svgnote { font-size: 18px; }
  .qchart .val { font-size: 17px; }
  .dial { font-size: .9rem; }
  .ledger { font-size: .7rem; padding: .6rem .6rem .5rem; }
  .ledger .lrow { flex-wrap: wrap; }
  .ledger .lrow span { flex-basis: 100%; }
  .ledger .lrow i { display: none; }
  .ledger .lrow b { width: auto; flex: 1; text-align: left; }
  .ledger .lrow.hd span { display: none; }
}
