/* Beat `lp-proof` of the landing page (LP; .scratch/ui_integration/briefs/LP_DESIGN.md §8.4 and brief LP2_B4): its
   OWN styles only (its object, inside templates/dashboard/landing/proof.html). The type, the content box and the
   strings are the frame's (static/css/a2/landing.css). Flat, every class lp-proof-.

   Wide (from 1000px): the statement and the line, then THE STRAND across the whole content box (a gold thread through
   five gold beads, the method above each bead, the university's name under it), then the current bead's FINDING on
   one line, centred under the strand. Below 1000px the strand runs DOWN the box's left edge, the beads its stops, each
   method and its university beside its bead, and the finding under the strand.

   What the app already says, used as it is: the beads are the abacus's gold pearls (result.css .rs-b); the strand's
   gold is the road's, rgb(196,130,10); the current bead is marked as the levels page marks its chosen pearl on the
   gold thread (levels.css .lv-c.on: a little larger, a gold ring 6px out); the university's name is a quiet link as
   the kit's words are (kit .qa: muted, an underline that runs in under the pointer), with a small ↗. */

.lp-proof{--pf-w:clamp(16px,1.25vw,20px);--pf-gw:18px;--pf-ty:calc(var(--pf-w) * 1.25 + var(--pf-gw) + 22px);--pf-gold:rgb(196,130,10)}

/* the object's box is as tall as the strand and its finding (the frame's 40vh floor is for an empty beat) */
.lp-proof .lp-ob{min-height:0;margin-top:clamp(56px,9vh,96px)}

/* -- the strand: the gold thread, five beads, the method above each, its university under it ------------------- */

