/* Nexaform Labs, content pages: products, platforms, stories, company,
   support, education and legal (NEX-09, Dave's ask, 2026-10-18).

   Loaded after site.css and pages.css, and only by the pages built in that
   fill-out. Everything here is a small addition to the components pages.css
   already defines: the lime heading band, the 4/12 and 8/12 section grid,
   rows with a graphite top rule. A third file rather than edits to pages.css
   so the audience pages and articles kept their exact bytes. */

/* Declared width and height on an image must not fix its rendered height:
   the CSS aspect-ratio rules in pages.css decide that. */
main img[width][height] { height: auto; }

/* ---------- hero with a fact list instead of a photograph ---------- */

.hero-facts {
  margin: 0 0 72px;
  border-top: 1px solid var(--nx-graphite);
  font-size: 17px;
}
.hero-facts > div {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(38, 40, 43, .18);
}
.hero-facts dt { color: var(--nx-on-lime); }
.hero-facts dd { margin: 0; font-weight: 600; color: var(--nx-graphite); }

/* ---------- entry rows: listings, roles, courses, papers ---------- */

.entry-list { border-top: 1px solid var(--nx-graphite); display: flex; flex-direction: column; }
.entry {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 24px 16px 26px 0;
  border-bottom: 1px solid var(--nx-line);
  color: var(--nx-graphite);
  text-decoration: none;
}
.entry-meta { font-size: 15px; color: var(--nx-muted); line-height: 1.45; }
.entry-copy h3 { font-size: 22px; line-height: 1.25; }
.entry-copy p { margin: 8px 0 0; color: var(--nx-body); font-size: 17px; line-height: 1.55; max-width: 60ch; }
.entry-copy .facts { font-size: 15px; color: var(--nx-muted); }
a.entry { transition: background-color .15s, padding .15s; }
a.entry:hover { background: var(--nx-lime-lt); padding-left: 16px; }
a.entry:hover h3 { text-decoration: underline; text-decoration-color: var(--nx-graphite); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.tag {
  font: 600 14px/1.3 var(--nx-text);
  background: var(--nx-lime-lt);
  color: var(--nx-graphite);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}
.tag-quiet { background: var(--nx-off); color: var(--nx-muted); font-weight: 400; }

/* ---------- multi-column tables ---------- */

.ledger { min-width: 720px; }
.ledger caption { text-align: left; font-size: 15px; color: var(--nx-muted); padding-bottom: 12px; }
.ledger td { font-weight: 400; color: var(--nx-body); font-size: 16px; }
.ledger tbody th[scope="row"] { font-weight: 600; color: var(--nx-graphite); width: auto; min-width: 9em; }
.ledger td .tag { font-size: 13px; }

/* ---------- notice: a plain off-white panel with a graphite rule ---------- */

.notice {
  background: var(--nx-off);
  border-top: 3px solid var(--nx-graphite);
  padding: 24px 28px 26px;
}
.sec:not(.sec-white) .notice { background: #fff; }
.notice h3 { font-size: 22px; }
.notice p { margin: 10px 0 0; color: var(--nx-body); font-size: 17px; max-width: 62ch; }
.notice p:last-child .link-arrow { margin-top: 4px; }

/* ---------- prose inside a section (about, labs, legal summaries) ---------- */

.prose p, .prose li { color: var(--nx-body); max-width: 64ch; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--nx-graphite); }
.prose .opener { font-size: 21px; line-height: 1.5; color: var(--nx-graphite); }

/* ---------- article side column: sticky meta plus an on-this-page list ---------- */

.art-side .side-in { position: sticky; top: 104px; }
.art-side .side-in .article-meta { position: static; }
.toc { margin-top: 36px; font-size: 15px; }
.toc h2 { font: 600 16px/1.3 var(--nx-display); letter-spacing: 0; padding-bottom: 10px; border-bottom: 1px solid var(--nx-graphite); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--nx-line); }
.toc a { display: block; padding: 8px 0; text-decoration: none; color: var(--nx-body); }
.toc a:hover { color: var(--nx-graphite); text-decoration: underline; text-decoration-thickness: 2px; }
.article-body h2[id] { scroll-margin-top: 104px; }
[id] { scroll-margin-top: 104px; }

/* ---------- cards with a photograph (stories index) ---------- */

.art-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.art-card.lead img { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 4 / 3; }
.art-card.lead img + .lead-copy { grid-row: 1; }

/* ---------- timeline (about) ---------- */

.timeline { border-top: 1px solid var(--nx-graphite); margin: 0; }
.timeline > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nx-line);
}
.timeline dt { font: 600 22px/1.3 var(--nx-display); font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; color: var(--nx-body); }

/* ---------- people (about, leadership) ---------- */

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.person { border-top: 1px solid var(--nx-graphite); padding-top: 16px; }
.person h3 { font-size: 22px; }
.person .role { margin: 4px 0 0; font-size: 15px; color: var(--nx-muted); }
.person p:not(.role) { margin: 10px 0 0; font-size: 16px; color: var(--nx-body); line-height: 1.55; }

/* ---------- color swatches (media kit) ---------- */

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.swatch { border-top: 1px solid var(--nx-graphite); padding-top: 14px; font-size: 15px; }
.swatch .chipc { display: block; height: 72px; border: 1px solid var(--nx-line); margin-bottom: 12px; }
.swatch strong { display: block; color: var(--nx-graphite); }
.swatch span { color: var(--nx-muted); font-family: var(--nx-mono); font-size: 14px; }

/* ---------- narrower screens (breakage check only) ---------- */

@media (max-width: 1000px) {
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .people { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .art-card.lead img { grid-row: auto; margin-bottom: 16px; }
  .art-card.lead img + .lead-copy { grid-row: auto; }
  .art-side .side-in { position: static; }
  .hero-facts { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .people, .swatches { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 1fr; gap: 4px; }
}
