/* neuxai theme.css — GENERATED by neux-ai scripts/ssr-theme.mjs:
   ssr-theme/chrome.css, then src/styles/explainers.css (the site's /topics/ pages load the same file). */
/* ───────────────────────────────────────────────────────────────────────────
   Neux chrome for the estate renderer's pages (/posts/ on neux.ai): the page
   shell, header, footer, buttons and the article. scripts/ssr-theme.mjs writes
   this, then src/styles/explainers.css, into the theme's static/css/theme.css.

   The site draws the same header and footer with inline styles
   (SiteHeader.astro, SiteFooter.astro — the drop's NavBar and FooterBar); the
   renderer's templates need classes, so every value here is the one those
   components set, and the hover states are the ones static-hover.css restores.
   Tokens come from static/css/tokens.css, the drop's own, exported verbatim.
   ─────────────────────────────────────────────────────────────────────────── */

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
.bb-shell { min-height: 100%; background: var(--surface-canvas); }

/* ── Header (NavBar) ─────────────────────────────────────────────────────── */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-hairline);
}
.nx-header-bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.nx-header-logo { display: inline-block; border: 0; margin-right: auto; }
.nx-header-logo img { display: block; height: 18px; width: auto; }
.nx-header-nav { display: flex; align-items: center; gap: var(--space-7); }
.nx-navlink {
  display: inline-block;
  padding-bottom: 4px;
  border: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color var(--dur-fast) var(--ease-standard);
}
.nx-navlink:hover { color: var(--text-primary); }
.nx-navlink[aria-current="page"] { color: var(--text-primary); background-image: var(--gradient-spectrum); }

/* ── Buttons (components/core/Button.jsx) ────────────────────────────────── */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-text);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-body);
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), opacity var(--dur-instant) linear;
}
.nx-btn:active { opacity: var(--press-opacity); }
.nx-btn-sm { height: 32px; padding: 0 var(--space-4); font-size: var(--fs-body-sm); }
.nx-btn-lg { height: 54px; padding: 0 var(--space-8); font-size: var(--fs-body); }
.nx-btn-outline { background: transparent; color: var(--text-primary); border-color: var(--line-strong); }
.nx-btn-outline:hover { color: var(--text-primary); border-color: var(--text-primary); }
.nx-btn-solid { background: var(--surface-invert); color: var(--text-invert); border-color: var(--surface-invert); }
.nx-btn-solid:hover { color: var(--text-invert); background: var(--slate-100); border-color: var(--slate-100); }
.nx-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-9); }

/* ── Footer (FooterBar) ──────────────────────────────────────────────────── */
.nx-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line-hairline);
  background: var(--surface-canvas) var(--gradient-spectrum) left top / 100% 1px no-repeat;
}
.nx-footer-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-10) var(--page-pad) var(--space-9);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-9);
  align-items: start;
}
.nx-footer-legal { font-size: var(--fs-body-sm); color: var(--text-secondary); line-height: var(--lh-body); }
.nx-footer-reg { margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-faint); line-height: 1.8; }
.nx-footer-marks { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.nx-footer-marks img { display: block; width: auto; }
.nx-footer-marks img[height="34"] { height: 34px; }
/* The badge links to Microsoft for Startups, as the site's does: no underline, a block. */
.nx-footer-badge-link { border: 0; display: block; }
.nx-footer-badge { height: 120px; border-radius: var(--radius-2); }
.nx-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-8); align-items: start; }
.nx-footer-title { margin-bottom: var(--space-5); font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-faint); }
.nx-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.nx-footer-cols a { border: 0; font-size: var(--fs-body-sm); color: var(--text-secondary); }
/* A footer item the design does not link (Products → Concept Kernel): the same type, as text. */
.nx-footer-cols span { font-size: var(--fs-body-sm); color: var(--text-secondary); }
.nx-footer-cols a:hover { color: var(--text-primary); }

/* ── The article ─────────────────────────────────────────────────────────── */
/* Compound selectors: explainers.css comes AFTER this file in theme.css, and its
   plain .nx-x-rail (a hairline, section-y padding) would otherwise win. */
.nx-x-rail.nx-post-head { border-top: 0; padding-top: clamp(56px, 7vw, 104px); padding-bottom: var(--space-9); }
.nx-post-intro { display: grid; gap: var(--space-6); min-width: 0; }
.nx-post-intro .nx-x-lede { margin-top: 0; }
.nx-x-rail.nx-post-body { border-top: 0; padding-top: 0; }

