/* NodPulse customer docs + status. Standalone static pages that mirror the nodpulse.com look
   (Inter + JetBrains Mono, #c2410c orange, #1e3a5f slate, zinc greys, light theme only, as the
   main site is). Served from /docs/assets/np-docs.css; no third-party scripts. */
:root {
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #52525b;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --orange: #c2410c;
  --slate: #1e3a5f;
  --teal: #0f766e;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #b45309;
  --code-bg: #f7f7f5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 0 0 8px 0; font-size: 13px; font-weight: 600; }
.skip-link:focus { left: 0; }

/* Top nav (mirrors .topnav on nodpulse.com) */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topnav-inner { padding: 0 24px; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #c2410c, #1e3a5f); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.5px; }
.logo-text { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.3px; }
.topnav-right { display: flex; align-items: center; gap: 16px; }
.topnav-link { font-size: 13px; color: var(--muted); font-weight: 500; text-decoration: none; }
.topnav-link:hover, .topnav-link[aria-current="page"] { color: var(--ink); }
.topnav-cta { background: var(--orange); color: #fff !important; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.navmenu { display: none; position: relative; }
.navmenu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; width: 36px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: #fff; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary span { width: 16px; height: 2px; background: var(--ink); border-radius: 1px; display: block; }
.navmenu-panel { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(24,24,27,0.12); padding: 8px; min-width: 200px; display: flex; flex-direction: column; }
.navmenu-panel a { padding: 10px 12px; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.navmenu-panel a:hover { background: var(--bg-alt); }

/* Layout */
main { flex: 1; }
.page-head { padding: 56px 24px 32px; border-bottom: 1px solid var(--line-soft); }
.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
h1 { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.lede { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 680px; }
.doc { padding: 40px 24px 72px; }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 13px; }
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
.content h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 80px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; margin: 28px 0 8px; scroll-margin-top: 80px; }
.content p, .content li { font-size: 15.5px; color: var(--ink-2); }
.content p + p { margin-top: 12px; }
.content ul, .content ol { padding-left: 22px; margin: 10px 0; }
.content li + li { margin-top: 6px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--slate); color: #fff; font-size: 14px; font-weight: 700; margin-right: 10px; vertical-align: 3px; }

code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--code-bg); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; word-break: break-word; }
pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; background: #18181b; color: #f4f4f5; border-radius: 10px; padding: 16px 18px; margin: 14px 0; overflow-x: auto; white-space: pre; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; word-break: normal; }
.cmt { color: #a1a1aa; }

.callout { border: 1px solid var(--line); border-left: 4px solid var(--slate); background: var(--bg-alt); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.callout p, .callout li { font-size: 14.5px; }
.callout-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.callout-warn { border-left-color: var(--orange); }
.callout-teal { border-left-color: var(--teal); }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }

/* Troubleshooting entries */
.issue { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 18px 0; scroll-margin-top: 80px; }
.issue h3 { margin: 0 0 12px; font-size: 18px; }
.issue dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 16px; }
.issue dt { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.issue dt.fix { color: var(--teal); }
.issue dd { font-size: 15px; color: var(--ink-2); min-width: 0; }
.issue dd p + p { margin-top: 8px; }

/* Cards (docs hub) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--ink); background: #fff; }
.card:hover { border-color: var(--orange); color: var(--ink); }
.card-t { font-weight: 700; font-size: 16px; }
.card-d { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Footer (mirrors .footer on nodpulse.com) */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-tagline { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; max-width: 240px; }
.footer-vx { margin-top: 16px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.footer-col-label { font-size: 11px; font-weight: 700; color: var(--ink); letter-spacing: 1.2px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); }
.footer-bottom a { color: var(--muted); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg-alt); }
}
@media (max-width: 768px) {
  .topnav-right .topnav-link, .topnav-right .topnav-cta { display: none; }
  .navmenu { display: block; }
  .topnav-inner { padding: 0 16px; }
  .page-head { padding: 36px 16px 24px; }
  .doc { padding: 28px 16px 56px; }
  .footer { padding: 40px 16px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  h1 { font-size: 30px; letter-spacing: -0.8px; }
  .content h2 { font-size: 22px; }
  .issue { padding: 18px 16px; }
  .issue dl { grid-template-columns: 1fr; gap: 2px; }
  .issue dd { margin-bottom: 8px; }
  pre { font-size: 12px; padding: 14px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* site28 (QA C3, C4): a scrolling table region shows its focus; every anchor target clears the 60px sticky header */
.table-scroll { max-width: 100%; }
.table-scroll:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }
