/* =============== 前沿 (frontier.js): the list of articles and an article ===============
   The covers carry the colour; the page keeps the site's one background and the one accent. Four sizes a
   page: the list 13 / 17 / 22 / 34, an article 13 / 15.5 / 22 / 34 (a phone 13 / 17 / 22 / 28 and 13 / 15 / 19 / 26).
   A card is a link as a whole (its .fr-a lies over it). */
:root{--fr-ink:#08090d}
:root[data-theme="light"] .fr-pg{position:relative;padding-bottom:112px}
.nav-dot{width:6px;height:6px;margin-left:6px;border-radius:50%;background:var(--accent);flex:none}
.fr-a{position:absolute;inset:0;z-index:3;border-radius:inherit}
.fr-a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}


/* ---- the head, the columns, the tags ---- */
.fr-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:none;padding-bottom:26px}
.fr-hd p{margin:10px 0 0;font-size:17px;line-height:1.6;color:var(--text2)}
.fr-lock{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 5px 0 14px;border-radius:999px;background:var(--fill4);font-size:13px;color:var(--text2);white-space:nowrap}
.fr-lock .ic{color:var(--text3)}
.fr-lock .btn{height:30px;padding:0 14px;border-radius:999px;font-size:13px}
/* the columns down the left beside the articles, staying in view, as a magazine's contents (the user, 11-14: 方案 D
   with each column's sign beside its name; the chosen one larger, not only darker): names at 17 in the faint ink, the
   chosen one grows to 22 in full ink, its sign to 22 in the accent, its count raised in the accent; the growing eases
   with a little spring. On a narrow page a row of capsules over the articles, the chosen one's tint sliding to the next
   (segPlace in app.js sets --sx/--sy/--sw/--sh) */
.fr-lay{display:grid;grid-template-columns:132px minmax(0,1fr);gap:0 36px;align-items:start}
.fr-lay.solo{display:block}
.fr-main{min-width:0;container:frm/inline-size}
.fr-cols{position:sticky;top:84px;isolation:isolate;display:flex;flex-direction:column;gap:2px}
.fr-cols:before{content:"";position:absolute;z-index:-1;left:var(--sx,0);top:var(--sy,0);width:var(--sw,0);height:var(--sh,0);border-radius:999px;background:var(--accent-soft);display:none}
.fr-cols button{display:flex;align-items:center;gap:10px;height:46px;padding:0;border:0;background:none;color:var(--text3);font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1;text-align:left;white-space:nowrap;
  transition:color 240ms var(--ease),font-size 350ms var(--magic),letter-spacing 350ms var(--magic)}
