/* Learn by heart (js/learn.js; index.html "Learn by heart"): a whole screen like the text reader (its sticky title and Close),
   then the flame kicker, the verse road (Journey's road through the text's verses: walked solid bronze on a cream edge, dashed
   from today's verse to the next, dotted beyond; kept verses the gold coin with a tick, today's ringed, one under review rimmed
   in the road's bronze), where the day stands, and one paper card for the step. The verse in Tiro at the reader's own size
   (sz-s to sz-xl, the Text sheet's setting), the Roman aid under each line when it is on; a faded word keeps its first letter
   and the rest as a dotted gap of its own width; a hidden line is a soft dashed bar the length of the line */
:root{--coin:linear-gradient(135deg,#9d692c,#e4c68a 46%,#ab7739);--coin-edge:#fff7e9;--coin-ring:#af7b36;--coin-glow:radial-gradient(circle,#fffaee 55%,#f2dbaf 100%);--coin-shadow:0 2px 6px rgb(60 36 10 / .25)} /* Journey's gold coin (phase2.css .ct-kept) as tokens */
.lnsheet .ln-body{gap:var(--sp-4);padding-block:var(--sp-4) var(--sp-8)}
.ln-kick{margin:0;font:500 var(--fs-sm)/1.4 var(--font-ui);color:var(--flame)}

.ln-road{position:relative;height:60px;margin:0 calc(-1 * var(--sp-1))}
.ln-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ln-route path{vector-effect:non-scaling-stroke}
.ln-far{stroke:var(--ink-mid);stroke-width:3;stroke-dasharray:.1 8;opacity:.85}
.ln-under{stroke:var(--coin-edge);stroke-width:9;opacity:.85}
.ln-next{stroke:var(--trail-road);stroke-width:3;stroke-dasharray:7 6}
.ln-walked{stroke:var(--trail-walked);stroke-width:5}
.ln-stops{position:absolute;inset:0;display:grid;list-style:none;margin:0;padding:0}
.ln-n1{grid-template-columns:1fr}.ln-n2{grid-template-columns:repeat(2,1fr)}.ln-n3{grid-template-columns:repeat(3,1fr)}.ln-n4{grid-template-columns:repeat(4,1fr)}
.ln-n5{grid-template-columns:repeat(5,1fr)}.ln-n6{grid-template-columns:repeat(6,1fr)}.ln-n7{grid-template-columns:repeat(7,1fr)}.ln-n8{grid-template-columns:repeat(8,1fr)}
.ln-stop{position:relative}
.ln-disc{position:absolute;left:50%;top:18px;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface);border:1.5px solid var(--line-strong);color:var(--ink-mid);font:500 var(--fs-xs)/1 var(--font-ui);font-variant-numeric:tabular-nums}
.ln-stop:nth-child(even) .ln-disc{top:42px}
.ln-kept .ln-disc{background:var(--coin);border-color:var(--coin-edge);color:var(--surface);box-shadow:var(--coin-shadow)}
.ln-kept .ln-disc svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ln-now .ln-disc{width:40px;height:40px;border:2px solid var(--coin-ring);background:var(--coin-glow);color:var(--flame);font-size:var(--fs-md);font-weight:600}
.ln-now.ln-kept .ln-disc{background:var(--coin);border-color:var(--coin-edge);box-shadow:0 0 0 2px var(--coin-ring),var(--coin-shadow);color:var(--surface)}
.ln-now.ln-kept .ln-disc svg{width:20px;height:20px}
.ln-rev .ln-disc{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--trail-road)}

.ln-where{margin:0;font-size:var(--fs-md);line-height:1.4;color:var(--ink);text-wrap:pretty}
.ln-where .muted{color:var(--muted)}

.ln-card{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-5) var(--sp-4);border:1px solid var(--hair);border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--card-shadow)}
.ln-h{margin:0;font:400 var(--fs-xl)/1.25 var(--font-display);color:var(--ink)}
.ln-h:focus{outline:none}
.ln-say{margin:0;font-size:var(--fs-md);line-height:1.5;color:var(--ink-mid);text-wrap:pretty}

/* the verse at the reader's sizes: 22/40 on a phone (20/36 under 375), 24/42 from 600px, 26/44 on desktop, times the Text
   sheet's size (Small .9, Medium 1, Large 1.1, Largest 1.25); the Roman aid three quarters of it, never under 14px */