.lp-proof-sd{position:relative}
/* the thread, edge to edge through the beads' centres */
.lp-proof-sd::before{content:"";position:absolute;left:0;right:0;top:var(--pf-ty);height:2.5px;margin-top:-1.25px;border-radius:2px;background:var(--pf-gold)}
.lp-proof-seats{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none}
.lp-proof-s{display:flex;flex-direction:column;align-items:center;min-width:0}
.lp-proof-sb{display:grid;justify-items:center;row-gap:var(--pf-gw);margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lp-proof-sb:focus-visible{outline:none}
.lp-proof-w{display:block;font:700 var(--pf-w)/1.25 var(--fd);letter-spacing:-.005em;color:var(--ink);white-space:nowrap}
.lp-proof-b{position:relative;display:block;width:44px;height:44px;border-radius:50%;transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.lp-proof-b canvas{position:relative;z-index:1;display:block;width:44px;height:44px;border-radius:50%;filter:drop-shadow(0 4px 4px rgba(21,23,30,.26))}
/* without the script the beads are not painted: a plain gold bead each */
.lp-proof:not(.lp-proof-js) .lp-proof-b canvas{background:radial-gradient(circle at 36% 30%,#FFF1C4 0,#F2B64A 34%,#C4820A 74%,#8A5A00 100%)}
/* the current bead: the levels page's chosen pearl (a little larger, a gold ring 6px out) */
.lp-proof-b::after{content:"";position:absolute;inset:-6px;border-radius:50%;box-shadow:0 0 0 3px #E8A21A;opacity:0;transition:opacity .2s;pointer-events:none}
.lp-proof-on .lp-proof-b{transform:scale(1.1)}
.lp-proof-on .lp-proof-b::after{opacity:1}
/* the keyboard's focus: the same ring in the kit's focus blue (a focused bead is the current one) */
.lp-proof-sb:focus-visible .lp-proof-b::after{opacity:1;box-shadow:0 0 0 3px #1C39BB}
.lp-proof-b.lp-proof-pulse{animation:lp-proof-pulse .34s cubic-bezier(.3,1.6,.5,1)}
.lp-proof-on .lp-proof-b.lp-proof-pulse{animation-name:lp-proof-pulse-on}
@keyframes lp-proof-pulse{40%{transform:scale(1.16)}100%{transform:none}}
@keyframes lp-proof-pulse-on{40%{transform:scale(1.26)}100%{transform:scale(1.1)}}

/* the university: a quiet link to the study (a new tab), at least 24px tall to tap; the current bead's in ink. The
   names are what the owner wants seen and pressed: a step larger and darker than the kit's muted label */
.lp-proof-u{display:inline-flex;align-items:center;gap:6px;min-height:28px;margin-top:10px;padding:0;font:700 clamp(13.5px,.8vw,16px)/1 var(--fd);letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:#3D4252;white-space:nowrap;background:linear-gradient(currentColor,currentColor) 0 calc(50% + .8em) / 0 1.5px no-repeat;transition:background-size .25s,color .2s;-webkit-tap-highlight-color:transparent}
.lp-proof-u svg{flex:none;width:.72em;height:.72em;margin-top:-.08em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lp-proof-u:hover{color:var(--ink);background-size:100% 1.5px}
/* the keyboard's focus: the kit's chosen word (ink over a blue line; corner.css), no box to meet the bead's ring */
.lp-proof-u:focus-visible{outline:none;color:var(--ink);background-image:linear-gradient(#1C39BB,#1C39BB);background-size:100% 2px}
.lp-proof-on .lp-proof-u{color:var(--ink)}

/* -- the finding: the current bead's, one line under the strand; the five stand hidden in the same cell, so the
      line is always as tall as the longest and nothing below it moves. It FOLLOWS its bead (proof.js sets --pf-x):
      its centre under the bead's centre, clamped to the column (bead 1: flush left; bead 5: flush with the
      thread's end); a short ease when the bead changes, none under reduced motion. Without script: flush left,
      which is where bead 1's finding stands. ------------------------------------------------------------------- */

.lp-proof-fd{display:grid;grid-template-columns:minmax(0,1fr);margin-top:clamp(14px,2.2vh,24px)}
.lp-proof-find,.lp-proof-fz{grid-area:1 / 1;margin:0;text-align:left;font:600 clamp(17px,1.4vw,22px)/1.35 var(--fb);color:rgba(21,23,30,.86);text-wrap:balance}
.lp-proof-find{align-self:start;justify-self:start;width:max-content;max-width:100%;transform:translate(var(--pf-x,0px),var(--pf-y,0px))}
.lp-proof-ease .lp-proof-find{transition:transform .45s cubic-bezier(.3,.9,.3,1)}
.lp-proof-fz{visibility:hidden}
/* one line from 1280px */
@media (min-width:1280px){
  .lp-proof-find,.lp-proof-fz{white-space:nowrap}
}

/* -- below 1000px: the strand runs down the box's left edge, the beads its stops -------------------------------- */

/* R15-P1 (owner, 2026-11-19: "pearls are not centered to the thread properly"): an upright window up to 1199 takes the
   phone's down-running strand as the rest of the page does; its bead offset (below) belonged to that strand, and on the
   across strand of a 1000-1199 upright window it hung each bead under its thread */
@media (max-width:999px),(orientation:portrait) and (max-width:1199px){
  /* --pf-in: the beads stand in by the current bead's ring (6px out, 3px wide, the bead 1.1x), so the ring never
     leaves the content box */
  .lp-proof{--pf-row:18px;--pf-in:12px}
  .lp-proof .lp-ob{margin-top:clamp(36px,5vh,56px)}
  .lp-proof-sd::before{display:none}
  .lp-proof-seats{grid-template-columns:minmax(0,1fr);row-gap:var(--pf-row)}
  /* the method and its university beside the bead, the pair centred on it */
  .lp-proof-s{position:relative;align-items:flex-start;justify-content:center;min-height:44px;padding-left:calc(var(--pf-in) + 62px)}
  /* the thread runs from each bead's centre to the next one's */
  .lp-proof-s:not(:last-child)::before{content:"";position:absolute;left:calc(var(--pf-in) + 22px);top:50%;width:2.5px;height:calc(100% + var(--pf-row));margin-left:-1.25px;background:var(--pf-gold)}
  .lp-proof-sb{display:block;text-align:left}
  .lp-proof-b{position:absolute;left:var(--pf-in);top:50%;margin-top:-22px}
  .lp-proof-w{font-size:17px;white-space:normal}
  .lp-proof-u{margin-top:0;font-size:14px}
  .lp-proof-fd{margin-top:clamp(24px,3.4vh,32px)}
  .lp-proof-find,.lp-proof-fz{font-size:17px}
}

/* -- 700 to 999px (a tablet): the finding in the box's empty right half, beside the strand, level with the current
      bead (proof.js sets --pf-y: its middle on the bead's, clamped to the strand's height), 24 to 30 letters a line */

@media (min-width:700px) and (max-width:999px) and (orientation:landscape){
  .lp-proof .lp-ob{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
  .lp-proof-fd{margin-top:0}
  .lp-proof-find,.lp-proof-fz{max-width:min(100%,15em)}
}

/* -- below 700px (a phone), with the script: the finding opens AT its bead, under its university's name in the
      strand's text column; the beads below move down to make room (its rows ease from 0 to its height; proof.js
      keeps the pressed bead under the finger and the finding clear of the foot bar). The bead and the thread are
      then placed from the top of the word-and-name pair (--pf-c, its half height), not the middle of a row that
      grows. The one live line under the strand is kept for screen readers only. Without the script the finding
      stays under the strand. ----------------------------------------------------------------------------------- */

.lp-proof-slot{display:none}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .lp-proof{--pf-c:calc((17px * 1.25 + 28px) / 2)}
  .lp-proof-seats{overflow-anchor:none}
  .lp-proof-js .lp-proof-s{justify-content:flex-start}
  .lp-proof-js .lp-proof-b{top:var(--pf-c)}
  .lp-proof-js .lp-proof-s:not(:last-child)::before{top:var(--pf-c)}
  .lp-proof-js .lp-proof-slot{display:grid;grid-template-rows:0fr;align-self:stretch}
  .lp-proof-ease .lp-proof-slot{transition:grid-template-rows .45s cubic-bezier(.3,.9,.3,1)}
  .lp-proof-js .lp-proof-on .lp-proof-slot{grid-template-rows:1fr}
  .lp-proof-slot > div{min-height:0;overflow:hidden}
  .lp-proof-slot p{margin:0;padding:4px 0 6px;font:600 17px/1.35 var(--fb);color:rgba(21,23,30,.86);text-wrap:balance}
  .lp-proof-js .lp-proof-fd{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

@media (prefers-reduced-motion:reduce){
  .lp-proof-b,.lp-proof-b::after,.lp-proof-u,.lp-proof-ease .lp-proof-find,.lp-proof-ease .lp-proof-slot{transition:none}
  .lp-proof-b.lp-proof-pulse{animation:none}
}