.fr-cols button:hover:not(.on){color:var(--text2)}
.fr-cols button.on{color:var(--text);font-size:22px;letter-spacing:-.02em}
.fr-ni{display:grid;place-items:center;flex:none;width:22px;height:22px}
.fr-ni .ic{width:17px;height:17px;transition:width 350ms var(--magic),height 350ms var(--magic),color 240ms var(--ease)}
.fr-cols button.on .fr-ni .ic{width:22px;height:22px;color:var(--accent-text)}
.fr-nn{flex:none}
.fr-cols em{font-style:normal;font-size:13px;font-weight:500;letter-spacing:0;color:var(--text3);font-variant-numeric:tabular-nums;transition:color 240ms var(--ease)}
.fr-cols button.on em{color:var(--accent-text)}
/* where a drawing-anew starts from (frGrow): the chosen one as it was, small and faint; the one left as it was, large */
.fr-cols button.fr-still,.fr-cols button.fr-still *{transition:none!important}
.fr-cols button.on.fr-from{color:var(--text3);font-size:17px;letter-spacing:-.01em}
.fr-cols button.on.fr-from .fr-ni .ic{width:17px;height:17px;color:inherit}
.fr-cols button.on.fr-from em{color:var(--text3)}
.fr-cols button.fr-from:not(.on){color:var(--text);font-size:22px;letter-spacing:-.02em}
.fr-cols button.fr-from:not(.on) .fr-ni .ic{width:22px;height:22px;color:var(--accent-text)}
.fr-cols button.fr-from:not(.on) em{color:var(--accent-text)}
@media (max-width:900px){
  .fr-lay{display:block}
  .fr-cols{position:relative;top:auto;flex-direction:row;gap:8px;margin:0 0 26px;overflow-x:auto;scrollbar-width:none}
  .fr-cols::-webkit-scrollbar{display:none}
  .fr-cols:before{display:block;opacity:0}.fr-cols[data-sl]:before{opacity:1}
  .fr-cols[data-sl="m"]:before{transition:left 370ms var(--magic),top 370ms var(--magic),width 370ms var(--magic),height 370ms var(--magic)}
  .fr-cols button,.fr-cols button.on{flex:none;height:34px;padding:0 14px 0 12px;gap:7px;border-radius:999px;background:var(--fill4);color:var(--text);font-size:13px;font-weight:500;letter-spacing:0}
  .fr-cols button:hover:not(.on){background:var(--fill3);color:var(--text)}
  .fr-cols button.on{color:var(--accent-text)}
  .fr-cols[data-sl] button.on{background:none}
  .fr-cols:not([data-sl]) button.on{background:var(--accent-soft)}
  .fr-ni{width:15px;height:15px}.fr-ni .ic,.fr-cols button.on .fr-ni .ic{width:15px;height:15px}
  .fr-ni .ic{color:var(--text2)}.fr-cols button.on .fr-ni .ic{color:var(--accent-text)}
}
.fr-tag em{font-style:normal;font-weight:500;color:var(--text3);font-variant-numeric:tabular-nums}
@media (max-width:900px){
  .fr-lay{display:block}
  .fr-cols{position:relative;top:auto;flex-direction:row;gap:8px;margin:0 0 26px;overflow-x:auto;scrollbar-width:none}
  .fr-cols::-webkit-scrollbar{display:none}
  .fr-cols:before{border-radius:999px}
  .fr-cols button{flex:none;height:34px;padding:0 14px 0 6px;gap:7px;border-radius:999px;background:var(--fill4)}
  .fr-cols button.on,.fr-cols button:hover:not(.on){background:var(--fill4)}
  .fr-cols[data-sl] button.on{background:none}
  .fr-cols:not([data-sl]) button.on{background:var(--accent-soft)}
  .fr-ni{width:22px;height:22px;border-radius:999px}
}
.fr-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}
.fr-tags{display:flex;flex-wrap:wrap;gap:8px}
.fr-tag{position:relative;z-index:4;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:999px;border:0;background:var(--fill4);color:var(--text2);font-size:13px;font-weight:500;white-space:nowrap;transition:color 220ms var(--ease),background-color 220ms var(--ease)}
.fr-tag::before{content:"#";color:var(--text3);font-weight:500;margin-right:-2px}
.fr-tag:hover{color:var(--text);background:var(--fill3)}
.fr-tag.on{color:var(--accent-text);background:var(--accent-soft)}
.fr-tag.on::before,.fr-tag.on em{color:inherit;opacity:.7}

/* ---- marks ---- */
.fr-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1;white-space:nowrap;color:var(--accent-text);background:var(--accent-soft)}
.fr-pill.sm{height:22px;padding:0 9px 0 7px;gap:4px}.fr-pill.sm .ic{width:12px;height:12px}
.fr-pill .ic{width:14px;height:14px}
.fr-pill.glass{color:#fff;background:rgba(10,11,16,.38);border-color:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:0 4px 18px -6px rgba(0,0,0,.4)}
.fr-new{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;line-height:1}
.fr-pin{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--text2);font-weight:500}
.fr-pin .ic{color:var(--accent-text)}
.fr-hm{display:flex;align-items:center;flex-wrap:wrap;gap:10px}

/* ---- the list as an editorial page (方案 A, 11-14): the lead with its picture beside its words, then a row an article,
   its words on the left and its picture on the right, a hairline between. The covers keep their subject in the middle. */
.fr-lead,.fr-row{position:relative;isolation:isolate}
.fr-lead{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:40px;align-items:center;padding-bottom:36px;margin-bottom:28px;border-bottom:1px solid var(--line)}
.fr-lv,.fr-rv{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--fr-ink)}
.fr-lv{border-radius:var(--r)}
.fr-rv{border-radius:14px}
.fr-lv img,.fr-rv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:scale 760ms var(--magic)}
.fr-lead:hover .fr-lv img,.fr-row:hover .fr-rv img{scale:1.04}
.fr-lt{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.fr-lead h2,.fr-row h2{margin:0;font-weight:600;color:var(--text);text-wrap:pretty;overflow-wrap:anywhere;transition:color var(--t-fast) var(--ease)}
.fr-lead h2{font-size:22px;line-height:1.42;letter-spacing:-.02em}
.fr-lead:hover h2,.fr-row:hover h2{color:var(--accent-text)}
.fr-lead p,.fr-row p{margin:0;font-size:13px;line-height:1.8;color:var(--text2);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.fr-lead p{-webkit-line-clamp:4}
.fr-row p{-webkit-line-clamp:2}
.fr-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--text3);font-variant-numeric:tabular-nums}
.fr-meta b{font-weight:600;color:var(--accent-text)}
.fr-list{display:flex;flex-direction:column}
.fr-row{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:36px;align-items:center;padding:26px 0;border-bottom:1px solid var(--line)}
.fr-row:first-child{padding-top:6px}
.fr-row:last-child{border-bottom:0}
.fr-row.bare{grid-template-columns:minmax(0,1fr)}
.fr-rt{display:flex;flex-direction:column;gap:8px;min-width:0}
.fr-row h2{font-size:17px;line-height:1.5;letter-spacing:-.01em}
.fr-go{display:grid;place-items:center;width:34px;height:34px;margin-left:auto;border-radius:50%;background:var(--fill4);color:var(--text2);font-style:normal;transition:background-color 220ms var(--ease),color 220ms var(--ease)}
.fr-go .ic{width:14px;height:14px;transition:translate 300ms var(--magic)}
.fr-nx:hover .fr-go{background:var(--text);color:var(--bg)}
.fr-nx .fr-go{margin-right:2px}
.fr-all{display:flex;justify-content:center;margin-top:40px}
.fr-all .btn{height:40px;padding:0 20px;border-radius:999px;font-size:13px}