.ln-card{--ln-fs:22px;--ln-lh:40px;--ln-k:1}
.ln-card.sz-s{--ln-k:.9}.ln-card.sz-l{--ln-k:1.1}.ln-card.sz-xl{--ln-k:1.25}
.ln-text{margin:var(--sp-2) 0;display:grid;gap:var(--sp-1)}
.ln-l{display:block;font-family:var(--font-verse);font-size:calc(var(--ln-fs) * var(--ln-k));line-height:calc(var(--ln-lh) * var(--ln-k));color:var(--ink);text-wrap:balance}
.ln-r{display:block;margin-bottom:var(--sp-2);font-family:var(--font-verse);font-size:max(var(--fs-sm), calc(var(--ln-fs) * var(--ln-k) * .75));line-height:1.55;color:var(--ink-mid)}
.ln-w{white-space:nowrap}
.ln-f{color:var(--flame)}
.ln-gap{color:transparent;border-bottom:2px dotted var(--trail-road);user-select:none}
.ln-r .ln-gap{border-bottom-width:1.5px}
.ln-hid{display:inline-block;max-width:100%;color:transparent;background:var(--surface-2);border:1px dashed var(--line-strong);border-radius:var(--r-sm);line-height:24px;white-space:nowrap;overflow:hidden;user-select:none}
/* a from-memory check as a flashcard: the back (soft, dashed) until Check, then the face turns in (transform and opacity only) */
.ln-face{padding:var(--sp-3) var(--sp-4);border:1px solid var(--hair);border-radius:var(--r-lg);background:var(--surface)}
.ln-back{background:var(--surface-2);border-style:dashed;border-color:var(--line-strong)}
.ln-back .ln-hid{background:var(--surface)}
.ln-face .ln-text,.ln-face .ln-cues{margin-block:var(--sp-1)}
.ln-flipped{animation:ln-turn var(--t-sheet) var(--ease-decel)}
@keyframes ln-turn{from{transform:perspective(900px) rotateY(-80deg);opacity:0}to{transform:none;opacity:1}}

.ln-acts{display:flex;align-items:center;gap:var(--sp-4);margin-top:var(--sp-1)}
.ln-acts .btn.primary{min-width:132px}
.ln-tally{display:flex;gap:var(--sp-2)}
.ln-tick{position:relative;width:12px;height:12px;border-radius:50%;border:1.5px solid var(--edge)}
.ln-tick::after{content:'';position:absolute;inset:-1.5px;border-radius:50%;background:var(--flame);opacity:0;transition:opacity var(--t-fast) var(--ease-decel)}
.ln-tick.on::after{opacity:1}
.ln-grade{display:flex;gap:var(--sp-2);margin-top:var(--sp-1)}
.ln-grade .btn{flex:1 1 0;padding-inline:var(--sp-2)}
.ln-peeked{margin:0}
/* Before you start / Your pace: two questions, each a label over its control, then the one Start */
.ln-setup .ln-q{display:grid;gap:var(--sp-2);margin-top:var(--sp-3)}
.ln-ql{margin:0;font-weight:600;color:var(--ink);text-wrap:balance}
.ln-know{gap:var(--sp-2)}
.ln-know input{width:5.5em;min-height:var(--tap);text-align:center;font:inherit;font-size:var(--fs-lg);font-variant-numeric:tabular-nums}
.ln-goals{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.ln-goals .chip{min-height:var(--tap)}
.ln-setup input[type=date]{min-height:var(--tap);font:inherit;max-width:14em}
.ln-setup .ln-acts{margin-top:var(--sp-3)}
.ln-end .ln-acts{flex-direction:column}
/* Show the full verse / Hide it again: under the card's own button, never a second primary */
.ln-peek{align-self:flex-start;min-height:var(--tap);margin-top:var(--sp-1)}
/* the step-back arrow sits at the top left, before the title (the back-control rule); on the first step it keeps its place unseen,
   so the title never moves */
.ln-top{gap:var(--sp-1);min-width:0;flex-wrap:nowrap}
.ln-top h2{min-width:0}
.ln-top #ln-back{margin-left:calc(-1 * var(--sp-2))}
.ln-top #ln-back.ln-off{visibility:hidden}
/* Today: past three texts, one quiet line after Journal to the rest */
.t-learn-more{align-self:flex-start;min-height:var(--tap);margin-block:var(--sp-2)}

.ln-cues{display:grid;gap:var(--sp-2);margin:var(--sp-1) 0;padding:0;list-style:none}
.ln-cues li,.ln-cv{display:flex;align-items:baseline;gap:var(--sp-3)}
.ln-cn{flex:none;min-width:1.5em;text-align:right;font-size:var(--fs-xs);font-weight:500;color:var(--kumkum);font-variant-numeric:tabular-nums}
.ln-cue{display:grid;font-family:var(--font-verse);font-size:calc(var(--ln-fs) * var(--ln-k));line-height:1.6;color:var(--ink)}
.ln-cue .ln-r{margin:0}
.ln-chain .ln-text{margin:0}
.ln-chain{display:grid;gap:var(--sp-3)}

.ln-end{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);text-align:center;padding-block:var(--sp-2)}
.ln-end .tile-medal{width:96px;height:96px;object-fit:contain}
.ln-end .ln-h{font-size:var(--fs-2xl)}
.ln-end .ln-acts{justify-content:center}

