/* Stage 27: the public pages (/editor, /es/editor, /pt-br/editor; editor-next/public.html).
   Below the editor sits the page's search text, in the page's own HTML. Until a
   project is open (src/public.js adds html.nx-open) the page scrolls to it, on
   phones too (the phone editor is pinned to the screen only once a project is
   open); after that it is hidden and the editor holds the screen as on app.html. */
html.nx-public:not(.nx-open),html.nx-public:not(.nx-open) body{height:auto}
/* While the page scrolls, a scrollbar that takes room (Windows, Linux) would make
   100vw wider than the page: the editor takes the page's width instead. */
html.nx-public:not(.nx-open) .ed.nx-app:not(.ph){width:100%;min-width:calc(1280px - (100vw - 100%))}
/* svh: the small viewport, which doesn't change while iOS hides its toolbar on
   scroll, so neither the editor nor the text below it moves mid-scroll. */
html.nx-public .nx-gate{height:100vh;height:100svh}
html.nx-public:not(.nx-open) .ed.nx-app.ph{position:relative;top:0;height:100vh;height:100svh}
html.nx-public.nx-open .nx-info-wrap{display:none}

.nx-info-wrap{border-top:1px solid var(--line);background:var(--app-bg);color:var(--fg);font-family:var(--font-sans);font-size:15px;line-height:24px}
.nx-info__title,.nx-info{box-sizing:border-box;max-width:1120px;margin:0 auto;padding:0 24px}
.nx-info__title{padding-top:56px;font-size:28px;line-height:36px;font-weight:600;text-align:center}
.nx-info{padding-bottom:64px}
.nx-info>p:first-child{margin:8px 0 0;text-align:center;font-size:12px;line-height:16px;color:var(--fg-muted)}
.nx-info>p:nth-child(2){margin:16px 0 40px;text-align:center;font-size:17px;font-weight:600}
.nx-info h2{margin:48px 0 20px;font-size:22px;line-height:30px;font-weight:600;text-align:center}
.nx-info h3{margin:0 0 6px;font-size:16px;line-height:22px;font-weight:600}
.nx-info p{margin:0 0 12px;color:var(--fg-muted)}
.nx-info a{color:#8AB4F8;text-decoration:underline;text-underline-offset:2px}
.nx-info a:hover{color:#B3CCFA}
.nx-info a:focus-visible{outline:2px solid var(--focus,#8AB4F8);outline-offset:2px}
/* The feature cards and the FAQ: a grid of cards. */
.nx-info>div>div{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:20px}
.nx-info>div:not(:has(>div)){max-width:760px;margin:40px auto 0}
.nx-info>div:has(>div){display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.nx-info ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.nx-info ol li{display:flex;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:20px}
.nx-info ol li>span{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--on-accent,#fff);font-weight:600}
.nx-info>p:last-child{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px}
@media (max-width:699px){
  .nx-info__title{padding-top:40px;font-size:22px;line-height:30px}
  .nx-info,.nx-info__title{padding-left:16px;padding-right:16px}
  .nx-info>div:has(>div){grid-template-columns:1fr}
  .nx-info ol{grid-template-columns:1fr}
}
