/* 05b · Who it is for, as a rubric the visitor marks (Wave E, fix 7). mid-fit.js
   marks #fit .ff when it runs; without it (no JavaScript) none of this applies
   and sections.css draws the rubric with every criterion marked. Only
   scene.html loads this sheet. Tokens: motion.css.

   Each criterion is a toggle button: its printed box in the margin, which the
   pen marks (a tick, or a cross); a second press lifts the mark. */
.ff .fit-list li {display:block;max-width:none;padding:0}
.ff .ff-c {position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:16px;align-items:baseline;width:100%;max-width:34em;
  margin:0;padding:8px 0;border:0;background:none;color:inherit;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;text-wrap:pretty;
  cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ff .ff-c:focus-visible {outline:2px solid var(--blue);outline-offset:4px;border-radius:2px}
.ff .ff-t {grid-column:2;grid-row:1}
/* The printed box: a hairline square on the first line, as on an exam form. */
.ff .ff-box {grid-column:1;grid-row:1;align-self:start;justify-self:center;width:15px;height:15px;margin-top:calc((1.45em - 15px) / 2);
  box-sizing:border-box;border:1px solid #1f43a680;border-radius:1px;transition:border-color var(--dur-micro) var(--ease-ink)}
/* (Wave H, fix 5) The boxes are printed in the pen's blue, faint: they are there for the pen. Pointed at,
   full blue. */
@media (hover:hover) {.ff .ff-c:hover .ff-box {border-color:var(--blue)}}
/* The mark over it, a little larger than the box, as a hand marks one. Unmarked, nothing of it shows (a dash
   of 1 and a gap of 2 at offset 1). (Wave I, item 7) The left column is marked in the pen's blue, the right
   in graphite, its boxes printed in graphite too. */
.ff .ff-c .pen {grid-column:1;grid-row:1;justify-self:center;position:relative;overflow:visible;stroke:var(--blue);margin-top:calc((1.45em - 22px) / 2 - 1px)}
/* The tick starts in the box and its long stroke runs out past the box's upper right corner; the
   cross fills the box to its corners. */
.ff .fit-yes .ff-c .pen {width:27px;height:27px;margin-top:calc((1.45em - 15px) / 2 - 11px);margin-left:9px}
.ff .fit-no .ff-c .pen {width:23px;height:23px;margin-top:calc((1.45em - 23px) / 2)}
.ff .fit-list .pen path {stroke-dasharray:1 2;stroke-dashoffset:1;transition:none}
.ff .fit-list .ff-on .pen path {stroke-dashoffset:0}
.ff .fit-no .ff-c .pen {stroke:#5e6570}
.ff .fit-no .m-nib {fill:#5e6570}
.ff .fit-no .ff-box {border-color:#5e657080}
@media (hover:hover) {.ff .fit-no .ff-c:hover .ff-box {border-color:#5e6570}}

/* (Wave I, item 7) Two or more boxes of a column marked: the pen circles its heading (mid-fit.js makes the
   path at the box's size, so the stroke is even). */
.ff .ff-hd {position:relative;display:inline-block;max-width:100%}
.ff .ff-ring {position:absolute;left:-16px;top:-7px;width:calc(100% + 30px);height:calc(100% + 16px);overflow:visible;
  fill:none;stroke:var(--blue);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ff .fit-no .ff-ring {stroke:#5e6570}
.ff .ff-ring path {stroke-dasharray:1 2;stroke-dashoffset:1}
.ff .ff-circled .ff-ring path {stroke-dashoffset:0}
@media (max-width:820px) {.ff .ff-ring {left:-12px;width:calc(100% + 22px)}}

/* Arrival (armed only while the block is below the window): the rule unruled, the boxes unprinted. */
.ff.section.fit::before {transform-origin:0 50%}
.ff .fit-no::before {transform-origin:50% 0}
.ff.ff-wait::before {transform:scaleX(0)}
.ff.ff-wait .fit-no::before {transform:scaleY(0)}
.ff.ff-wait .ff-box {opacity:0}

@media (prefers-reduced-motion:reduce) {
  .ff .ff-box {transition:none}
}