/* the reader's way in, and Today's row (with Journal's own row styles there): the text's medal, the title, a line, the chevron */
.ln-entry{display:flex;align-items:center;gap:var(--sp-3);width:100%;min-height:72px;padding:var(--sp-3) var(--sp-4);border:1px solid var(--hair);border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--card-shadow);text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.ln-entry>.tile-medal{flex:none;width:44px;height:44px;object-fit:contain}
.ln-entry>.two{display:grid;gap:var(--sp-0);flex:1;min-width:0}
.ln-entry .lab{font:400 var(--fs-lg)/1.3 var(--font-display)}
.ln-entry .sub{font-size:var(--fs-sm);line-height:1.4;color:var(--muted);text-wrap:pretty}
.ln-entry>svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--ink-mid);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:374px){.ln-card{--ln-fs:20px;--ln-lh:36px}}
@media (min-width:600px){.ln-card{--ln-fs:24px;--ln-lh:42px;padding:var(--sp-6)}}
@media (min-width:1024px){.lnsheet .ln-body{max-width:640px;margin-inline:auto;width:100%} .ln-card{--ln-fs:26px;--ln-lh:40px} .ln-r{margin-bottom:var(--sp-1)}}

/* Practice home's way in, under the four doors: a row in the doors' own glass (phase2.css #paths-home :is(..., .ln-home)), Uma's
   japa art, "New" in flame until a text is begun. On desktop it takes the right column's last cell beside the doors, level with
   their foot: under Your practices and Your tools when a path is followed (the doors then span one row more), else under the tools */
.ln-home{display:flex;align-items:center;gap:var(--sp-3);width:100%;min-height:88px;padding:var(--sp-3) var(--sp-4);text-align:left;font:inherit;color:var(--ink);cursor:pointer}
@media(min-width:1024px){
  #paths-home:has(>.p2-paths-hero)>.ln-home{grid-column:2;grid-row:3;align-self:end}
  #paths-home:has(>.p2-yours)>.ln-home{grid-row:4}
  #paths-home:has(>.p2-yours):has(>.ln-home)>.p2-door-grid{grid-row:2/5}
  #paths-home:has(>.p2-yours):has(>.ln-home)>.p2-discovery-help{grid-row:5}
  #paths-home:has(>.p2-yours):has(>.ln-home)>.p2-support-more{grid-row:6}
}
.ln-home>.tile-medal{flex:none;width:56px;height:56px;object-fit:contain}
.ln-home>.two{display:grid;gap:var(--sp-0);flex:1;min-width:0}
.ln-home .ln-new{font:500 var(--fs-sm)/1.3 var(--font-ui);color:var(--flame)}
.ln-home .lab{font:400 var(--fs-xl)/1.25 var(--font-display)}
.ln-home .sub{font-size:var(--fs-sm);line-height:1.4;color:var(--muted);text-wrap:pretty}
.ln-home>svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--ink-mid);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
/* the picker: a line on how it works, then the texts as rows (the reader's way-in row), grouped */
.ln-pick{gap:var(--sp-3)}
.ln-ph{margin:var(--sp-2) 0 0;font:400 var(--fs-lg)/1.3 var(--font-display);color:var(--ink)}
.ln-list{display:grid;gap:var(--sp-2);margin:0;padding:0;list-style:none}
/* the one-time "new" card: the kicker, the name, one line, a faded line of the Tryambaka verse as the picture, Choose a text */
.ln-news{gap:var(--sp-3);padding-block:var(--sp-2)}
.ln-news h2{margin:0}
.ln-demo{--ln-fs:22px;--ln-lh:40px;--ln-k:1} .ln-demo .ln-l{text-wrap:balance}
.ln-news-acts{flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.ln-tick::after{transition:none} .ln-flipped{animation:none}}