/* The body as the board's editor produced it: prose at the 68ch measure, headings
   one step down the drop's scale, rules and quotes as hairlines, pictures in black
   and white (the brand ships no photography; drop readme, Imagery). */
.nx-prose { min-width: 0; max-width: var(--measure-prose); font-size: var(--fs-body-lg); color: var(--text-secondary); }
.nx-prose > * + * { margin-top: var(--space-6); }
.nx-prose h2, .nx-prose h3, .nx-prose h4 { color: var(--text-primary); }
.nx-prose h2 { font-size: var(--fs-headline); margin-top: var(--space-10); }
.nx-prose h3 { font-size: var(--fs-title); letter-spacing: var(--tracking-title); margin-top: var(--space-9); }
.nx-prose h4 { font-size: var(--fs-subtitle); margin-top: var(--space-8); }
.nx-prose strong, .nx-prose b { color: var(--text-primary); font-weight: var(--fw-medium); }
.nx-prose ul, .nx-prose ol { padding-left: var(--space-6); }
.nx-prose li + li { margin-top: var(--space-3); }
.nx-prose blockquote { margin-left: 0; margin-right: 0; padding-left: var(--space-6); border-left: 1px solid var(--line-strong); color: var(--text-primary); }
.nx-prose hr { margin: var(--space-10) 0; }
.nx-prose img { display: block; height: auto; filter: grayscale(1); border-radius: var(--radius-card); }
.nx-prose figure { margin-left: 0; margin-right: 0; }
.nx-prose figcaption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); }
.nx-prose pre { overflow-x: auto; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--line-hairline); border-radius: var(--radius-card); font-size: var(--fs-body-sm); }
.nx-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); }
.nx-prose th, .nx-prose td { padding: var(--space-3) var(--space-4) var(--space-3) 0; text-align: left; border-bottom: 1px solid var(--line-hairline); }
.nx-prose th { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: var(--fw-regular); color: var(--text-faint); }
.nx-post-lead { margin: 0 0 var(--space-8); }

/* ── Responsive (the site's own breakpoints, static-hover.css) ─────────────
   Narrower than the one-row header: wordmark and action share the first row,
   the links take a second, and the bar stops being sticky. */
@media (max-width: 860px) {
  .nx-header { position: static; }
  .nx-header-bar { height: auto; flex-wrap: wrap; row-gap: var(--space-3); padding-top: 14px; padding-bottom: 14px; }
  .nx-header-nav { order: 2; width: 100%; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
}
@media (max-width: 760px) {
  .nx-post-body > [aria-hidden="true"] { display: none; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Explainers — the list of published posts, and the one stylesheet for BOTH
   surfaces that draw it:

     /topics/, /topics/<field>/   this site's pages (ExplainersView.astro)
     /posts/, /posts/<slug>/      the estate renderer, themed by ssr-theme/ —
                                  scripts/ssr-theme.mjs writes this file into
                                  the theme's theme.css, after chrome.css

   One file, so a row on /topics/ and a row on /posts/ cannot drift apart. It is
   class-based rather than inline like the rest of src/: the renderer's Jinja
   templates and this site's <template> rows must share the same markup, and
   classes are the contract between them.

   Every value is a drop token. The patterns are the drop's own: the home
   screen's Row (a 180px mono rail beside the content, opened by a hairline or,
   for a sequence, the spectrum rule), Eyebrow for labels, Tag for the filter,
   ProjectCard for a row. The drop has no evidence meter; this one is drawn in
   the system's terms — 2px segments, monochrome, mono label — and uses no
   state colour, because those exist for attestation status only.
   ─────────────────────────────────────────────────────────────────────────── */

.nx-x-page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }

/* ── Row: the rail and the content beside it ─────────────────────────────── */
.nx-x-rail {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line-hairline);
}
/* A list of explainers is a sequence, newest first: it earns the spectrum rule. */
.nx-x-rail--spectrum {
  border-top: 0;
  background-image: var(--gradient-spectrum);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: left top;
  padding-top: var(--space-9);
}
.nx-x-aside { position: sticky; top: 104px; display: grid; gap: var(--space-8); min-width: 0; }
.nx-x-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-label);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--text-muted);
}
a.nx-x-label { border: 0; }
a.nx-x-label:hover { color: var(--text-primary); }

