/* Nexus Lab calm layer, frame (docs/tasks/nexus-lab-calm.md). Loaded only while the calm layer is on (api/lib/nexus_lab6.php), after Lab v2.
   Every rule is scoped under .nxl3.nxl5.nxl6, logical properties only, no !important, CSS only (the HTML is the same with the layer on or off).
   What it does: one type scale (12 / 14 / 16 / 18 / 24 / 30 and the page title), one font family per language, half the lines, a 1120 px
   reading column, one section rhythm (48 px phones, 64 px desktop), and the green glow kept only where it means something
   (primary button, active navigation, linked card hover, focus ring). Tier colours, the fixed splash art and the green tints stay.

   1 tokens   2 type   3 page column and rhythm   4 surfaces and lines   5 controls   6 rail and dock   7 small text floor   8 Arabic */

/* ---------------------------------------------------------------- 1 tokens */
.nxl3.nxl5.nxl6{
--c-page:#050b07;--c-panel:rgba(9,18,13,.8);--c-panel-2:rgba(14,26,19,.72);--c-line:rgba(150,255,190,.08);--c-line-2:rgba(150,255,190,.14);
--c-glow:0 0 0 1px rgba(69,248,130,.3),0 10px 28px -14px rgba(69,248,130,.5);
--c-r-sm:8px;--c-r-md:12px;--c-r-lg:16px;
--c-gap:48px;
--c-font:var(--rd-font,inherit);
/* the Lab's own tokens, retuned: every older rule that reads them follows */
--l3-fs-xs:12px;--l3-fs-sm:14px;--l3-fs-md:16px;--l3-fs-lg:18px;--l3-fs-xl:24px;--l3-fs-2xl:30px;--l3-fs-h1:clamp(30px,2.4vw + 21px,48px);
--l3-line:var(--c-line);--l3-line-2:var(--c-line-2);
--l3-r-sm:var(--c-r-sm);--l3-r-md:var(--c-r-md);--l3-r-lg:var(--c-r-lg);
--l5-r-sm:var(--c-r-sm);--l5-r-md:var(--c-r-md);--l5-r-lg:var(--c-r-lg);
--l5-edge:rgba(150,255,190,.1);--l5-edge-2:rgba(150,255,190,.16);
--l5-lip:0 0 0 0 transparent;--l5-shadow:0 18px 40px -30px rgba(0,10,4,.8);--l5-glow:var(--c-glow);
--l3-max:1120px;
font-family:var(--c-font);line-height:1.5}
@media (min-width:900px){.nxl3.nxl5.nxl6{--c-gap:64px}}

