/* Shared styles for the public NCE guide pages (guides.html, nce-*.html, see-vs-nce.html).
   Read surfaces in the homepage's label system: charcoal page over the moving
   grid (forge-ui.js), condensed Archivo headings, Atkinson body at a reading
   measure, dark section panels with the cursor-following orange edge, and the
   call to action as an orange label. Tokens come from forge-system.css. */
:root {
  --bg: #1a1a1f; --panel: #242429; --rule: #2e2e35;
  --orange: #f5622d; --orange-hot: #ff7a45; --amber: #ffab40;
  --white: #fff; --soft: #d2d2d8; --muted: #a3a3ab;
  --card: #e1ddd5; --ink: #1a1a1f; --ink-2: #47433c;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --text: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--text); background: var(--bg); color: var(--white); min-height: 100vh; line-height: 1.65; font-size: 1.0625rem; overflow-x: hidden; }

nav { position: sticky; top: 0; z-index: 100; height: 68px; background: var(--bg); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.logo { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo span { color: var(--orange); }
nav a.back { font-size: 0.95rem; font-weight: 700; color: var(--char, #1a1a1f); background: var(--orange); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 6px; white-space: nowrap; }
nav a.back:hover { background: var(--orange-hot); }

.page-wrap { max-width: 800px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) 5rem; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--soft); }
h1 { font-family: var(--display); font-stretch: 68%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 0.95; margin-bottom: 0.9rem; text-wrap: balance; }
.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.lede { font-size: 1.15rem; color: var(--soft); margin-bottom: 2rem; max-width: 62ch; }

.doc-section {
  --rotation: 4.2rad;
  background-image: linear-gradient(var(--panel), var(--panel)), linear-gradient(var(--rotation), var(--orange) 0%, var(--rule) 30%, transparent 80%);
  background-origin: border-box; background-clip: padding-box, border-box;
  border: 2px solid transparent; border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 1.25rem;
}
h2 { font-family: var(--display); font-stretch: 78%; font-weight: 850; text-transform: uppercase; font-size: 1.4rem; line-height: 1.1; color: var(--white); margin-bottom: 0.8rem; text-wrap: balance; }
h3 { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: 1.08rem; color: var(--amber); margin: 1.1rem 0 0.35rem; }
p, li { font-size: 1rem; color: #dcdce0; max-width: 70ch; }
td, th { font-size: 0.95rem; color: #dcdce0; }
p + p { margin-top: 0.75rem; }
ul, ol { padding-left: 1.35rem; margin: 0.5rem 0 0.75rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--orange); }
strong { color: var(--white); }
a { color: var(--orange-hot); text-underline-offset: 0.2em; }
a:hover { color: var(--amber); }

.table-wrap { overflow-x: auto; margin: 0.6rem 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
th, td { text-align: left; padding: 0.6rem 0.7rem 0.6rem 0; vertical-align: top; }
th { font-family: var(--display); font-stretch: 84%; font-weight: 800; color: var(--white); border-bottom: 2px solid var(--orange); }
td { border-bottom: 1.5px dashed #45454d; }
td.num, th.num { text-align: right; white-space: nowrap; padding-right: 0; }

/* The call to action is an orange label */
.cta { background: var(--orange); color: var(--ink); border-radius: 10px; padding: clamp(1.25rem, 3vw, 1.75rem); margin: 2rem 0 1.25rem; rotate: -0.6deg; box-shadow: 0 22px 30px -18px rgba(0,0,0,0.95); }
.cta p, .cta li, .cta strong { color: var(--ink); }
.cta h2 { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; padding: 0.72rem 1.1rem; border-radius: 6px; }
.btn:hover { background: var(--white); color: var(--ink); }
.cta a:not(.btn) { color: var(--ink); }

.sources li { font-size: 0.92rem; }
.guide-list h2 a, .guide-list a { font-weight: 700; }

footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--rule); }
footer a { color: var(--soft); margin: 0 0.5rem; }

@media (max-width: 520px) {
  .logo { font-size: 1.05rem; }
  .logo span { display: none; }
  .logo-mark { width: 28px; height: 28px; }
  nav a.back { font-size: 0.85rem; padding: 0.45rem 0.7rem; }
  th, td { padding: 0.5rem 0.45rem 0.5rem 0; }
  p, li { font-size: 0.98rem; }
  td, th { font-size: 0.9rem; }
}