/* ── Page opening: heading, lede, filter ─────────────────────────────────── */
.nx-x-head { padding: clamp(56px, 7vw, 104px) 0 var(--space-10); }
.nx-x-label + .nx-x-h1 { margin-top: var(--space-6); }
.nx-x-h1 { font-size: var(--fs-display-2); max-width: 20ch; }
.nx-x-lede { margin-top: var(--space-6); font-size: var(--fs-body-lg); color: var(--text-secondary); max-width: var(--measure-lede); }

/* Tag (components/core/Tag.jsx), as a link: every filter value is its own page,
   so filtering works with no JavaScript. A field with nothing published yet is
   still shown — it is part of what the site covers — at the faint value. */
.nx-x-filter { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-9); }
.nx-x-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--space-4);
  font-family: var(--font-text);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-control);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.nx-x-tag:hover { color: var(--text-primary); border-color: var(--line-strong); }
.nx-x-tag.is-empty { color: var(--text-faint); border-color: var(--line-hairline); }
.nx-x-tag.is-on,
.nx-x-tag.is-on:hover { color: var(--text-invert); background: var(--surface-invert); border-color: var(--surface-invert); }

/* ── A row (components/content/ProjectCard.jsx, as a link) ───────────────── */
.nx-x-list { border-bottom: 1px solid var(--line-hairline); }
.nx-x-row {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line-hairline);
  transition: border-color var(--dur-base) var(--ease-standard);
}
.nx-x-row:hover { border-top-color: var(--line-strong); }
.nx-x-link { display: flex; gap: var(--space-8); align-items: flex-start; justify-content: space-between; border: 0; color: inherit; }
.nx-x-link:hover { color: inherit; }
.nx-x-text { display: grid; gap: var(--space-4); min-width: 0; }
.nx-x-field,
.nx-x-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.nx-x-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-title);
  line-height: var(--lh-title);
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-standard);
}
.nx-x-link:hover .nx-x-title { color: var(--text-accent); }
.nx-x-dek { font-size: var(--fs-body-sm); color: var(--text-secondary); max-width: 58ch; }
.nx-x-meta { display: flex; flex-wrap: wrap; gap: var(--space-5); }
/* The brand has no photography; a picture that must appear is set in black and
   white (drop readme, Imagery). Plate corners, a hairline, no shadow. */
.nx-x-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
  filter: grayscale(1);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
}

/* ── The evidence meter ──────────────────────────────────────────────────── */
.nx-x-meter { display: grid; gap: var(--space-3); }
.nx-x-meter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.nx-x-bars { display: inline-flex; gap: 3px; }
.nx-x-bar { width: 16px; height: 2px; background: var(--line-default); }
.nx-x-bar.is-on { background: var(--text-primary); }
.nx-x-level { color: var(--text-primary); }
.nx-x-note { font-size: var(--fs-body-sm); color: var(--text-secondary); max-width: 58ch; }

/* "How we rate evidence", in the rail. */
.nx-x-legend { display: grid; gap: var(--space-5); }
.nx-x-legend .nx-x-note { font-size: var(--fs-caption); color: var(--text-muted); }

/* ── States: loading, nothing yet, could not load ─────────────────────────
   Each state box sits INSIDE a plain wrapper that carries `hidden`, so no
   display rule here can ever show two states at once. */
.nx-x-loading { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.nx-x-state { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-7) 0; border-top: 1px solid var(--line-hairline); border-bottom: 1px solid var(--line-hairline); }
.nx-x-state-title { font-size: var(--fs-subtitle); font-weight: var(--fw-medium); letter-spacing: var(--tracking-title); color: var(--text-primary); }
.nx-x-state-body { font-size: var(--fs-body-sm); color: var(--text-secondary); }

/* "All explainers →": the drop's ghost link, arrow sliding 2px on hover. */
.nx-x-more { display: inline-flex; gap: var(--space-2); margin-top: var(--space-7); border: 0; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-secondary); }
.nx-x-more:hover { color: var(--text-primary); }
.nx-x-more span { transition: transform var(--dur-fast) var(--ease-standard); }
.nx-x-more:hover span { transform: translateX(var(--shift-hover)); }

.nx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Responsive: the rail stacks above its content, and stops being sticky. */
@media (max-width: 760px) {
  .nx-x-rail { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .nx-x-aside { position: static; }
}
@media (max-width: 560px) {
  .nx-x-link { gap: var(--space-5); }
  .nx-x-thumb { width: 72px; height: 72px; }
}