/* ---- an article ---- */
.fr-prog{position:fixed;left:0;right:0;top:0;z-index:60;height:2px;pointer-events:none}
@media (min-width:1101px){.fr-prog:has(+.fr-pp.has-toc){display:none}}
.fr-prog i{display:block;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:0 50%}
.fr-pp{position:relative;padding:30px 0 88px}
.fr-pp>*{max-width:720px;margin-left:auto;margin-right:auto}
.fr-pp>.fr-pc{max-width:1004px}
.fr-pp.has-toc{display:grid;grid-template-columns:minmax(0,720px) 220px;justify-content:center;column-gap:64px;align-items:start}
.fr-pp.has-toc>*{max-width:none;margin:0}
.fr-pp.has-toc>.fr-ph,.fr-pp.has-toc>.fr-col{grid-column:1}
.fr-pp.has-toc>.fr-pc{grid-column:1/-1;margin-bottom:64px}
.fr-pp.has-toc>.fr-ph{margin-bottom:40px}
.fr-pp.has-toc>.fr-rail{grid-column:2;grid-row:3}
.fr-col{min-width:0;width:100%}
.fr-crumb{display:flex;align-items:center;gap:6px;margin-bottom:22px;font-size:13px;color:var(--text3)}
.fr-crumb a{transition:color .2s linear}
.fr-crumb a:hover{color:var(--text)}
.fr-crumb .ic{width:12px;height:12px;rotate:-90deg;opacity:.7}
.fr-ph{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:40px}
.fr-ph .fr-crumb{margin-bottom:6px}
.fr-ph h1{margin:0;font-size:34px;font-weight:600;line-height:1.3;letter-spacing:-.03em;color:var(--text);overflow-wrap:anywhere;text-wrap:balance}
.fr-sum{margin:0;color:var(--text2);font-size:15px;line-height:1.9}
.fr-by{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:13px;color:var(--text3);font-variant-numeric:tabular-nums}
.fr-by b{color:var(--text);font-weight:600}
.fr-av{display:block;flex:none;width:30px;height:30px;margin-right:-6px;border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px var(--line2)}
.fr-av img{display:block;width:100%;height:100%}
/* the cover across the article and the rail, its colours spilling under it */
.fr-pc{position:relative;isolation:isolate;margin:0 0 64px}
.fr-pc img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;object-position:50% 50%;border-radius:var(--r);cursor:zoom-in;box-shadow:0 0 0 1px rgba(255,255,255,.07),0 40px 80px -40px rgba(0,0,0,.6)}

