/* =====================================================================
   Paper and Ink · essays/the-work-around-the-machine.css
   "The Work Around the Machine": 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 figures break out to 860px:
   an activated purchase order with a taped handwritten list beside it (Figure 1),
   and two possible learning paths on graph paper (Figure 2).
   Gold = purchased technical capability; blue = complementary organizational capability. */

/* ---- 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; }
sup.ref + sup.ref { margin-left: 3px; }
.sources li:target { color: var(--ink); background: var(--life-soft); }

/* ---- Figure 1: the purchase order and the list beside it --------------- */
/* clip sideways overflow so a stamp's starting scale can never widen the page on a phone */
.pofig {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start;
  overflow-x: clip; overflow-clip-margin: 14px; padding: 10px 4px 6px;
}
.po {
  position: relative; box-sizing: border-box; padding: 22px 22px 70px;
  background: var(--noise), var(--slip); transform: rotate(-1.2deg);
  font-family: var(--mono); font-size: .78rem; line-height: 1.75;
}
.po .sh { margin: 0; text-align: center; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.po .ss { margin: 0 0 8px; text-align: center; font-size: .7rem; letter-spacing: .08em; }
.po .rule { border-top: 1px dashed currentColor; opacity: .45; margin: 8px 0; }
.po .ln { display: flex; gap: 6px; margin: 0; color: var(--slip-once); }
.po .ln span { flex: none; }
.po .ln span:first-child { flex: 0 1 auto; min-width: 0; }
.po .ln i { flex: 1; min-width: 10px; border-bottom: 1px dotted currentColor; opacity: .4; transform: translateY(-.45em); }
.po .ln.st { color: var(--slip-ink); font-weight: 500; }
.po .stamp { color: var(--slip-once); position: absolute; right: 20px; bottom: 18px; transform: rotate(-7deg); animation-delay: .7s; }

.todo {
  position: relative; box-sizing: border-box; margin-top: 26px; padding: 26px 22px 20px;
  background: var(--noise), var(--sheet); transform: rotate(1.1deg);
  animation: fade .7s ease 1.3s both;
}
/* a strip of masking tape holds the list down */
.todo::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: var(--noise), var(--tape); transform: rotate(-4deg);
}
.todo .nh { margin: 0 0 10px; font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--slip-ink); }
.todo ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.todo li { counter-increment: t; margin: 0 0 12px; padding-left: 1.6em; position: relative; }
.todo li::before { content: counter(t) "."; position: absolute; left: 0; top: .1em; font-family: var(--mono); font-size: .8rem; color: var(--slip-ink); }
.todo .hand { margin: 0; color: var(--slip-life); font-size: 1.15rem; line-height: 1.3; }
.todo .tk { display: none; margin: 4px 0 0; font-family: var(--mono); font-size: .74rem; line-height: 1.55; color: var(--slip-ink); }
.todo .tk b { font-weight: 500; color: var(--slip-life); }
.todo .stamp { color: var(--slip-life); display: table; margin: 8px 0 0 auto; transform: rotate(5deg); animation-delay: 2.1s; }
/* pen arrow from the list to the activation line on the order */
.todo .pen { position: absolute; left: -50px; top: 150px; width: 46px; height: 34px; transform: scaleX(-1); }
.todo .pen path { animation-delay: 1.8s; }

/* with the script: the button writes an owner, evidence and a review date beside each item */
.pofig.ticketed .todo .tk { display: block; animation: fade .6s ease both; }
.pofig.ticketed .todo .stamp { animation: thump .45s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.pobar { margin: 16px 0 0; font-family: var(--sans); font-size: .8rem; }
.pobar:not(.on) { display: none; }

/* ---- Figure 2: two possible learning paths ----------------------------- */
.paths2 .bl { stroke: var(--slip-life); }
.paths2 .gd { stroke: var(--slip-once); }
.paths2 .lab-life { fill: var(--slip-life); }
.paths2 .lab-once { fill: var(--slip-once); }
.paths2 .pen-g { fill: var(--slip-ink); }
.paths2 .base { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.paths2 .base-lab { fill: var(--slip-ink); }
.paths2 .loop { fill: none; stroke: var(--slip-ink); stroke-width: 1.4; stroke-linecap: round; }
.paths2 .rv { stroke: var(--slip-ink); stroke-width: 1.2; stroke-dasharray: 6 4; }
.paths2 .rvlab { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--slip-ink); }
.paths2 .xmark { stroke: var(--slip-once); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.paths2 .hatchline { stroke: var(--slip-once); stroke-width: 1; opacity: .7; }
.paths2 .tk { stroke: var(--slip-ink); stroke-width: 1; opacity: .55; }
.paths2 .tk.major { opacity: .9; stroke-width: 1.3; }
.paths2 .rowlab { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--slip-ink); }
.paths2 .tally { stroke: var(--slip-life); stroke-width: 1.6; stroke-linecap: round; }
.paths2 .stub { fill: var(--slip); stroke: var(--slip-once); stroke-width: 1.2; }
.paths2 .stubtxt { font-family: var(--mono); font-size: 12px; fill: var(--slip-once); }
.paths2 .cursor { stroke: var(--slip-ink); stroke-width: 1.2; stroke-dasharray: 5 5; }
.paths2 .dot-life { fill: var(--slip); stroke-width: 2.4; stroke: var(--slip-life); }
.paths2 .dot-once { fill: var(--slip); stroke-width: 2.4; stroke: var(--slip-once); }
.paths2 .tagbox { fill: var(--slip); stroke: var(--slip-ink); stroke-width: 1; }
.paths2 .tag-life { fill: var(--slip-life); }
.paths2 .tag-once { fill: var(--slip-once); font-weight: 500; }
.paths2 .tag-ink { fill: var(--slip-ink); }
/* redraws after the breakpoint changes appear at once, without replaying the load sequence */
.paths2 .still .ink path, .paths2 .still .fade, .paths2 .still .hatch { animation: none; }

@media (max-width: 640px) {
  .pofig { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .po { width: min(100%, 360px); margin: 0 auto; }
  .todo { margin: 0 auto; width: min(100%, 360px); }
  .todo .pen { display: none; }
}

/* Phone mode: the order and the list stack, order first; the learning-paths sheet is redrawn
   by the page script in a narrower, taller layout with fewer notes, and its labels grow. */
@media (max-width: 560px) {
  .po { padding: 18px 16px 66px; font-size: .74rem; }
  .sheet.paths2 { min-width: 0; user-select: none; }
  .sheet-scroll:has(.paths2) { overflow-x: clip; }
  .paths2 .svgnote { font-size: 17px; }
  .paths2 .svglab { font-size: 18px; }
  .paths2 .tick { font-size: 15px; }
  .paths2 .tagtext { font-size: 15px; }
  .paths2 .rowlab, .paths2 .rvlab { font-size: 15.5px; letter-spacing: .1em; }
  .paths2 .stubtxt { font-size: 15.5px; }
}
