/* =====================================================================
   Paper and Ink · essays/the-rate-decides-which-projects-look-smart.css
   "The rate decides which projects look smart.": the figures only this essay uses.
   Loaded after the shared stylesheets; everything shared lives in css/.
   ===================================================================== */

/* Layout: one 64ch reading column; a hypothetical capital request printed as a thermal slip
   (shared .slip, Figure 1) and the value of two hypothetical projects against the discount rate,
   hand-inked on graph paper (shared .sheet, Figure 2), break out to 860px.
   Gold = payback in years; blue = value at today's rate. */

/* ---- 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 blue block is long, so the second stamp sits lower ---- */
#fig1 .slip .printing { padding-bottom: 46px; }
@media (min-width: 641px) { #fig1 .margin-notes { gap: 170px; padding-top: 90px; } #fig1 .margin-notes .btn { margin-top: -110px; justify-self: start; } }

/* ---- Figure 2: two projects against the rate, on graph paper -------------- */
#chart { cursor: ew-resize; fill: var(--slip-ink); }
#chart .svglab { font-size: 17px; }
#chart .svgnote { font-size: 15px; }
#chart .lab-once { fill: var(--slip-once); }
#chart .lab-life { fill: var(--slip-life); }
#chart .pen-g { fill: var(--slip-ink); }
#chart .ring { fill: var(--sheet); stroke: var(--slip-life); stroke-width: 2.4; }
#chart .pencil { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 6; }
#chart .penline { fill: none; stroke: var(--slip-ink); stroke-width: 1.3; stroke-linecap: round; }
#chart .band { opacity: .7; }
#chart .rule-l { stroke: var(--slip-ink); stroke-width: 1; }
#chart .tick { font-size: 11px; }
#chart .rowlab { font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; fill: var(--graphite); }
#chart .cursor { stroke: var(--slip-ink); stroke-width: 1.2; stroke-dasharray: 3 4; }
#chart .tagtext { font-size: 12px; white-space: pre; }
/* redraws after the breakpoint changes appear at once, without replaying the load sequence */
#chart.still .ink path, #chart.still .fade, #chart.still .hatch { animation: none; }

/* Phone mode: Figure 2 is redrawn by the page script as a narrower, taller sheet (viewBox 400 x 720)
   with shorter labels and the paper tag below the rate ruler; svg text sizes rise so every label renders at 11px or more. */
@media (max-width: 560px) {
  .sheet-scroll { overflow-x: clip; }
  .sheet { min-width: 0; padding: 24px 8px 10px; -webkit-user-select: none; user-select: none; }
  #chart .svglab { font-size: 19px; }
  #chart .svgnote { font-size: 17px; }
  #chart .tick { font-size: 15px; }
  #chart .rowlab { font-size: 14.5px; }
  #chart .tagtext { font-size: 15px; }
}