/* the body: a readable measure, a generous rhythm, the sections numbered */
.fr-b.nmd{font-size:15px;line-height:1.95;color:var(--text2)}
.fr-b.nmd p{margin:0 0 20px}
.fr-b.nmd strong{color:var(--text);font-weight:600}
.fr-b.nmd a{color:var(--accent-text);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);text-underline-offset:3px;transition:text-decoration-color .2s linear}
.fr-b.nmd a:hover{text-decoration-color:currentColor}
.fr-b.nmd h2.nmd-h{margin:68px 0 18px;font-size:22px;line-height:1.45;letter-spacing:-.02em;color:var(--text);scroll-margin-top:88px}
.fr-b.nmd h2.nmd-h[data-n]::before{content:attr(data-n);display:block;margin-bottom:12px;padding-right:60px;width:max-content;font:600 13px/1 "SF Mono","JetBrains Mono",ui-monospace,Menlo,monospace;letter-spacing:.14em;color:var(--accent-text);background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 55%,transparent),transparent) no-repeat right 50%/48px 1px}
.fr-b.nmd h3.nmd-h{margin:36px 0 10px;font-size:15px;color:var(--text);scroll-margin-top:88px}
.fr-b.nmd>h2.nmd-h:first-child{margin-top:0}
.fr-b.nmd .nmd-ul{margin:0 0 22px;padding-left:0;list-style:none}
.fr-b.nmd .nmd-ul>li{position:relative;margin:9px 0;padding-left:22px}
.fr-b.nmd .nmd-ul>li::before{content:"";position:absolute;left:5px;top:.78em;width:6px;height:6px;border-radius:2px;rotate:45deg;background:var(--accent-text)}
.fr-b.nmd .nmd-ol{margin:0 0 22px;padding-left:0;list-style:none;counter-reset:frstep}
.fr-b.nmd .nmd-ol>li{position:relative;margin:12px 0;padding-left:42px;counter-increment:frstep}
.fr-b.nmd .nmd-ol>li::before{content:counter(frstep);position:absolute;left:0;top:.2em;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.fr-b.nmd .nmd-q{margin:0 0 22px;padding:16px 20px;border-radius:14px;background:var(--fill4);color:var(--text2)}
.fr-b.nmd .nmd-fig{margin:36px 0}
.fr-b.nmd .nmd-fig img{border-radius:18px;border:1px solid var(--line);box-shadow:0 24px 48px -32px rgba(0,0,0,.5)}
.fr-b.nmd .nmd-cap{margin-top:12px;text-align:center;color:var(--text3)}
.fr-b.nmd img{cursor:zoom-in}
.fr-b.nmd .nmd-code,.fr-b.nmd .nmd-cap,.fr-b.nmd .nmd-t,.fr-b.nmd .nmd-pre{font-size:13px}
.fr-b.nmd .nmd-code{padding:2px 7px;border-radius:6px;background:var(--fill4);color:var(--text)}
.fr-b.nmd .nmd-hr{margin:44px 0}

/* the article's foot: its tags and the link, the articles before and after it, others of its column */
.fr-end{margin-top:64px;padding-top:28px;border-top:1px solid var(--line)}
.fr-eh{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fr-eh .btn{height:34px;padding:0 14px;border-radius:999px;font-size:13px}
.fr-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:32px}
.fr-nx{display:flex;align-items:center;gap:14px;min-width:0;padding:12px 18px 12px 12px;border-radius:var(--r);border:1px solid var(--card-edge);background:var(--card);box-shadow:var(--card-sh);transition:box-shadow 350ms var(--ease),translate 350ms var(--magic)}
.fr-nx:hover{box-shadow:var(--card-sh),var(--card-sh-h);translate:0 -2px}
.fr-nx.next{flex-direction:row}
.fr-nx.none{display:none}
.fr-nxv{flex:none;width:120px;aspect-ratio:16/9;border-radius:11px;overflow:hidden;background:var(--fr-ink)}
.fr-nxv img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.fr-nxb{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.fr-nxb small{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--text3)}
.fr-nxb small i{display:inline-flex;font-style:normal}
.fr-nxb small .bk .ic{rotate:180deg}
.fr-nxb b{font-size:15px;font-weight:600;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.fr-same{margin-top:44px}
.fr-sh{display:flex;align-items:center;gap:8px;margin-bottom:16px;font-size:13px;font-weight:600;color:var(--text)}
.fr-sh .ic{color:var(--accent-text)}
.fr-sg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fr-mini{display:flex;flex-direction:column;gap:10px;min-width:0}
.fr-mv{display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--fr-ink)}
.fr-mv img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;transition:scale 640ms var(--magic)}
.fr-mini:hover .fr-mv img{scale:1.05}
.fr-mini b{font-size:15px;font-weight:600;line-height:1.5;color:var(--text);overflow-wrap:anywhere;transition:color .2s linear}
.fr-mini:hover b{color:var(--accent-text)}
.fr-mini time{margin-top:-4px;font-size:13px;color:var(--text3);font-variant-numeric:tabular-nums}

/* the contents: beside the article while there is room, numbered like its sections */
.fr-rail{position:sticky;top:92px;display:flex;flex-direction:column;gap:20px}
/* the contents and the reading, as a shooting star down a constellation (frSpy): each section a star on a faint dotted
   line; the stars passed are lit and the line behind the reader glows; the one being read is larger and twinkles; the
   reader a small shooting star whose tail points back the way it came while it moves, shedding a little stardust */
