/* =====================================================================
   Paper and Ink · essays/approval-needs-a-budget-of-attention.css
   "Approval Needs a Budget of Attention": 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:
   three approval slips in a row (Figure 1)
   and a review coverage map on taped graph paper with a separate monitoring record (Figure 2).
   Gold = approval events; blue = effective scrutiny.
   Every rule below is scoped to its figure so none of it can restyle the generated Read next block. */

/* ---- 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 approval slips ------------------------------------------ */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.apfig { overflow-x: clip; overflow-clip-margin: 14px; padding-top: 6px; }
.apfig .aprow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.apfig .ap {
  position: relative; background: var(--noise), var(--slip); font-family: var(--mono); font-size: .72rem; line-height: 1.55;
  padding: .9rem .9rem 1rem; border-top: 5px solid var(--graphite); animation: fade .5s ease both;
}
.apfig .a1 { transform: rotate(-1.4deg); }
.apfig .a2 { transform: rotate(.8deg); margin-top: 14px; animation-delay: .5s; }
.apfig .a3 { transform: rotate(-.6deg); margin-top: 4px; animation-delay: 1s; }
.apfig .ph { font-family: var(--sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .8; }
.apfig .act { font-family: var(--serif); font-size: 1rem; line-height: 1.3; margin: .35rem 0 .5rem; color: var(--slip-ink); }
.apfig .cmd { margin: 0 0 .7rem; padding: .35rem .5rem; background: var(--sheet); overflow-wrap: anywhere; opacity: .85; }
.apfig .flds { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; margin: 0 0 .7rem; color: var(--slip-life); }
.apfig .flds dt { font-family: var(--sans); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding-top: .15rem; }
.apfig .flds dd { margin: 0; }
.apfig .stamp.g { display: table; color: var(--slip-once); margin: .1rem 0 .8rem .2rem; transform: rotate(-5deg); }
.apfig .a1 .stamp { animation-delay: .4s; }
.apfig .a2 .stamp { animation-delay: .9s; }
.apfig .a3 .stamp { animation-delay: 1.5s; transform: rotate(4deg); }
.apfig .rv { border-left: 3px solid var(--slip-life); padding: .1rem 0 .1rem .6rem; color: var(--slip-life); animation: fade .6s ease both; }
.apfig .a1 .rv { animation-delay: 1.9s; }
.apfig .a2 .rv { animation-delay: 2.1s; }
.apfig .a3 .rv { animation-delay: 2.3s; }
.apfig .rv p { margin: 0; }
.apfig .rv .rh { font-family: var(--sans); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.apfig .tally { margin: 1.4rem 0 0; color: var(--ink); animation: fade .7s ease 2.6s both; }
.apfig .tally b { color: var(--once); }

/* ---- Figure 2: the review coverage map -------------------------------------- */
.cmap {
  position: relative; padding: 1.5rem 1.4rem 1.3rem; transform: rotate(-.3deg); color: var(--slip-ink);
  background:
    var(--noise),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--sheet);
}
.cmap::before, .cmap::after { content: ""; position: absolute; top: -11px; width: 84px; height: 24px; background: var(--noise), var(--tape); }
.cmap::before { left: 22px; transform: rotate(-5deg); }
.cmap::after { right: 22px; transform: rotate(4deg); }
.cmap .pick { border: 0; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.cmap .pick label { font-family: var(--sans); font-size: .85rem; color: var(--graphite); cursor: pointer; padding: .2rem 0; border-bottom: 2px solid transparent; }
.cmap .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmap .pick label:has(input:checked) { color: var(--slip-ink); border-bottom-color: var(--slip-ink); }
.cmap .pick label:has(input:focus-visible) { outline: 2px solid var(--life); outline-offset: 3px; }
.cmap .map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1.2fr); gap: 0; align-items: stretch; }
.cmap .zh { font-family: var(--sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 0 0 .3rem; }
.cmap .zs { font-family: var(--serif); font-style: italic; font-size: .92rem; line-height: 1.35; margin: 0 0 .6rem; }
.cmap .chip { font-family: var(--mono); font-size: .72rem; margin: .3rem 0 0; padding: .3rem .5rem; background: var(--noise), var(--slip); box-shadow: 0 1px 1px var(--shadow); display: table; }
/* the enforced boundary: a heavy dashed pencil line, deterministic, neither gold nor blue */
.cmap .zin { border: 2.5px dashed var(--graphite); padding: .8rem .8rem .9rem; color: var(--graphite); }
.cmap .zin .chip { color: var(--slip-ink); }
/* the gate sits on the boundary's edge; an approval event happens here, so it is gold */
.cmap .gate {
  align-self: center; margin-left: -2.5px; padding: .7rem .7rem .5rem; border: 2px solid var(--slip-once); color: var(--slip-once);
  background: var(--noise), var(--slip); text-align: center; position: relative; z-index: 1;
}
.cmap .gate .gt { font-family: var(--mono); font-size: .74rem; margin: 0 0 .3rem; }
.cmap .gate .zs { margin: 0; font-size: .82rem; }
.cmap .zout { padding: 0 0 0 .9rem; color: var(--graphite); display: grid; gap: .7rem; align-content: start; }
.cmap .zout > .zh { margin-bottom: 0; }
.cmap .dest { border: 1.5px solid var(--graphite); padding: .55rem .7rem .65rem; background: var(--noise), var(--sheet); }
.cmap .dest .dh { font-family: var(--serif); font-style: italic; font-size: .95rem; margin: 0; }
.cmap .dest .chip { color: var(--slip-ink); }
.cmap .human { border-color: var(--slip-once); }
.cmap .human .dh { color: var(--slip-once); }
.cmap .human .ev { font-family: var(--mono); font-size: .66rem; color: var(--slip-life); margin: .5rem 0 0; }
/* the monitoring record is its own sheet: scrutiny of outcomes, kept apart from the gate */
.cmap .record { margin-top: 1.3rem; padding: .7rem .9rem .5rem; background: var(--noise), var(--slip); border-left: 4px solid var(--slip-life); color: var(--slip-life); box-shadow: 0 1px 1px var(--shadow); transform: rotate(.3deg); }
.cmap .record .zs { margin: 0 0 .2rem; }
/* tracing: the chosen action's path inks in; everything else fades back to pencil */
.cmap [data-p] { transition: opacity .3s ease; }
.cmap .map [data-p]:not(.on), .cmap .record:not(.on) { opacity: .95; }
.cmap .chip.on { outline: 2px solid currentColor; outline-offset: 2px; }
.cmap + .narr { margin-top: 1.5rem; }

@media (max-width: 680px) {
  .apfig .aprow { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 380px; }
  .apfig .a2, .apfig .a3 { margin-top: 0; }
  .cmap .map { grid-template-columns: minmax(0, 1fr); }
  .cmap .gate { margin: -2.5px 0 0; justify-self: start; min-width: 60%; }
  .cmap .zout { padding: .9rem 0 0; }
}

/* Phone mode: the coverage map's choices stack into a list and its sheet loses some margin. */
@media (max-width: 560px) {
  .cmap { padding: 1.4rem .9rem 1.1rem; }
  .cmap .pick { display: grid; grid-template-columns: 1fr; gap: .1rem; }
}