/* ---------------------------------------------------------------- 2 type: one family, three weights, one scale */
.nxl3.nxl5.nxl6 :is(h2,h3,h4,p,li,dt,dd,th,td,a,button,input,select,label,summary,small,span,b,strong,em,figcaption){font-family:var(--c-font)}
.nxl3.nxl5.nxl6 .nxl3-h1{font-weight:700;line-height:1.12;letter-spacing:-.015em;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.nxl3.nxl5.nxl6 .nxl3-h2{font-family:var(--c-font);font-weight:600;font-size:24px;line-height:32px;letter-spacing:-.01em}
.nxl3.nxl5.nxl6 :is(.nxl3-h3,.nxl3-main h3){font-family:var(--c-font);font-weight:600;font-size:18px;line-height:28px;letter-spacing:0}
.nxl3.nxl5.nxl6 .nxl3-lead{font-size:16px;line-height:24px;max-inline-size:62ch;margin-block-start:12px}
.nxl3.nxl5.nxl6 .nxl3-note{font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-crumbs{font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-main p{line-height:1.5}
@media (min-width:900px){
.nxl3.nxl5.nxl6 .nxl3-h2{font-size:30px;line-height:36px}
.nxl3.nxl5.nxl6 :is(.nxl3-h3,.nxl3-main h3){font-size:20px}
.nxl3.nxl5.nxl6 .nxl3-lead{font-size:18px;line-height:28px}
}

/* ---------------------------------------------------------------- 3 page column and section rhythm */
.nxl3.nxl5.nxl6 .nxl3-main{padding-block-start:24px}
.nxl3.nxl5.nxl6 .nxl3-ph{padding-block:8px 24px;gap:16px 32px}
.nxl3.nxl5.nxl6 .nxl3-sh{margin-block:var(--c-gap) 16px;align-items:center}
.nxl3.nxl5.nxl6 .nxl3-sh .nxl3-h2{margin-block:0}
.nxl3.nxl5.nxl6 .nxl3-main>.nxl3-h2,.nxl3.nxl5.nxl6 .nxl3-main>section>.nxl3-h2{margin-block:var(--c-gap) 16px}
.nxl3.nxl5.nxl6 .nxl3-foot{margin-block-start:var(--c-gap);padding-block-start:24px;border-block-start:1px solid var(--c-line);font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-artcredit{font-size:12px;line-height:16px}

/* ---------------------------------------------------------------- 4 surfaces and lines: flat panels, one hairline, no inner glow */
.nxl3.nxl5.nxl6 .nxl3-fbar{border-radius:var(--c-r-lg);border-color:var(--c-line);box-shadow:none}
.nxl3.nxl5.nxl6 .nxl3-faq{border-block-start-color:var(--c-line)}
.nxl3.nxl5.nxl6 .nxl3-faq details{border-block-end-color:var(--c-line)}
.nxl3.nxl5.nxl6 .nxl3-faq summary{min-block-size:56px;padding:16px 4px;font-size:16px;line-height:24px}
.nxl3.nxl5.nxl6 .nxl3-faq details p{padding:0 4px 20px;font-size:16px;line-height:24px;max-inline-size:68ch}
.nxl3.nxl5.nxl6 .nxl3-top__in{border-radius:var(--c-r-lg);box-shadow:var(--l5-shadow)}
.nxl3.nxl5.nxl6 .nxl3-search input{border-radius:var(--c-r-md)}
.nxl3.nxl5.nxl6 .nxl3-top .nxl3-iconbtn,.nxl3.nxl5.nxl6 .nxl3-iconbtn{border-radius:var(--c-r-md)}
.nxl3.nxl5.nxl6 .nxl3-patch{font-size:14px}
/* linked cards: the lift and the glow stay on hover only */
.nxl3.nxl5.nxl6 :is(.nxl3-tool,.nxl3-gd__c,.nxl3-skin){border-color:var(--c-line);box-shadow:none}

/* ---------------------------------------------------------------- 5 controls */
.nxl3.nxl5.nxl6 .nxl3-btn{border-radius:var(--c-r-md);font-size:14px;font-weight:600;line-height:20px;padding-inline:20px}
.nxl3.nxl5.nxl6 .nxl3-btn:not(.nxl3-btn--primary):not(.is-primary){border-color:var(--c-line-2);box-shadow:none}
.nxl3.nxl5.nxl6 .nxl3-chip{min-block-size:40px;padding-inline:14px;border-color:var(--c-line-2);font-size:14px;font-weight:500;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-chip small{font-size:12px}
.nxl3.nxl5.nxl6 .nxl3-more{font-size:14px;font-weight:600;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-seg{border-radius:var(--c-r-lg)}
.nxl3.nxl5.nxl6 .nxl3-seg__o,.nxl3.nxl5.nxl6 .nxl5-bead{border-radius:var(--c-r-md)}
.nxl3.nxl5.nxl6 .nxl5-bead{box-shadow:0 6px 18px -8px rgba(69,248,130,.6)}
.nxl3.nxl5.nxl6 :is(.nxl3-chip,.nxl3-btn,.nxl3-nav,.nxl3-seg__o,.nxl3-more,.nxl3-faq summary):focus-visible{outline:2px solid #8dffb6;outline-offset:3px}

/* ---------------------------------------------------------------- 6 rail and dock */
.nxl3.nxl5.nxl6 .nxl3-rail{border-inline-end-color:var(--c-line)}
.nxl3.nxl5.nxl6 .nxl3-rail__lbl{font-size:12px;line-height:16px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--l3-text-3);padding-block-end:8px}
.nxl3.nxl5.nxl6 .nxl3-rail__grp+.nxl3-rail__grp{margin-block-start:20px}
.nxl3.nxl5.nxl6 .nxl3-nav{border-radius:var(--c-r-md);font-size:14px;line-height:20px;font-weight:500}
.nxl3.nxl5.nxl6 .nxl3-nav.is-on{font-weight:600;background:rgba(69,248,130,.12);box-shadow:inset 0 0 0 1px rgba(69,248,130,.24)}
[dir=rtl].nxl3.nxl5.nxl6 .nxl3-nav.is-on{background:rgba(69,248,130,.12)}
.nxl3.nxl5.nxl6 .nxl3-nav__t small{font-size:12px;line-height:16px}
.nxl3.nxl5.nxl6 .nxl3-rail__foot{font-size:12px;line-height:16px}
@media (max-width:1099px){
.nxl3.nxl5.nxl6 .nxl3-tabbar{border-radius:20px;border-color:var(--c-line-2);box-shadow:0 18px 40px -18px rgba(0,0,0,.9)}
.nxl3.nxl5.nxl6 .nxl3-tabbar :is(a,button){min-block-size:56px;border-radius:14px;font-size:12px}
.nxl3.nxl5.nxl6 .nxl3-tabbar :is(a,button) span{font-size:12px;line-height:16px;letter-spacing:0}
.nxl3.nxl5.nxl6 .nxl3-tabbar .is-on{background:rgba(69,248,130,.14);box-shadow:inset 0 0 0 1px rgba(69,248,130,.26)}
.nxl3.nxl5.nxl6 .nxl3-tabbar .is-on .nxl3-i{filter:none}
}

/* ---------------------------------------------------------------- 7 small text floor: nothing under 12 px */
.nxl3.nxl5.nxl6 :is(.nxl3-badge,.nxl3-badge--mini,.nxl3-kbd,.nxl3-ct__tag,.nxl3-ct__s,.nxl3-search__list small,.nxl3-search__g,.nxl3-facts dt){font-size:12px;line-height:16px}
.nxl3.nxl5.nxl6 :is(.nxl3-gd__k,.nxl3-pc__src,.nxl3-tool__t small,.nxl3-store__t small,.nxl3-rows small,.nxl3-hero__chips li){font-size:12px;line-height:16px}
.nxl3.nxl5.nxl6 :is(.nxl3-gd__p,.nxl3-skin__m,.nxl3-also,.nxl3-sort,.nxl3-sort button,.nxl3-gal__count,.nxl3-jump,.nxl3-tbl thead th){font-size:14px;line-height:20px}

/* guide cards and the short answer blocks every hub shares */
.nxl3.nxl5.nxl6 .nxl3-gd__t{font-size:16px;line-height:24px;font-weight:600}
.nxl3.nxl5.nxl6 .nxl3-gd__lanes,.nxl3.nxl5.nxl6 .nxl3-gd__lanes :is(span,.nxl3-chip){font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6 .nxl3-gd__c{border-radius:var(--c-r-lg)}
.nxl3.nxl5.nxl6 :is(.nxsc-tier__d,.nxsc-tier__d time){font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6 :is(.nxsc-mesh,.nxsc-tier) p{font-size:16px;line-height:24px}
.nxl3.nxl5.nxl6 .nxsc-mesh>h2{font-family:var(--c-font);font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.01em}
.nxl3.nxl5.nxl6 .nxsc-mesh__g>h3{font-size:18px;line-height:28px;font-weight:600}
.nxl3.nxl5.nxl6 .nxl3-rail__brand span{font-size:18px;line-height:28px;font-weight:700}
@media (min-width:900px){.nxl3.nxl5.nxl6 .nxsc-mesh>h2{font-size:30px;line-height:36px}}

/* ---------------------------------------------------------------- 8 Arabic: taller lines, no tracking, same sizes */
[dir=rtl].nxl3.nxl5.nxl6{line-height:1.7}
[dir=rtl].nxl3.nxl5.nxl6 .nxl3-h1{line-height:1.35;letter-spacing:0}
[dir=rtl].nxl3.nxl5.nxl6 .nxl3-h2{line-height:1.45;letter-spacing:0}
[dir=rtl].nxl3.nxl5.nxl6 .nxl3-main p{line-height:1.75}
[dir=rtl].nxl3.nxl5.nxl6 :is(.nxl3-lead,.nxl3-faq summary,.nxl3-faq details p){line-height:1.75}
[dir=rtl].nxl3.nxl5.nxl6 :is(.nxl3-note,.nxl3-crumbs,.nxl3-btn,.nxl3-chip,.nxl3-nav,.nxl3-more){line-height:1.6}
[dir=rtl].nxl3.nxl5.nxl6 .nxl3-rail__lbl{font-size:12px;line-height:1.6}
@media (max-width:1099px){[dir=rtl].nxl3.nxl5.nxl6 .nxl3-tabbar :is(a,button) span{font-size:12px;line-height:1.5;letter-spacing:0}}

@media (prefers-reduced-motion:reduce){.nxl3.nxl5.nxl6 *{scroll-behavior:auto}}

/* ---------------------------------------------------------------- 9 weights and leftovers: nothing heavier than 600 under the page title */
.nxl3.nxl5.nxl6.nxl6 :is(b,strong,em,h4,dt,summary){font-weight:600}
.nxl3.nxl5.nxl6.nxl6 .nxl3-h1 :is(b,strong,em,span){font-weight:inherit}
.nxl3.nxl5.nxl6.nxl6 :is(.nxl3-ct__tag,.nxl3-seg__s,.nxl3-plate__fb,.nxsc-tag,.nxp-v,.nxp-tabs__n,.nxp-ml__w,.nxl3-skip,.nxl3-btn){font-weight:600}
.nxl3.nxl5.nxl6.nxl6 .nxl3-crumbs :is(li,a,span){font-size:14px;line-height:20px}
.nxl3.nxl5.nxl6.nxl6 .nxl3-h1{font-size:var(--l3-fs-h1)}
.nxl3.nxl5.nxl6.nxl6 .nxl3-lead{font-size:16px;line-height:24px}
@media (min-width:900px){.nxl3.nxl5.nxl6.nxl6 .nxl3-lead{font-size:18px;line-height:28px}}
.nxl3.nxl5.nxl6.nxl6 .rl-detail-block h2{font-weight:600}
.nxl3.nxl5.nxl6.nxl6 :is(.nxv4c-next,.rl-next-cards) li a b{font-size:16px;line-height:24px}
.nxl3.nxl5.nxl6.nxl6 :is(.nxv4c-next,.rl-next-cards) li a small{font-weight:500}
.nxl3.nxl5.nxl6.nxl6 :is(.nxv-src,.nxl3s-srcs li small,.pnum-rk__l){font-size:12px}
.nxl3.nxl5.nxl6.nxl6 :is(.nxv-src,.nxl3s-vs legend,.nxl3s-vr__h,.nxl3s-vr__n,.nxl3-tbl caption){font-weight:600}
