/* =====================================================================
   Paper and Ink · essays/the-market-sold-the-seat.css
   "The Market Sold the Seat": the figures only this dispatch 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 stock slip beside a contract card (Figure 1)
   and a renewal worksheet with a choice of next year's terms (Figure 2).
   Gold = the price of the stock; blue = the price of the seat. */

/* ---- 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 stock slip and the contract card ------------------------ */
.desk { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; max-width: 720px; overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.tape, .card, .bill { position: relative; padding: 1rem 1.1rem 1.1rem; font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--slip-ink); }
.tape { background: var(--noise), var(--slip); border-top: 5px solid var(--slip-once); transform: rotate(-1.2deg); animation: fade .6s ease .1s both; }
.card { background: var(--noise), var(--sheet); border-top: 5px solid var(--slip-life); transform: rotate(.7deg); animation: fade .6s ease .7s both; }
.th { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin: 0 0 .6rem; }
.tr { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin: 0; padding: .25rem 0; border-bottom: 1px solid color-mix(in srgb, var(--slip-ink) 18%, transparent); }
.tr span { min-width: 0; }
.tr b { font-weight: 500; text-align: right; }
.tape .tr b { color: var(--slip-once); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.card .tr b { color: var(--slip-life); }
.tn { margin: .7rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* ---- Figure 2: the renewal worksheet --------------------------------------- */
.pick { border: 0; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-family: var(--sans); font-size: .86rem; color: var(--ink); }
.pick legend { padding: 0; margin-bottom: .35rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pick label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.pick input { accent-color: var(--life); margin: 0; }
.pick input:focus-visible { outline: 2px solid var(--life); outline-offset: 3px; }
.bill { max-width: 640px; background: var(--noise), repeating-linear-gradient(transparent 0 27px, var(--grid-major) 27px 28px), var(--slip); transform: rotate(.3deg); }
.bill::before, .bill::after { content: ""; position: absolute; top: -11px; width: 92px; height: 26px; background: var(--noise), var(--tape); }
.bill::before { left: 22px; transform: rotate(-4deg); }
.bill::after { right: 22px; transform: rotate(5deg); }
.br { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 7rem; gap: .3rem .8rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--slip-ink) 15%, transparent); }
.br span:first-child { font-family: var(--sans); font-weight: 600; font-size: .8rem; }
.bf { min-width: 0; }
.br b { text-align: right; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.br b.life { color: var(--slip-life); }
.bn { margin: .9rem 0 0; }

/* Phone mode: the slip and the card stack; each worksheet row puts the label and amount on one line
   with the arithmetic beneath. */
@media (max-width: 560px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .th { font-size: .7rem; letter-spacing: .08em; }
  .br { grid-template-columns: minmax(0, 1fr) auto; }
  .bf { grid-column: 1 / -1; grid-row: 2; }
}
