/*
   The one site nav: ink top bar (brand · Explore Create Play Me · Connect), a section sub-nav, a phone bottom bar,
   and the public trust footer. Markup: scripts/build-nav-v0.mjs from lib/nlo-site-nav-v0.cjs. /menu.js only swaps
   Connect for your initial when you are signed in. Self-contained: pages that do not load /site.css look the same.
   Logical properties throughout; every tap target is at least 44px. Phone layout below 720px. */
:root { --n-ink: #0A0A0A; --n-paper: #FAFAFA; --n-dim: #A1A1AA; --n-dimP: #52525B; --n-line: #26262A; --n-lineP: #E4E4E7; --n-bg2: #F4F4F5; }

.nlo-top {
  position: sticky; inset-block-start: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  block-size: 64px; padding-inline: clamp(12px, 4vw, 48px);
  background: var(--n-ink); color: var(--n-paper);
  font: 500 15px/1 "Geist", system-ui, sans-serif;
}
.nlo-mark { display: inline-flex; align-items: center; min-block-size: 44px; text-decoration: none; margin-inline-end: auto; }
.nlo-mark .wordmark { block-size: 28px; inline-size: auto; display: block; }
.nlo-sections { display: flex; gap: 4px; }
.nlo-sections a {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding-inline: 14px; border-radius: 999px;
  color: var(--n-dim); text-decoration: none;
}
.nlo-sections a:hover, .nlo-sections a:focus-visible { color: var(--n-paper); }
.nlo-sections a[aria-current="page"] { color: var(--n-ink); background: var(--n-paper); }
.nlo-connect {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-block-size: 44px; min-inline-size: 44px; padding-inline: 18px; border-radius: 999px;
  background: var(--n-paper); color: var(--n-ink); text-decoration: none; font: 600 14px/1 "Geist", system-ui, sans-serif;
  border: 1.5px solid var(--n-paper); white-space: nowrap;
}
.nlo-connect:hover { opacity: .88; }
.nlo-connect.is-me { padding-inline: 0; inline-size: 44px; font-size: 17px; text-transform: uppercase; }
.nlo-top :focus-visible, .nlo-bottom :focus-visible, .nlo-sub :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* section sub-nav: wraps on a laptop, scrolls inside itself on a phone (the page never scrolls sideways) */
.nlo-sub { background: var(--n-paper); color: var(--n-ink); border-block-end: 1px solid var(--n-lineP); font: 500 14px/1.2 "Geist", system-ui, sans-serif; }
.nlo-sub-in { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-inline: clamp(8px, 4vw, 44px); max-inline-size: 1600px; }
.nlo-sub a { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding-inline: 10px; color: var(--n-dimP); text-decoration: none; border-block-end: 2px solid transparent; }
.nlo-sub a:hover { color: var(--n-ink); }
.nlo-sub a[aria-current="page"] { color: var(--n-ink); border-block-end-color: var(--n-ink); }
.nlo-sub .nlo-sub-home { font-weight: 700; color: var(--n-ink); }

/* phone bottom bar: Explore · Create (+) · Play · Me */
.nlo-bottom { display: none; }

/* public trust footer */
.nlo-foot {
  margin-block-start: 48px; padding: 24px clamp(16px, 4vw, 48px) 32px;
  background: var(--n-bg2); color: var(--n-ink); border-block-start: 1px solid var(--n-lineP);
  font: 400 14px/1.5 "Geist", system-ui, sans-serif;
}
.nlo-foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.nlo-foot nav a { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; color: var(--n-ink); text-decoration: underline; text-underline-offset: 3px; }
.nlo-foot .nlo-foot-home { font-weight: 700; }
.nlo-foot p { margin: 8px 0 0; color: var(--n-dimP); font-size: 13px; }

/* homepage: the generated links slot inside its own split nav */
nav.site .nlo-home-links a { display: inline-flex; align-items: center; min-block-size: 44px; }
nav.site .nlo-connect { min-block-size: 44px; }

/* landings (/explore /create /play /me /trust) */
.nlo-body { margin: 0; background: var(--n-paper); color: var(--n-ink); font: 400 16px/1.6 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.nlo-skip { position: absolute; inset-inline-start: -999px; inset-block-start: 0; background: var(--n-ink); color: var(--n-paper); padding: 8px 12px; z-index: 50; }
.nlo-skip:focus { inset-inline-start: 8px; }
.nlo-landing { inline-size: min(1080px, 100%); margin-inline: auto; padding: 32px clamp(16px, 4vw, 40px) 24px; box-sizing: border-box; }
.nlo-landing h1 { margin: 0 0 10px; font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.nlo-eyebrow { margin: 0 0 12px; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--n-dimP); }
.nlo-lead { margin: 0 0 28px; font-size: 18px; color: var(--n-dimP); max-inline-size: 60ch; }
.nlo-landing h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.nlo-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.nlo-card { border: 1px solid var(--n-lineP); border-radius: 14px; padding: 18px 18px 14px; background: #fff; min-inline-size: 0; scroll-margin-block-start: 80px; }
.nlo-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.nlo-card h3 a { color: inherit; text-underline-offset: 3px; }
.nlo-card h3 > a, .nlo-card h3 > span { display: inline-flex; align-items: center; min-block-size: 44px; }
.nlo-card p { margin: 0 0 8px; color: var(--n-dimP); overflow-wrap: anywhere; }
.nlo-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nlo-card-sub { font-size: 13px; font-weight: 600; color: var(--n-ink) !important; margin-block-start: 10px !important; }
.nlo-views { display: flex; flex-wrap: wrap; gap: 6px; }
.nlo-views a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 12px; border: 1px solid var(--n-lineP); border-radius: 999px; color: var(--n-ink); text-decoration: none; }
.nlo-badge { display: inline-block; font: 600 11px/1.6 "Geist Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 6px; border: 1px solid currentColor; }
.nlo-badge-live { color: #15803D; }
.nlo-badge-preview { color: #A16207; }
.nlo-badge-soon { color: var(--n-dimP); }
.nlo-badge-gate { color: #9F1239; }
.nlo-btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding-inline: 22px; border-radius: 999px; background: var(--n-ink); color: var(--n-paper); text-decoration: none; font-weight: 600; border: 1.5px solid var(--n-ink); }
.nlo-btn-ghost { background: transparent; color: var(--n-ink); }
.nlo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nlo-doors, .nlo-connect-box, .nlo-explain { margin: 0 0 28px; padding: 22px; border-radius: 18px; background: var(--n-ink); color: var(--n-paper); scroll-margin-block-start: 80px; }
.nlo-connect-box .nlo-btn { background: var(--n-paper); color: var(--n-ink); border-color: var(--n-paper); }
.nlo-connect-box .nlo-btn-ghost { background: transparent; color: var(--n-paper); }
.nlo-explain .nlo-btn { background: var(--n-paper); color: var(--n-ink); border-color: var(--n-paper); }
/* R5 (feat/clearer-landing-post-v0): the four big doors on /create; the rest sit under "More you can make" */
.nlo-doors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.nlo-doors li { scroll-margin-block-start: 80px; }
.nlo-doors a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; block-size: 100%; box-sizing: border-box; min-block-size: 120px; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--n-line); color: var(--n-paper); text-decoration: none; }
.nlo-doors a:hover, .nlo-doors a:focus-visible { border-color: var(--n-paper); }
.nlo-doors b { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; line-height: 1.1; }
.nlo-door-d { color: #D4D4D8; font-size: 15px; }
.nlo-doors .nlo-badge-preview { color: #FCD34D; }
.nlo-doors .nlo-badge-live { color: #86EFAC; }
.nlo-doors .nlo-badge-gate { color: #FDA4AF; }
.nlo-more h2 { margin-block-start: 8px; }
.nlo-explain p, .nlo-connect-box p { max-inline-size: 64ch; color: #D4D4D8; }

@media (max-width: 719px) {
  .nlo-sections { display: none; }
  .nlo-top { gap: 12px; block-size: 56px; }
  .nlo-mark .wordmark { block-size: 24px; }
  .nlo-sub-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nlo-sub-in::-webkit-scrollbar { display: none; }
  .nlo-sub a { white-space: nowrap; flex: none; }
  nav.site .links.nlo-home-links { display: none; }
  .nlo-bottom {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
    padding-block-end: env(safe-area-inset-bottom, 0px);
    background: var(--n-ink); color: var(--n-dim); border-block-start: 1px solid var(--n-line);
    font: 500 11px/1.1 "Geist", system-ui, sans-serif;
  }
  .nlo-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-block-size: 58px; color: inherit; text-decoration: none; }
  .nlo-bottom a[aria-current="page"] { color: var(--n-paper); }
  .nlo-bottom .nlo-b-create .nlo-b-ic { display: grid; place-items: center; inline-size: 40px; block-size: 30px; border-radius: 10px; background: var(--n-paper); color: var(--n-ink); }
  .nlo-bottom .nlo-b-create { color: var(--n-paper); }
  .nlo-bottom svg { display: block; }
  body { padding-block-end: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* a page shown inside a frame on someone's /@name page (posts.js sets html.nlo-embed for /page-wall): no site chrome */
.nlo-embed .nlo-top, .nlo-embed .nlo-sub, .nlo-embed .nlo-bottom, .nlo-embed .nlo-foot { display: none !important; }
.nlo-embed body { padding-block-end: 0 !important; }

/* Ask your AI (2026-10-05, lib/nlo-ask-ai-v0.cjs): the header control + the panel /ask-ai.js opens. The control is a
   plain link to the page's agent doc until the script runs; same box either way, so nothing moves when it loads. */
.nlo-ask {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-block-size: 44px; min-inline-size: 44px; padding-inline: 14px; border-radius: 999px; box-sizing: border-box;
  border: 1.5px solid var(--n-line); color: var(--n-paper); background: transparent; text-decoration: none;
  font: 600 14px/1 "Geist", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
}
.nlo-ask:hover, .nlo-ask:focus-visible { border-color: var(--n-paper); }
.nlo-ask .nlo-ask-ic { display: block; flex: none; }
.nlo-ask .nlo-ask-s { display: none; }
nav.site .nlo-ask { border-color: currentColor; color: inherit; }
.nlo-ask-dlg {
  inline-size: min(560px, calc(100vw - 24px)); max-inline-size: none; max-block-size: min(88dvh, 760px); box-sizing: border-box;
  margin: auto; padding: 0; border: 1px solid var(--n-lineP); border-radius: 18px; overflow: auto; overscroll-behavior: contain;
  background: var(--n-paper); color: var(--n-ink); font: 400 15px/1.5 "Geist", system-ui, sans-serif;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.nlo-ask-dlg::backdrop { background: rgba(10, 10, 10, .6); }
.nlo-ask-in { padding: 18px clamp(16px, 4vw, 24px) 20px; }
.nlo-ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nlo-ask-dlg h2 { margin: 6px 0 6px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.nlo-ask-dlg h3 { margin: 18px 0 6px; font-size: 14px; letter-spacing: .02em; }
.nlo-ask-lead { margin: 0 0 12px; color: var(--n-dimP); }
.nlo-ask-label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.nlo-ask-prompt {
  display: block; inline-size: 100%; box-sizing: border-box; min-block-size: 8.5em; resize: vertical; margin: 0;
  padding: 10px 12px; border: 1px solid var(--n-lineP); border-radius: 10px; background: #fff; color: var(--n-ink);
  font: 400 13px/1.5 "Geist Mono", ui-monospace, monospace; overflow-wrap: anywhere;
}
.nlo-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-start: 10px; }
.nlo-ask-copy, .nlo-ask-close {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px;
  border-radius: 999px; font: 600 15px/1 "Geist", system-ui, sans-serif; cursor: pointer;
}
.nlo-ask-copy { padding-inline: 24px; background: var(--n-ink); color: var(--n-paper); border: 1.5px solid var(--n-ink); }
.nlo-ask-close { flex: none; padding: 0; background: transparent; color: var(--n-ink); border: 1px solid var(--n-lineP); font-size: 24px; }
.nlo-ask-copy:focus-visible, .nlo-ask-close:focus-visible, .nlo-ask-dlg a:focus-visible, .nlo-ask-prompt:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 2px; }
.nlo-ask-status { margin: 0; font-size: 13px; color: var(--n-dimP); min-inline-size: 0; }
.nlo-ask-open { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.nlo-ask-open a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-block-size: 56px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--n-lineP); border-radius: 12px; background: #fff; color: var(--n-ink); text-decoration: none;
}
.nlo-ask-open a:hover { border-color: var(--n-ink); }
.nlo-ask-open small { color: var(--n-dimP); font-size: 12px; line-height: 1.3; }
.nlo-ask-small { margin: 8px 0 0; font-size: 13px; color: var(--n-dimP); }
.nlo-ask-links { margin: 6px 0 0; padding: 0; list-style: none; }
.nlo-ask-links a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--n-ink); text-underline-offset: 3px; }
/* starter chips in the Ask panel (less-is-more v0): plain questions, answered from /llms.txt */
.nlo-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px 8px; }
.nlo-ask-chip, .nlo-ask-back {
  display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1.2 "Geist", system-ui, sans-serif; background: #fff; color: var(--n-ink); border: 1px solid var(--n-lineP); text-align: start;
}
.nlo-ask-chip[aria-pressed="true"] { background: var(--n-ink); color: var(--n-paper); border-color: var(--n-ink); }
.nlo-ask-chip:focus-visible, .nlo-ask-back:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 2px; }
.nlo-ask-answer { margin-block: 4px 8px; padding: 10px 14px; border-inline-start: 3px solid var(--n-ink); background: #fff; border-radius: 8px; font-size: 14px; }
.nlo-ask-answer p { margin: 0; }
.nlo-ask-back { background: transparent; border-style: dashed; margin-block-end: 8px; }
/* /ai (Connect your AI) */
.nlo-ai-way { margin: 0 0 14px; }
.nlo-ai-way h2, .nlo-ai-two h2 { font-size: 20px; }
.nlo-ai-list { margin: 0 0 8px; padding-inline-start: 1.2em; color: var(--n-dimP); }
.nlo-ai-list li { margin-block-end: 6px; overflow-wrap: anywhere; }
.nlo-ai-list a { color: var(--n-ink); display: inline-flex; align-items: center; min-block-size: 44px; }
.nlo-ai-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0 0 14px; }
.nlo-ai .nlo-card-tags { margin: 0 0 20px; }
.nlo-ai .nlo-explain { margin-block-start: 14px; }
@media (max-width: 719px) {
  .nlo-ask { padding-inline: 10px; gap: 4px; }
  .nlo-ask .nlo-ask-l { display: none; }
  .nlo-ask .nlo-ask-s { display: inline; }
  .nlo-ask-dlg { inline-size: calc(100vw - 16px); max-block-size: calc(100dvh - 16px); border-radius: 14px; }
}
/* icon only when space runs out: the short label stays for screen readers and voice control (visually hidden) */
@media (max-width: 380px) {
  .nlo-ask { padding-inline: 0; inline-size: 44px; }
  .nlo-ask .nlo-ask-s { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 480px) {
  nav.site .nlo-ask { padding-inline: 0; inline-size: 44px; }
  nav.site .nlo-ask .nlo-ask-s { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* less-is-more v0: on the homepage the control is alone in the top bar, so it keeps its short label */
  nav.site .nlo-home-slot .nlo-ask { padding-inline: 12px; inline-size: auto; }
  nav.site .nlo-home-slot .nlo-ask .nlo-ask-s { position: static; inline-size: auto; block-size: auto; overflow: visible; clip-path: none; }
}