.fr-toc{display:flex;flex-direction:column;font-size:13px}
.fr-tt{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px;padding-left:26px}
.fr-tt b{font-weight:600;color:var(--text)}
.fr-pct{color:var(--text3);font-variant-numeric:tabular-nums;transition:color var(--t-slow) var(--ease)}
.fr-pct.done{color:var(--accent-text)}
.fr-tl{--star:#d9dbff;--glow:rgba(140,146,255,.75);--star-clip:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);
  position:relative;isolation:isolate;display:flex;flex-direction:column;gap:2px}
:root[data-theme="light"] .fr-tl{--star:var(--accent);--glow:rgba(91,95,217,.35)}
.fr-tk{position:absolute;z-index:-1;left:7.5px;top:0;bottom:0;width:1px;background:repeating-linear-gradient(180deg,var(--line3) 0 2px,transparent 2px 7px)}
.fr-tf{position:absolute;z-index:-1;left:7px;top:0;width:2px;height:var(--y,0);border-radius:1px;
  background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--accent) 75%,transparent) 22%,var(--star));box-shadow:0 0 8px var(--glow)}
/* the shooting star: a bright point with a tail behind it (above while reading on, below while going back), the tail
   showing only while it moves */
.fr-kn{position:absolute;z-index:2;left:8px;top:var(--y,0);width:0;height:0;pointer-events:none}
.fr-kn b{position:absolute;left:-7px;top:-7px;width:14px;height:14px;background:radial-gradient(circle,#fff 0 22%,var(--star) 60%);clip-path:var(--star-clip);
  filter:drop-shadow(0 0 3px var(--glow));transform:rotate(var(--r,0deg))}
.fr-kn::before{content:"";position:absolute;left:-1px;bottom:0;width:2px;height:34px;border-radius:1px;background:linear-gradient(0deg,var(--star),transparent);
  opacity:0;transform-origin:50% 100%;transition:opacity var(--t-slow) var(--ease)}
.fr-kn::after{content:"";position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,var(--glow),transparent 70%)}
.fr-tl.mv .fr-kn::before{opacity:.9}
.fr-tl[data-dir="up"] .fr-kn::before{transform:rotate(180deg)}
/* the sections' stars */
.fr-ti{position:relative;display:flex;gap:10px;padding:7px 0 7px 26px;color:var(--text3);line-height:1.5;transition:color 280ms var(--ease),translate 350ms var(--magic)}
.fr-ti::before,.fr-ti::after{content:"";position:absolute;left:8px;top:50%;translate:-50% -50%;pointer-events:none}
.fr-ti::before{width:5px;height:5px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line3);transition:width 350ms var(--magic),height 350ms var(--magic)}
.fr-ti::after{z-index:-1;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle,var(--glow),transparent 68%);opacity:0;scale:.6;transition:opacity 280ms var(--ease),scale 350ms var(--magic)}
.fr-ti.past::before,.fr-ti.on::before{border-radius:0;box-shadow:none;clip-path:var(--star-clip)}
.fr-ti.past::before{width:9px;height:9px;background:var(--star);opacity:.85}
.fr-ti.past::after{opacity:.25;scale:.7}
.fr-ti.on::before{width:15px;height:15px;background:radial-gradient(circle,#fff 0 20%,var(--star) 58%);animation:frtw 2.8s ease-in-out infinite}
.fr-ti.on::after{opacity:.9;scale:1;animation:frhalo 2.8s ease-in-out infinite}
@keyframes frtw{50%{transform:scale(.8);opacity:.7}}
@keyframes frhalo{50%{opacity:.5;scale:1.2}}
.fr-ti em{flex:none;width:20px;font-style:normal;font-family:"SF Mono","JetBrains Mono",ui-monospace,Menlo,monospace;font-variant-numeric:tabular-nums;opacity:.75}
.fr-ti.sub{padding-left:56px}
.fr-ti.sub::before{width:3px;height:3px}
.fr-ti.past{color:var(--text2)}
.fr-ti.on{color:var(--accent-text);translate:3px 0}
.fr-ti.on em{opacity:1}
.fr-ti:hover{color:var(--text)}
/* stardust: a speck that drifts off and fades */
.fr-sp{position:absolute;z-index:1;left:8px;width:6px;height:6px;margin:-3px 0 0 -3px;background:var(--star);clip-path:var(--star-clip);pointer-events:none;animation:frsp .9s ease-out forwards}
@keyframes frsp{0%{opacity:1;transform:translate(0,0) scale(var(--s,1))}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.2) rotate(90deg)}}
.fr-totop{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-left:26px;padding:0;border:0;background:none;color:var(--text3);font-size:13px;transition:color .2s linear}
.fr-totop:hover{color:var(--text)}

