/* The how-to articles at /learn (app/learn.py).

   The words are dark on paper in large type, broken up by numbered sections, numbered steps, callouts and the app's labels drawn
   as the buttons they are (the first cut, all dark and small, was hard to read: app/learn.py says whose words). Everything
   that is a picture (the bar, the header, the drawings, the walkthroughs, the tip, Xyzios's card) keeps the app's dark. The page
   sets its own colours whatever theme the app is in, by the same names the app uses, so a drawing is drawn once and reads in both.
   Every drawing holds still for a device set to reduce motion. */

.ln-root{background:#f3f0ea;}
body.ln{
  color-scheme:light;
  --bg:#f3f0ea; --surface:#ebe6dc; --card:#ffffff; --border:#d6cebe;
  --ink:#111111; --body:#1f1f1f; --soft:#2e2e2e; --muted:#58534a; --quote:#2e2e2e;
  --gold-ink:#7a5c0c; --amber:#fbf1cf; --on-gold:#0a0a0a;
  --bad-bg:#fdeeec; --bad-bd:rgba(180,40,30,.28); --bad:#a3261b; --ok:#2e6a1e; --ok-bg:#edf5e7;
  --chip:#ffffff; --chip-bd:#c9bfab;
  --fs-fine:14px; --fs-sm:16px; --fs-body:18px; --fs-lead:21px; --fs-label:15px; --fs-h2:40px;
  background:var(--bg); color:var(--body); font-size:var(--fs-body); line-height:1.7;
}
.ln .gbar, .ln-hero, .ln-fig, .ln-walk, .ln-tip, .ln-sums, .ln-pitch{
  color-scheme:dark;
  --bg:#0a0a0a; --surface:#1a1a1a; --card:#222222; --border:#3a3a3a;
  --ink:#f7f6f2; --body:#e4e2dd; --soft:#d8d6d1; --muted:#b9b6af; --quote:#e4e2dd;
  --gold-ink:#eaca46; --amber:#1c170a; --bad-bg:#1d0806; --bad:#f09a92; --ok:#8fd47f;
  --chip:#2b2b2b; --chip-bd:#575757;
  color:var(--body);
}
.ln .gbar{background:#0a0a0a; border-bottom-color:#2a2a2a;}

/* The contents */
.ln .gside{background:var(--bg); border-right:1px solid var(--border);}
.ln .gside a{font-size:15px; color:var(--soft); padding:7px 10px; line-height:1.35;}
.ln .gside a i{font-style:normal; font-family:'Bebas Neue',sans-serif; font-size:16px; letter-spacing:1px; color:var(--muted); margin-right:8px;}
.ln .gside a:hover{background:var(--card); color:var(--ink);}
.ln .gside a[aria-current="page"], .ln .gside a.ln-here{background:var(--card); color:var(--ink); font-weight:600; border-left-color:#0a0a0a;}
.ln .gside a[aria-current="page"] i{color:var(--ink);}
.ln .gside h3{color:var(--muted);}

/* The reading column */
.ln-main{max-width:980px;}
.ln .gmain{padding-top:28px;}
.ln .sstep{padding-top:64px;}
.ln :is(.sstep, .guide) :is(p, li){line-height:1.7; max-width:68ch;}
.ln :is(.sstep, .guide) p{margin:14px 0;}
.ln .sstep h3{font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:26px; letter-spacing:1px; text-transform:none; color:var(--ink);
  margin:34px 0 8px; line-height:1.1;}

/* The header: the article's title, who it is for, and its at a glance */
.ln-hero{position:relative; overflow:hidden; border-radius:16px; padding:40px 44px 34px; margin-bottom:6px;
  background:radial-gradient(circle at 100% 0, rgba(234,202,70,.16), transparent 42%), #0a0a0a;}
.ln-hero .eyebrow{color:#eaca46; display:block; margin-bottom:10px; font-size:15px;}
.ln-hero h1{color:#f7f6f2; font-size:64px; line-height:.98; margin:0;}
.ln-hero h1 em{color:#eaca46; font-style:normal;}
.ln-hero .lede{color:#e4e2dd; font-size:21px; line-height:1.55; max-width:62ch; margin:16px 0 0;}
.ln-hero .lede a{color:#eaca46; font-weight:600;}
/* A link in running words: ink on paper, gold inside a dark element (the hero's own rule above outranks both). */
.ln :where(p, li) > a:where(:not([class])){color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:#c9a227; text-decoration-thickness:2px; text-underline-offset:3px;}
.ln :where(.ln-tip, .ln-pitch, .ln-fig, .ln-walk) :where(p, li) > a:where(:not([class])){color:#eaca46; text-decoration-color:currentColor;}
.ln-meta{display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 0;}
.ln-meta span{display:inline-block; padding:5px 13px; border:1px solid #4a4a4a; border-radius:999px; font-size:14px; color:#d8d6d1; line-height:1.3;}
.ln-meta span:first-child{border-color:#eaca46; color:#eaca46;}
.ln-glance{display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; margin:28px 0 0;}
.ln-glance div{background:#1a1a1a; padding:16px 18px; border-radius:10px; border-top:3px solid #eaca46;}
.ln-glance b{display:block; font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:30px; letter-spacing:1px; color:#eaca46; line-height:1.05;}
.ln-glance span{display:block; font-size:15px; color:#d8d6d1; line-height:1.5; margin-top:6px;}

/* A section: its number, its name over a heavy rule, and its first paragraph a size up */
.ln .gsechd{display:flex; align-items:center; gap:16px; font-size:var(--fs-h2); line-height:1.02; color:var(--ink); margin:0 0 20px;
  padding-bottom:16px; border-bottom:3px solid #111;}
.ln-no{flex:none; display:inline-flex; align-items:center; justify-content:center; width:58px; height:58px; border-radius:12px;
  background:#0a0a0a; color:#eaca46; font-size:32px; letter-spacing:1px;}
.ln .sstep > .gsechd + p, .lnguide .guide > h3 + p{font-size:21px; line-height:1.6; color:var(--ink);}

/* A label the app shows, drawn as the button or tab it is */
.ln :is(p, li) b{font-weight:600; color:var(--ink); background:var(--chip); border:1px solid var(--chip-bd); border-bottom-width:2px;
  border-radius:6px; padding:0 7px; -webkit-box-decoration-break:clone; box-decoration-break:clone;}
.ln :is(.sstep, .guide) li > strong:first-child{display:block; color:var(--ink); font-size:19px; line-height:1.4; margin-bottom:2px;}

/* Steps in order: a card each, its number in a black disc */
.ln :is(.sstep, .guide) > ol{list-style:none; counter-reset:ln; padding:0; margin:24px 0; display:grid; gap:10px; max-width:780px;}
.ln :is(.sstep, .guide) > ol > li{counter-increment:ln; position:relative; margin:0; padding:15px 20px 15px 74px; min-height:64px; max-width:none;
  background:var(--card); border:1px solid var(--border); border-radius:12px;}
.ln :is(.sstep, .guide) > ol > li::before{content:counter(ln); position:absolute; left:16px; top:13px; width:40px; height:40px; border-radius:50%;
  background:#0a0a0a; color:#eaca46; font-family:'Bebas Neue',sans-serif; font-size:24px; line-height:40px; text-align:center;}

/* Points: a gold diamond each */
.ln :is(.sstep, .guide) > ul:not(.ln-check){list-style:none; padding:0; margin:20px 0; display:grid; gap:10px;}
.ln :is(.sstep, .guide) > ul:not(.ln-check) > li{position:relative; margin:0; padding-left:32px;}
.ln :is(.sstep, .guide) > ul:not(.ln-check) > li::before{content:""; position:absolute; left:5px; top:.6em; width:11px; height:11px; background:#eaca46;
  box-shadow:0 0 0 2px #111; transform:rotate(45deg);}

/* A checklist: a card, a tick each */
.ln .sstep ul.ln-check{list-style:none; padding:6px 0; margin:22px 0; max-width:780px; background:var(--card); border:1px solid var(--border); border-radius:12px;}
.ln-check li{position:relative; margin:0; padding:12px 20px 12px 58px; max-width:none;}
.ln-check li + li{border-top:1px solid var(--surface);}
.ln-check li::before{content:""; position:absolute; left:20px; top:15px; width:24px; height:24px; border-radius:50%; background:#0a0a0a;}
.ln-check li::after{content:""; position:absolute; left:29px; top:20px; width:6px; height:11px; border:solid #eaca46; border-width:0 2.5px 2.5px 0; transform:rotate(45deg);}

/* Callouts, each with its mark: a note, a tip (dark), a warning */
.ln-note, .ln-tip, .ln-warn{position:relative; margin:28px 0; padding:18px 24px 18px 76px; border-radius:12px; max-width:780px;}
.ln-note::before, .ln-tip::before, .ln-warn::before{position:absolute; left:20px; top:18px; width:38px; height:38px; border-radius:50%;
  font:700 21px/38px 'DM Sans',system-ui,sans-serif; text-align:center;}
.ln-note{background:var(--card); border:1px solid var(--border); border-left:6px solid #eaca46;}
.ln-note::before{content:"i"; background:#0a0a0a; color:#eaca46; font-family:Georgia,serif; font-style:italic;}
.ln-tip{background:#0a0a0a;}
.ln-tip::before{content:"\2605"; background:#eaca46; color:#0a0a0a; font-size:19px;}
.ln-warn{background:var(--bad-bg); border:1px solid var(--bad-bd); border-left:6px solid var(--bad);}
.ln-warn::before{content:"!"; background:var(--bad); color:#fff;}
.ln-note > b:first-child, .ln-tip > b:first-child, .ln-warn > b:first-child{display:block; font-family:'Bebas Neue',sans-serif; font-weight:400;
  font-size:21px; letter-spacing:1.5px; line-height:1.2; color:var(--ink); margin:6px 0 4px;}
.ln-tip > b:first-child{color:#eaca46;}
.ln-warn > b:first-child{color:var(--bad);}
.ln-note p, .ln-tip p, .ln-warn p{margin:6px 0; max-width:none;}
.ln-tip p{color:#e4e2dd;}

/* Tables: a black head, a white body, every other row tinted */
.ln-scroll{overflow-x:auto; margin:24px 0 28px; background:var(--card); border:1px solid var(--border); border-radius:12px;}
.ln-table{width:100%; border-collapse:collapse; margin:0; font-size:16px;}
.ln-table th{font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:17px; letter-spacing:1.5px; color:#eaca46; background:#0a0a0a;
  text-align:left; padding:12px 16px;}
.ln-table td{text-align:left; padding:12px 16px; border-top:1px solid var(--surface); vertical-align:top; line-height:1.55; white-space:normal;}
.ln-table tbody tr:nth-child(even) td{background:#faf8f3;}
.ln-table td:first-child{color:var(--ink); font-weight:700; width:24%;}

/* A drawing: a dark panel with its name in gold */
.ln-fig{background:#0f0f0f; border-radius:16px; padding:26px 28px 20px; margin:28px 0;}
.ln-fig > .k{display:block; margin-bottom:16px; color:#eaca46; font-size:17px; letter-spacing:2px;}
.ln-fig figcaption, .ln-fig .ln-cap{margin-top:14px; font-size:15px; color:var(--muted); line-height:1.55;}
.ln-fig p, .ln-fig li{color:var(--body);}

/* A walkthrough (walk.js): one step at a time, its number and words under it, the steps as a track to press */
.ln-walk{margin:30px 0 34px; padding:12px 12px 8px; border-radius:18px; background:#0a0a0a; box-shadow:0 22px 44px -24px rgba(0,0,0,.55);}
.ln-stage{position:relative; aspect-ratio:1180 / 740; overflow:hidden; border-radius:10px; background:#000;}
.ln-stage img{position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; transition:opacity .4s ease;}
.ln-stage img.on{opacity:1;}
.ln-wbar{display:flex; align-items:center; gap:16px; padding:16px 8px 8px;}
.ln-wno{flex:none; width:50px; height:50px; border-radius:50%; background:#eaca46; color:#0a0a0a; font-family:'Bebas Neue',sans-serif;
  font-size:30px; line-height:50px; text-align:center;}
.ln .ln-wsay{flex:1 1 auto; margin:0; max-width:none; font-size:21px; line-height:1.4; font-weight:600; color:#fff;}
.ln-wctl{flex:none; display:flex; gap:6px;}
.ln-wctl button{height:46px; min-width:46px; padding:0 14px; border-radius:23px; border:1px solid #4d4d4d; background:#1d1d1d; color:#fff;
  font:600 16px/1 'DM Sans',system-ui,sans-serif; cursor:pointer;}
.ln-wctl button[data-walk="prev"], .ln-wctl button[data-walk="next"]{font-size:26px; padding:0 0 3px;}
.ln-wctl button[data-walk="play"]{min-width:96px; background:#eaca46; border-color:#eaca46; color:#0a0a0a;}
.ln-wctl button:hover{border-color:#eaca46;}
.ln-wctl button:focus-visible, .ln-wtrack button:focus-visible{outline:2px solid #eaca46; outline-offset:2px;}
.ln-wtrack{display:flex; gap:5px; padding:6px 8px 2px;}
.ln-wtrack button{position:relative; flex:1 1 0; min-width:0; height:34px; padding:0; border:0; background:none; cursor:pointer;
  color:#8f8c85; font:600 13px/1 'DM Sans',system-ui,sans-serif;}
.ln-wtrack button i{position:absolute; left:0; right:0; top:0; height:6px; border-radius:3px; background:#333; overflow:hidden;}
.ln-wtrack button i::after{content:""; position:absolute; inset:0; background:#eaca46; transform:scaleX(0); transform-origin:left;}
.ln-wtrack button.done i::after, .ln-wtrack button.on i::after{transform:none;}
.ln-walk.playing .ln-wtrack button.on i::after{animation:ln-wfill var(--d, 5s) linear both;}
.ln-wtrack button span{position:absolute; left:0; right:0; top:14px; text-align:center;}
.ln-wtrack button.on span{color:#fff;}
.ln-wtrack button:hover span{color:#eaca46;}
@keyframes ln-wfill{from{transform:scaleX(0);} to{transform:scaleX(1);}}
.ln-walk figcaption{padding:8px 8px 6px; font-size:15px; line-height:1.55; color:#b9b6af;}
.ln-walk figcaption b{color:#eaca46; font-weight:600; margin-right:6px;}
.ln-walk:not(.live) .ln-wctl, .ln-walk:not(.live) .ln-wtrack{display:none;}

/* Two columns that fold on a phone */
.ln-two{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:22px 0;}
.ln-two > div{background:var(--card); border:1px solid var(--border); border-top:5px solid #111; border-radius:12px; padding:18px 20px;}
.ln-two > div > b:first-child{display:block; font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:22px; letter-spacing:1.5px;
  color:var(--ink); margin-bottom:6px;}
.ln-two p, .ln-two li{font-size:16px;}
.ln-two .ln-check{border:0; padding:0; margin:6px 0 0; background:none;}
.ln-two .ln-check li{padding:8px 0 8px 40px;}
.ln-two .ln-check li::before{left:2px; top:10px;}
.ln-two .ln-check li::after{left:11px; top:15px;}

/* Worked out from: dark tiles with a line's sum */
.ln-sums{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:10px; margin:22px 0;}
.ln-sums div{background:#141414; border-radius:10px; padding:16px 18px; animation:ln-rise .7s ease both; animation-delay:calc(var(--i, 0) * .12s);}
.ln-sums b{display:block; color:#f7f6f2; font-weight:600;}
.ln-sums span{display:block; font-size:15px; color:#d8d6d1; margin-top:4px;}
.ln-sums em{display:block; font-style:normal; font-size:15px; color:#eaca46; margin-top:8px; font-variant-numeric:tabular-nums;}
@keyframes ln-rise{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;}}

/* Lead to member, and the levers: bars that fill, in turn, then hold */
.ln-bars{display:grid; gap:10px;}
.ln-bar{display:grid; grid-template-columns:150px 1fr 140px; gap:14px; align-items:center; font-size:var(--fs-sm);}
.ln-bar > span:first-child{color:var(--soft);}
.ln-track{position:relative; height:22px; background:var(--surface); border-radius:3px;}
.ln-track i{position:absolute; inset:0 auto 0 0; width:var(--w); background:var(--gold); border-radius:3px; transform-origin:left;
  animation:ln-fill 7s cubic-bezier(.2,.7,.2,1) infinite; animation-delay:calc(var(--i, 0) * .45s);}
.ln-track i.dim{background:var(--border);}
.ln-track s{position:absolute; top:-5px; bottom:-5px; left:var(--std); width:0; border-left:2px dashed var(--ink); text-decoration:none;}
.ln-track s::after{content:attr(data-label); position:absolute; top:-17px; left:-2px; white-space:nowrap; font-size:11px; color:var(--muted);
  font-family:'Bebas Neue',sans-serif; letter-spacing:1.5px;}
.ln-bar > b{color:var(--ink); font-weight:600;}
.ln-bar > b em{font-style:normal; display:block; font-size:var(--fs-fine); font-weight:400; color:var(--muted);}
.ln-bar > b em.below{color:var(--bad);}
@keyframes ln-fill{0%{transform:scaleX(0);} 22%,88%{transform:scaleX(1);} 100%{transform:scaleX(1); opacity:.15;}}

/* A month's timeline: a dot runs along it and each stop lights as it passes */
.ln-line{position:relative; display:grid; grid-template-columns:repeat(var(--n), 1fr); gap:8px; padding-top:26px;}
.ln-line::before{content:""; position:absolute; top:9px; left:calc(50% / var(--n)); right:calc(50% / var(--n)); height:2px; background:var(--border);}
.ln-line .run{position:absolute; top:3px; left:calc(50% / var(--n) - 7px); width:14px; height:14px; border-radius:50%; background:var(--gold);
  box-shadow:0 0 0 5px rgba(234,202,70,.18); animation:ln-run 9s linear infinite;}
@keyframes ln-run{0%{left:calc(50% / var(--n) - 7px);} 90%,100%{left:calc(100% - 50% / var(--n) - 7px);}}
.ln-stop{position:relative; text-align:center; font-size:var(--fs-sm); line-height:1.4; color:var(--muted);}
.ln-stop::before{content:""; position:absolute; top:-21px; left:50%; width:10px; height:10px; margin-left:-5px; border-radius:50%;
  background:var(--card); border:2px solid var(--muted); animation:ln-lit 9s linear infinite; animation-delay:calc(var(--i) * 9s * .9 / (var(--n) - 1) - .2s);}
.ln-stop b{display:block; color:var(--ink); font-weight:600; margin-bottom:2px;}
@keyframes ln-lit{0%{background:var(--gold); border-color:var(--gold);} 30%{background:var(--card); border-color:var(--muted);}}

/* GSD's ladder: a marker climbs from where you are to the next rung */
.ln-ladder{display:grid; grid-template-columns:1fr 1.4fr; gap:28px; align-items:center;}
.ln-rungs{position:relative; display:flex; flex-direction:column-reverse; gap:6px; padding-left:34px;}
.ln-rungs::before{content:""; position:absolute; left:12px; top:6px; bottom:6px; width:2px; background:var(--border);}
.ln-rungs span{position:relative; display:block; padding:7px 12px; background:var(--surface); border-radius:3px; font-family:'Bebas Neue',sans-serif;
  letter-spacing:2px; font-size:18px; color:var(--muted);}
.ln-rungs span.big{color:var(--ink); background:var(--amber); border:1px solid var(--gold);}
.ln-rungs span.next{color:var(--ink); border:1px dashed var(--gold);}
.ln-rungs span.here{color:var(--on-gold); background:var(--gold);}
.ln-rungs span::before{content:""; position:absolute; left:-27px; top:50%; width:10px; height:10px; margin-top:-5px; border-radius:50%; background:var(--border);}
.ln-rungs span.here::before{background:var(--gold); box-shadow:0 0 0 5px rgba(234,202,70,.2); animation:ln-pulse 2s ease-in-out infinite;}
@keyframes ln-pulse{50%{box-shadow:0 0 0 10px rgba(234,202,70,0);}}

/* A chart line that draws itself */
.ln-chart{width:100%; height:auto; display:block;}
.ln-chart .grid{stroke:var(--border); stroke-width:1;}
.ln-chart .axis{fill:var(--muted); font-size:11px; font-family:'Bebas Neue',sans-serif; letter-spacing:1.5px;}
.ln-chart .past{fill:none; stroke:var(--soft); stroke-width:2.5;}
.ln-chart .pace{fill:none; stroke:var(--muted); stroke-width:2; stroke-dasharray:6 6;}
.ln-chart .faster{fill:none; stroke:var(--gold); stroke-width:3;}
.ln-chart .goal{stroke:var(--gold); stroke-width:1.5; stroke-dasharray:3 5;}
.ln-chart .lbl{fill:var(--ink); font-size:12px;}
.ln-chart .lbl.gold{fill:var(--gold-ink);}
.ln-chart .draw{stroke-dasharray:900; stroke-dashoffset:900; animation:ln-draw 8s ease-in-out infinite;}
.ln-chart .draw.two{animation-delay:1.4s;}
.ln-chart .dot{fill:var(--gold); animation:ln-blink 8s ease-in-out infinite; animation-delay:1.4s;}
@keyframes ln-draw{0%{stroke-dashoffset:900;} 35%,90%{stroke-dashoffset:0;} 100%{stroke-dashoffset:0; opacity:.2;}}
@keyframes ln-blink{0%,30%{opacity:0;} 38%,90%{opacity:1;} 100%{opacity:0;}}

/* The call, start to end: a playhead runs across its parts */
.ln-show{position:relative; display:flex; gap:3px; padding-bottom:30px;}
.ln-show div{flex:var(--f) 1 0; min-width:0; background:var(--surface); padding:10px 10px 12px; font-size:var(--fs-fine); color:var(--muted); line-height:1.4;
  border-top:3px solid var(--border); animation:ln-on 12s linear infinite; animation-delay:calc(var(--at) * 12s);}
.ln-show div b{display:block; color:var(--ink); font-size:var(--fs-sm); font-weight:600; margin-bottom:2px;}
.ln-show .head{position:absolute; top:-6px; bottom:22px; left:0; width:2px; background:var(--gold); animation:ln-head 12s linear infinite;}
.ln-show .head::after{content:""; position:absolute; bottom:-8px; left:-5px; border:6px solid transparent; border-top-color:var(--gold);}
@keyframes ln-head{from{left:0;} to{left:100%;}}
@keyframes ln-on{0%,8%{border-top-color:var(--gold); background:var(--amber);} 12%,100%{border-top-color:var(--border); background:var(--surface);}}

/* The update's clock */
.ln-clock{display:flex; gap:26px; align-items:center; flex-wrap:wrap;}
.ln-clock svg{width:132px; height:132px; flex:none;}
.ln-clock .bg{fill:none; stroke:var(--surface); stroke-width:10;}
.ln-clock .left{fill:none; stroke:var(--gold); stroke-width:10; stroke-linecap:round; stroke-dasharray:327; transform:rotate(-90deg); transform-origin:center;
  animation:ln-tick 9s linear infinite;}
.ln-clock text{fill:var(--ink); font-family:'Bebas Neue',sans-serif; font-size:30px; letter-spacing:1px; text-anchor:middle;}
.ln-clock text.small{font-size:12px; fill:var(--muted); letter-spacing:2px;}
@keyframes ln-tick{0%{stroke-dashoffset:0; stroke:var(--gold);} 75%{stroke-dashoffset:327; stroke:var(--gold);} 76%,100%{stroke-dashoffset:0; stroke:var(--bad);}}
.ln-clock ul{margin:0;}

/* What Coach reads: boards on the left feed an answer on the right */
.ln-flow{display:grid; grid-template-columns:1fr 70px 1.1fr; gap:10px; align-items:center;}
.ln-boards{display:flex; flex-wrap:wrap; gap:6px;}
.ln-boards span{padding:6px 10px; background:var(--surface); border:1px solid var(--border); border-radius:20px; font-size:var(--fs-fine); color:var(--soft);
  animation:ln-read 6s ease-in-out infinite; animation-delay:calc(var(--i) * .5s);}
.ln-boards span.shut{opacity:.45; text-decoration:line-through; animation:none;}
@keyframes ln-read{0%,12%{border-color:var(--gold); color:var(--ink);} 20%,100%{border-color:var(--border); color:var(--soft);}}
.ln-pipe{position:relative; height:2px; background:var(--border);}
.ln-pipe i{position:absolute; top:-4px; left:0; width:10px; height:10px; border-radius:50%; background:var(--gold); animation:ln-along 1.8s linear infinite;}
.ln-pipe i:nth-child(2){animation-delay:.6s;} .ln-pipe i:nth-child(3){animation-delay:1.2s;}
@keyframes ln-along{from{left:0; opacity:0;} 15%{opacity:1;} 85%{opacity:1;} to{left:calc(100% - 10px); opacity:0;}}
.ln-answer{background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:14px 16px; font-size:var(--fs-sm); line-height:1.5;}
.ln-answer .q{display:block; text-align:right; color:var(--ink); margin-bottom:10px;}
.ln-answer .from{display:block; margin-top:8px; color:var(--muted); font-size:var(--fs-fine);}

/* Where a month's lines come from on Xyzios (the KPIs guide): three columns of the lines' names */
.ln-src{display:grid; grid-template-columns:1.3fr 1fr .8fr; gap:12px;}
.ln-src > div{display:flex; flex-wrap:wrap; align-content:flex-start; gap:6px; background:#1a1a1a; border-radius:12px; padding:16px 16px 18px;
  border-top:4px solid #eaca46;}
.ln-src .books{border-top-color:#d8d6d1;}
.ln-src .hand{border-top-color:#6e6e6e;}
.ln-src em{flex-basis:100%; font-style:normal; font-family:'Bebas Neue',sans-serif; font-size:16px; letter-spacing:2px; color:#eaca46;}
.ln-src .books em{color:#d8d6d1;}
.ln-src .hand em{color:#b9b6af;}
.ln-src b{flex-basis:100%; color:#f7f6f2; font-size:18px; font-weight:600; line-height:1.3; margin-bottom:8px;}
.ln-src span{display:inline-block; padding:4px 11px; border-radius:999px; background:#262626; border:1px solid #444; color:#f0eee9; font-size:14px; line-height:1.4;}
.ln-src .auto span{border-color:rgba(234,202,70,.5);}

/* The step by step guide (app/steps.html): each group a dark banner, each step numbered within its group */
.lnsteps .gsechd.sgroup{counter-reset:st; display:block; margin:72px 0 0; padding:24px 28px; border:0; border-radius:14px; background:#0a0a0a;
  color:#f7f6f2; font-size:46px; line-height:1;}
.lnsteps .gsechd.sgroup::after{content:""; display:block; width:64px; height:4px; margin-top:14px; background:#eaca46;}
.lnsteps .sstep{counter-increment:st;}
.lnsteps .sstep > .eyebrow{display:none;}
.lnsteps .sstep > .gsechd::before{content:counter(st, decimal-leading-zero); flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:58px; height:58px; border-radius:12px; background:#0a0a0a; color:#eaca46; font-size:32px; letter-spacing:1px;}
.ln .gmain > .hint.send{margin-top:48px; font-size:17px;}

/* The GSD App Guide (guide.js): a board's guide in the same type, its sections numbered, its picture framed like a walkthrough */
.lnguide .guide{counter-reset:gs; max-width:none;}
.lnguide .guide > h3{counter-increment:gs; display:flex; align-items:center; gap:14px; font-family:'Bebas Neue',sans-serif; font-weight:400;
  font-size:34px; letter-spacing:.5px; line-height:1.05; color:var(--ink); margin:52px 0 16px; padding-bottom:14px; border-bottom:3px solid #111;}
.lnguide .guide > h3::before{content:counter(gs, decimal-leading-zero); flex:none; width:50px; height:50px; border-radius:10px; background:#0a0a0a;
  color:#eaca46; font-size:27px; line-height:50px; text-align:center;}
.lnguide .guide > h4{font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:25px; letter-spacing:.5px; color:var(--ink); margin:30px 0 6px;}
.lnguide .gpic{display:block; width:100%; height:auto; margin:28px 0 6px; border:12px solid #0a0a0a; border-radius:16px; background:#0a0a0a;
  box-shadow:0 22px 44px -24px rgba(0,0,0,.55);}
.ln .gmain > .gsechd{margin-top:52px;}
.ln .gcards{gap:12px;}
.ln .gcards a{background:var(--card); border:1px solid var(--border); border-top:5px solid #111; border-radius:12px; padding:20px 22px;}
.ln .gcards a:hover, .ln .gcards a:focus-visible{border-top-color:#eaca46; box-shadow:0 14px 30px -20px rgba(0,0,0,.5);}
.ln .gcards a b{font-size:19px;}
.ln .gcards a span{font-size:16px; color:var(--soft); line-height:1.55;}

/* The cards on /learn */
.ln-cards{gap:12px; margin-top:22px;}
.ln-cards a{position:relative; background:var(--card); border:1px solid var(--border); border-top:5px solid #111; border-radius:12px; padding:22px 22px 20px;}
.ln-cards a:hover, .ln-cards a:focus-visible{border-top-color:#eaca46; box-shadow:0 14px 30px -20px rgba(0,0,0,.5);}
.ln-cards a em{display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:10px; background:#0a0a0a;
  color:#eaca46; font-style:normal; font-family:'Bebas Neue',sans-serif; font-size:25px; margin-bottom:14px;}
.ln-cards a b{font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:27px; letter-spacing:.5px; line-height:1.05; margin-bottom:8px;}
.ln-cards a span{font-size:16px; color:var(--soft); line-height:1.55;}
.ln-cards a i{display:block; font-style:normal; font-size:14px; font-weight:600; color:var(--ink); margin-top:12px;}
.ln .hint{font-size:16px; color:var(--soft); margin-top:22px;}

/* Xyzios, at the foot of every article */
.ln-pitch{margin:64px 0 8px; padding:30px 32px; border-radius:16px; border-top:4px solid #eaca46;
  background:radial-gradient(circle at 0 100%, rgba(234,202,70,.14), transparent 50%), #0a0a0a;}
.ln-pitch h2{font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:36px; letter-spacing:1px; color:#f7f6f2; margin:14px 0 8px;}
.ln-pitch p{max-width:66ch; line-height:1.65; color:#e4e2dd;}
.ln-pitch .xz-lock{display:block; width:120px; height:auto;}
.ln-pitch .xz-black{display:none;}
.ln-ctarow{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:18px;}
.ln-cta{text-decoration:none;}
.ln-ctarow span{font-size:15px; color:#b9b6af;}
.ln .gpager a b{font-size:18px;}

@media (max-width:880px){
  .ln-src{grid-template-columns:1fr;}
  .ln-hero{padding:30px 24px 26px;}
  .ln-hero h1{font-size:46px;}
  .ln-hero .lede{font-size:19px;}
  .ln-bar{grid-template-columns:96px 1fr 96px; gap:10px;}
  .ln-ladder, .ln-two, .ln-flow{grid-template-columns:1fr;}
  .ln-pipe{width:2px; height:40px; margin:0 auto;}
  .ln-pipe i{left:-4px; animation:ln-down 1.8s linear infinite;}
  .ln-show{flex-wrap:wrap;}
  .ln-show div{flex-basis:30%;}
  .ln-show .head{display:none;}
  .ln-line{grid-template-columns:1fr; padding-top:0; padding-left:26px; gap:14px;}
  .ln-line::before, .ln-line .run{display:none;}
  .ln-stop{text-align:left;}
  .ln-stop::before{top:4px; left:-21px; margin-left:0;}
}
@media (max-width:600px){
  .lnsteps .gsechd.sgroup{font-size:34px; padding:18px 20px;}
  .lnsteps .sstep > .gsechd::before{width:44px; height:44px; font-size:25px; border-radius:10px;}
  .lnguide .guide > h3{font-size:28px;}
  .lnguide .guide > h3::before{width:42px; height:42px; line-height:42px; font-size:23px;}
  .lnguide .gpic{border-width:6px; border-radius:12px;}
  body.ln{--fs-body:17px; --fs-h2:31px;}
  .ln-hero{padding:24px 18px 22px; border-radius:12px;}
  .ln-hero h1{font-size:38px;}
  .ln-no{width:44px; height:44px; font-size:25px; border-radius:10px;}
  .ln .gsechd{gap:12px;}
  .ln .sstep > .gsechd + p, .lnguide .guide > h3 + p{font-size:19px;}
  .ln :is(.sstep, .guide) > ol > li{padding:13px 16px 13px 62px;}
  .ln :is(.sstep, .guide) > ol > li::before{left:12px; width:36px; height:36px; line-height:36px; font-size:22px;}
  .ln-note, .ln-tip, .ln-warn{padding:16px 18px 16px 64px;}
  .ln-note::before, .ln-tip::before, .ln-warn::before{left:14px; width:34px; height:34px; line-height:34px;}
  .ln-fig{padding:20px 16px 16px; border-radius:12px;}
  .ln-walk{padding:6px 6px 4px; border-radius:12px; margin-left:-6px; margin-right:-6px;}
  .ln-wbar{flex-wrap:wrap; gap:10px 12px; padding:12px 4px 6px;}
  .ln-wno{width:40px; height:40px; line-height:40px; font-size:25px;}
  .ln .ln-wsay{flex-basis:calc(100% - 56px); font-size:17px;}
  .ln-wctl{width:100%; justify-content:space-between;}
  .ln-wctl button[data-walk="play"]{flex:1;}
  .ln-wtrack{padding:6px 4px 0;}
  .ln-wtrack button span{font-size:11px;}
  .ln-pitch{padding:24px 20px;}
  .ln-table th:nth-child(3), .ln-table td:nth-child(3){display:none;}
  .ln-track s::after{display:none;}
}
@keyframes ln-down{from{top:0; opacity:0;} 15%{opacity:1;} 85%{opacity:1;} to{top:30px; opacity:0;}}

@media (prefers-reduced-motion: reduce){
  .ln *, .ln *::before, .ln *::after{animation:none !important;}
  .ln-stage img{transition:none;}
  .ln-chart .draw{stroke-dashoffset:0;}
  .ln-show .head{display:none;}
}