/* ---- the body's blocks (noticemd.js), wherever a body is shown ---- */
/* code: its own frame, scrolled inside; a label bar over it when it has one, the copy button in it */
.nmd .nmd-pre{position:relative;margin:0 0 22px;padding:16px 56px 16px 18px;border-radius:14px;background:var(--fill4);overflow-x:auto;font:13px/1.8 "SF Mono","JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;color:var(--text);overflow-wrap:normal;tab-size:2}
.nmd .nmd-pre code{font:inherit;white-space:pre}
.nmd .nmd-cb{margin:0 0 22px;border-radius:14px;background:var(--fill4);overflow:hidden}
.nmd .nmd-cbh{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 8px 0 16px;border-bottom:1px solid var(--line);background:var(--sunk);font:13px/1.5 "SF Mono","JetBrains Mono",ui-monospace,Menlo,monospace;color:var(--text2)}
.nmd .nmd-cbh::before{content:"";width:15px;height:15px;flex:none;background:var(--accent-text);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M17 8L18.84 9.85C19.61 10.63 20 11.02 20 11.5C20 11.98 19.61 12.37 18.84 13.15L17 15' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M7 8L5.16 9.85C4.39 10.63 4 11.02 4 11.5C4 11.98 4.39 12.37 5.16 13.15L7 15' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M14.5 4L9.5 20' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M17 8L18.84 9.85C19.61 10.63 20 11.02 20 11.5C20 11.98 19.61 12.37 18.84 13.15L17 15' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M7 8L5.16 9.85C4.39 10.63 4 11.02 4 11.5C4 11.98 4.39 12.37 5.16 13.15L7 15' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M14.5 4L9.5 20' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>") center/contain no-repeat}
.nmd .nmd-cb .nmd-pre{margin:0;border:0;border-radius:0;background:none;padding-right:18px}
/* a labelled block holds words people say or a short config: its lines wrap instead of scrolling */
.fr-b.nmd .nmd-cb .nmd-pre code{white-space:pre-wrap;overflow-wrap:anywhere}
.fr-cp{position:absolute;top:10px;right:10px;z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;border:0;background:var(--fill3);color:var(--text2);transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
.fr-cp:hover{color:var(--text);background:var(--fill2)}
.nmd .nmd-cbh .fr-cp{position:static;margin-left:auto;width:28px;height:28px}
/* tables */
.nmd .nmd-tw{margin:0 0 24px;border-radius:var(--r);border:1px solid var(--card-edge);background:var(--card);box-shadow:var(--card-sh);overflow-x:auto}
.nmd .nmd-t{width:100%;border-collapse:collapse;font-size:13px;line-height:1.7;overflow-wrap:normal}
.nmd .nmd-t th,.nmd .nmd-t td{padding:12px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.nmd .nmd-t th{font-weight:600;color:var(--text2);background:var(--sunk);white-space:nowrap}
.nmd .nmd-t td{min-width:88px}
.nmd .nmd-t tr:last-child td{border-bottom:0}
.nmd .nmd-t td:first-child{color:var(--text);font-weight:600}
.nmd .nmd-t tbody tr{transition:background .2s linear}
.nmd .nmd-t tbody tr:hover{background:var(--hover)}
.nmd .nmd-t .nmd-r{text-align:right;font-variant-numeric:tabular-nums}
.nmd .nmd-t .nmd-c{text-align:center}
/* callouts: 要点 the article in brief, 提示, 注意, 说明 (the sources) quietest */
.nmd .nmd-co{--k:var(--accent-text);--kb:var(--accent);position:relative;margin:0 0 24px;padding:18px 22px 18px;border-radius:18px;border:1px solid color-mix(in srgb,var(--kb) 26%,var(--line));background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--kb) 11%,transparent),transparent 58%),color-mix(in srgb,var(--kb) 4%,var(--surface))}
.nmd .nmd-co-tip{--k:var(--ok);--kb:var(--ok)}
.nmd .nmd-co-warn{--k:var(--warn);--kb:var(--warn)}
.nmd .nmd-co-note{--k:var(--text2);--kb:var(--text3);border-color:var(--line);background:var(--sunk)}
.nmd .nmd-co>:last-child{margin-bottom:0}
.nmd .nmd-co p{margin:0 0 10px}
.nmd .nmd-co .nmd-cot{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:13px;font-weight:600;color:var(--k);letter-spacing:.02em}
.nmd .nmd-co .nmd-cot::before{content:"";width:28px;height:28px;flex:none;border-radius:9px;background:color-mix(in srgb,var(--kb) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kb) 26%,transparent);-webkit-mask:none;mask:none}
.nmd .nmd-co .nmd-cot::after{content:"";position:absolute;left:6px;top:50%;margin-top:-8px;width:16px;height:16px;background:var(--k);-webkit-mask:var(--ki) center/contain no-repeat;mask:var(--ki) center/contain no-repeat}
.nmd .nmd-co-key{--ki:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M11 6L21 6' stroke='black' stroke-linecap='round' stroke-width='1.5'/><path d='M11 12L21 12' stroke='black' stroke-linecap='round' stroke-width='1.5'/><path d='M11 18L21 18' stroke='black' stroke-linecap='round' stroke-width='1.5'/><path d='M3 7.39C3 7.39 4 8.04 4.5 9C4.5 9 6 5.25 8 4' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M3 18.39C3 18.39 4 19.04 4.5 20C4.5 20 6 16.25 8 15' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>")}
.nmd .nmd-co-tip{--ki:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M8 16.5C6.77 15.4 6 13.78 6 12C6 8.69 8.69 6 12 6C15.31 6 18 8.69 18 12C18 13.78 17.23 15.4 16 16.5' stroke='black' stroke-linecap='round' stroke-width='1.5'/><path d='M12 12V16.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M9.5 19H14.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M10.5 21.5H13.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M3.5 12H2.5M5.98 5.98L5.23 5.23M18.02 5.98L18.77 5.23M21.5 12H20.5M12 2.5V3.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>")}
.nmd .nmd-co-note{--ki:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><circle cx='12' cy='12' r='10' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M12 16V12' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M12.13 8.25H12M12.25 8.25C12.25 8.11 12.14 8 12 8C11.86 8 11.75 8.11 11.75 8.25C11.75 8.39 11.86 8.5 12 8.5C12.14 8.5 12.25 8.39 12.25 8.25Z' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>")}
.nmd .nmd-co-warn{--ki:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M13.92 21H10.08C5.44 21 3.13 21 2.28 19.49C1.42 17.99 2.61 15.99 4.98 12L6.9 8.75C9.18 4.92 10.31 3 12 3C13.69 3 14.82 4.92 17.1 8.75L19.02 12C21.39 15.99 22.58 17.99 21.72 19.49C20.87 21 18.56 21 13.92 21Z' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M12 9V13' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/><path d='M12.13 16.75H12M12.25 16.75C12.25 16.89 12.14 17 12 17C11.86 17 11.75 16.89 11.75 16.75C11.75 16.61 11.86 16.5 12 16.5C12.14 16.5 12.25 16.61 12.25 16.75Z' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>")}
.nmd .nmd-co .nmd-ul{margin:0;padding-left:0;list-style:none}
.nmd .nmd-co .nmd-ul>li{position:relative;margin:7px 0;padding-left:26px}
.nmd .nmd-co .nmd-ul>li::before{content:"";position:absolute;left:0;top:.42em;width:16px;height:16px;border-radius:50%;background:color-mix(in srgb,var(--kb) 18%,transparent);opacity:1;rotate:none}
.nmd .nmd-co .nmd-ul>li::after{content:"";position:absolute;left:3px;top:calc(.42em + 3px);width:10px;height:10px;background:var(--k);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 14L8.5 17.5L19 6.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 14L8.5 17.5L19 6.5' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/></svg>") center/contain no-repeat}
.nmd .nmd-co-warn .nmd-ul>li::after{-webkit-mask:none;mask:none;left:6px;top:calc(.42em + 6px);width:4px;height:4px;border-radius:50%}
.nmd .nmd-co-note .nmd-ul>li::after{-webkit-mask:none;mask:none;left:6px;top:calc(.42em + 6px);width:4px;height:4px;border-radius:50%}
.fr-b.nmd .nmd-co-key{padding:22px 24px;border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:radial-gradient(90% 120% at 100% 0%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 60%),radial-gradient(70% 90% at 0% 100%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 70%),var(--surface);box-shadow:0 24px 48px -36px color-mix(in srgb,var(--accent) 70%,transparent)}
.fr-b.nmd .nmd-co-note{font-size:13px;line-height:1.85}
/* figures in a row */
.nmd .nmd-stats{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:14px;margin:0 0 26px}
.nmd .nmd-st{position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 20px 18px;border-radius:var(--r);border:1px solid var(--card-edge);box-shadow:var(--card-sh);background:radial-gradient(130% 110% at 0% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 55%),var(--surface);overflow:hidden}
.nmd .nmd-stv{font-size:34px;font-weight:600;line-height:1.15;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--text);background:linear-gradient(170deg,var(--text) 35%,var(--accent-text));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.nmd .nmd-stl{font-size:13px;line-height:1.6;color:var(--text);font-weight:500}
.nmd .nmd-stn{font-size:13px;line-height:1.55;color:var(--text3)}
/* commands: where, the command, what it does */
.nmd .nmd-cmds{display:grid;grid-template-columns:minmax(96px,max-content) max-content minmax(0,1fr);margin:0 0 24px;border-radius:var(--r);border:1px solid var(--card-edge);background:var(--card);box-shadow:var(--card-sh);overflow:hidden}
/* the rows share the block's columns, so the commands and what they do line up */
.nmd .nmd-cmd{position:relative;grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:18px;padding:14px 58px 14px 18px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;transition:background .2s linear}
.nmd .nmd-cmd:hover{background:var(--hover)}
.nmd .nmd-cmdt{grid-column:1}.nmd .nmd-cmdc{grid-column:2;justify-self:start}.nmd .nmd-cmdn{grid-column:3}
.nmd .nmd-cmds:not(:has(.nmd-cmdt)){grid-template-columns:max-content minmax(0,1fr)}
.nmd .nmd-cmds:not(:has(.nmd-cmdt)) .nmd-cmdc{grid-column:1}.nmd .nmd-cmds:not(:has(.nmd-cmdt)) .nmd-cmdn{grid-column:2}
.nmd .nmd-cmd:first-child{border-top:0}
.nmd .nmd-cmdt{color:var(--text);font-weight:600}
.nmd .nmd-cmdc{padding:4px 11px;border-radius:9px;border:1px solid color-mix(in srgb,var(--accent) 26%,transparent);background:var(--accent-soft);font:13px/1.5 "SF Mono","JetBrains Mono",ui-monospace,Menlo,monospace;color:var(--accent-text);white-space:nowrap}
.nmd .nmd-cmdn{color:var(--text3)}
.nmd .nmd-cmd .fr-cp{top:50%;translate:0 -50%}

@media (max-width:1100px){.fr-pp.has-toc{display:block}.fr-pp.has-toc>*{max-width:720px;margin-left:auto;margin-right:auto}.fr-pp.has-toc>.fr-pc{max-width:none}.fr-rail{display:none}}
@container frm (max-width:860px){.fr-lv{aspect-ratio:4/3}.fr-lead{gap:28px}.fr-lead p{-webkit-line-clamp:3}}
@container frm (max-width:760px){.fr-row{grid-template-columns:minmax(0,1fr) 168px;gap:24px}}
@container frm (max-width:540px){.fr-lead{grid-template-columns:minmax(0,1fr);gap:20px;padding-bottom:30px}.fr-lv{aspect-ratio:16/10}}
@container frm (max-width:520px){
  .fr-row{grid-template-columns:minmax(0,1fr) 112px;gap:16px;align-items:start;padding:20px 0}
  .fr-rv{border-radius:10px}
  .fr-row p{-webkit-line-clamp:3}
}
@media (max-width:720px){.nmd .nmd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fr-sg{grid-template-columns:repeat(2,minmax(0,1fr))}.fr-sg .fr-mini:nth-child(3){display:none}}
@media (max-width:640px){
  .fr-hd{flex-direction:column;align-items:flex-start}
  .fr-cols,.fr-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 16px}.fr-cols{margin-bottom:24px}
    .fr-ph h1{font-size:22px}.fr-sum,.fr-b.nmd,.fr-b.nmd h3.nmd-h,.fr-nxb b,.fr-mini b{font-size:15px}.fr-b.nmd h2.nmd-h{font-size:22px}.nmd .nmd-stv{font-size:22px}
  .fr-pc{margin-bottom:44px}.fr-pc img{border-radius:18px;aspect-ratio:16/9}
  .fr-nxv{width:96px}
  .fr-sg{grid-template-columns:minmax(0,1fr)}.fr-sg .fr-mini:nth-child(3){display:flex}
  .nmd .nmd-cmds,.nmd .nmd-cmds:not(:has(.nmd-cmdt)){grid-template-columns:minmax(0,1fr)}.nmd .nmd-cmd{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-right:56px}
  .nmd .nmd-stats{grid-template-columns:minmax(0,1fr)}
}
/* serene 0.8x Apple Magic Move entrance when switching columns or tags */
.fr-in{animation:frIn 460ms var(--magic) both;animation-delay:var(--d,0ms)}
@keyframes frIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fr-in{animation:none!important}.fr-ti.on::before,.fr-ti.on::after{animation:none}.fr-ti.on{translate:none}.fr-nx:hover{translate:none}.fr-lead:hover .fr-lv img,.fr-row:hover .fr-rv img,.fr-mini:hover .fr-mv img{scale:none}}
