/* ==========================================================================
   Noxium subpages: guides, comparison, about, support, privacy.
   Loads after styles.css and uses only its tokens (see design-system/nocturne/MASTER.md).
   ========================================================================== */

/* Mini bolt pad for CTA cards, drawn as a static image so guide markup doesn't change. */
:root {
  --mini-pad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(255,255,255,.45)' stroke-width='1.2'%3E%3Ccircle cx='10' cy='10' r='3.6'/%3E%3Ccircle cx='30' cy='10' r='3.6'/%3E%3Ccircle cx='50' cy='10' r='3.6'/%3E%3Ccircle cx='70' cy='10' r='3.6'/%3E%3Ccircle cx='10' cy='30' r='3.6'/%3E%3Ccircle cx='30' cy='30' r='3.6'/%3E%3Ccircle cx='50' cy='30' r='3.6'/%3E%3Ccircle cx='90' cy='30' r='3.6'/%3E%3Ccircle cx='10' cy='50' r='3.6'/%3E%3Ccircle cx='50' cy='50' r='3.6'/%3E%3Ccircle cx='70' cy='50' r='3.6'/%3E%3Ccircle cx='90' cy='50' r='3.6'/%3E%3Ccircle cx='10' cy='70' r='3.6'/%3E%3Ccircle cx='50' cy='70' r='3.6'/%3E%3Ccircle cx='70' cy='70' r='3.6'/%3E%3Ccircle cx='90' cy='70' r='3.6'/%3E%3Ccircle cx='30' cy='90' r='3.6'/%3E%3Ccircle cx='50' cy='90' r='3.6'/%3E%3Ccircle cx='70' cy='90' r='3.6'/%3E%3Ccircle cx='90' cy='90' r='3.6'/%3E%3C/g%3E%3Cpolyline points='10,90 30,70 30,50 50,30 70,30 90,10' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='10' cy='90' r='5'/%3E%3Ccircle cx='30' cy='70' r='5'/%3E%3Ccircle cx='30' cy='50' r='5'/%3E%3Ccircle cx='50' cy='30' r='5'/%3E%3Ccircle cx='70' cy='30' r='5'/%3E%3Ccircle cx='90' cy='10' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-color-scheme: light) {
  :root {
    --mini-pad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23A9A395' stroke-width='1.2'%3E%3Ccircle cx='10' cy='10' r='3.6'/%3E%3Ccircle cx='30' cy='10' r='3.6'/%3E%3Ccircle cx='50' cy='10' r='3.6'/%3E%3Ccircle cx='70' cy='10' r='3.6'/%3E%3Ccircle cx='10' cy='30' r='3.6'/%3E%3Ccircle cx='30' cy='30' r='3.6'/%3E%3Ccircle cx='50' cy='30' r='3.6'/%3E%3Ccircle cx='90' cy='30' r='3.6'/%3E%3Ccircle cx='10' cy='50' r='3.6'/%3E%3Ccircle cx='50' cy='50' r='3.6'/%3E%3Ccircle cx='70' cy='50' r='3.6'/%3E%3Ccircle cx='90' cy='50' r='3.6'/%3E%3Ccircle cx='10' cy='70' r='3.6'/%3E%3Ccircle cx='50' cy='70' r='3.6'/%3E%3Ccircle cx='70' cy='70' r='3.6'/%3E%3Ccircle cx='90' cy='70' r='3.6'/%3E%3Ccircle cx='30' cy='90' r='3.6'/%3E%3Ccircle cx='50' cy='90' r='3.6'/%3E%3Ccircle cx='70' cy='90' r='3.6'/%3E%3Ccircle cx='90' cy='90' r='3.6'/%3E%3C/g%3E%3Cpolyline points='10,90 30,70 30,50 50,30 70,30 90,10' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%23111'%3E%3Ccircle cx='10' cy='90' r='5'/%3E%3Ccircle cx='30' cy='70' r='5'/%3E%3Ccircle cx='30' cy='50' r='5'/%3E%3Ccircle cx='50' cy='30' r='5'/%3E%3Ccircle cx='70' cy='30' r='5'/%3E%3Ccircle cx='90' cy='10' r='5'/%3E%3C/g%3E%3C/svg%3E");
  }
}

/* ---------- Page header: breadcrumbs, H1, lede, byline ---------- */
.page-hero {
  padding: 150px 0 64px;
  border-bottom: .5px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 18px; }

.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw + 8px, 76px);
  line-height: .98;
  letter-spacing: -.005em;
}

.page-lede {
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
}

.page-narrow { max-width: 860px; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.byline a { color: var(--text-2); }

/* ---------- Short answer ---------- */
.answer {
  max-width: 70ch;
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.answer-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.answer p { font-size: 18px; line-height: 1.55; color: var(--text); }

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 64px 120px;
}

.article-layout > * { min-width: 0; }

.article-aside {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 32px;
}

.toc-title {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol,
.related ul {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.toc a,
.related a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
  text-decoration: none;
}

.toc a:hover,
.related a:hover,
.toc a[aria-current="true"] { color: var(--text); }

@media (max-width: 999px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
}

@media (max-width: 760px) {
  .page-hero { padding: 120px 0 44px; }
  .page-lede { font-size: 17px; }
  .answer { padding: 22px; }
  .answer p { font-size: 17px; }
  .article-layout { padding-block: 44px 88px; }
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.prose > * + * { margin-top: 18px; }

.prose h2 {
  margin-top: 56px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  text-wrap: balance;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.prose h3 + p { margin-top: 8px; }
.prose strong { font-weight: 600; }

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-thickness: 2px; }
.prose a.btn { text-decoration: none; }
.prose a.btn-ink, .prose a.btn-primary { color: var(--on-ink); }

.prose ol,
.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

.prose li::marker { color: var(--muted); }

.prose code,
.prose kbd {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  box-shadow: inset 0 0 0 .5px var(--line);
  font-family: var(--font-mono);
  font-size: .9em;
}

.prose .path {
  font-weight: 600;
  white-space: normal;
}

.prose hr {
  border: 0;
  border-top: .5px solid var(--line);
  margin-block: 40px;
}

.prose ol.steps {
  counter-reset: step;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.prose ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  border-radius: var(--r-group);
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.2;
  color: var(--muted);
}

/* Callouts (glass group) */
.callout {
  padding: 16px 18px;
  border-radius: var(--r-group);
  background: var(--fill);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line);
}

.callout.is-warn { box-shadow: inset 3px 0 0 var(--safelight), 0 0 0 .5px var(--glass-line); }
.callout.is-ok { box-shadow: inset 3px 0 0 var(--ok), 0 0 0 .5px var(--glass-line); }

.callout-title {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.callout p { font-size: 16px; color: var(--text-2); }

/* Screenshots */
.shot {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.shot img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 22px;
  box-shadow: inset 0 0 0 .5px var(--line), 0 0 0 .5px var(--line);
  background: var(--panel);
}

.shot figcaption {
  max-width: 52ch;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Tables (inside prose and on the comparison page) ---------- */
.data-table { min-width: 640px; }

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: .5px solid var(--line);
}

.data-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.data-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  background: var(--panel);
  font-weight: 600;
  color: var(--text);
}

.data-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); }

.data-table tbody th small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tr.is-noxium > * { background: var(--fill); }
.data-table tr.is-noxium > th { box-shadow: inset 2px 0 0 var(--text); }
.data-table a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.data-table td { min-width: 130px; }
.data-table .num { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; }
.data-table .yes { color: var(--text); }
.data-table .no { color: var(--muted); }
.data-table .warn { color: var(--text-2); }

.prose .data-table-wrap { max-width: none; }

/* ---------- CTA card (lock stage) ---------- */
.cta-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 40px 40px 40px 164px;
  border-radius: var(--r-card);
  background: radial-gradient(ellipse 70% 90% at 20% 50%, var(--stage-1) 0%, var(--stage-2) 70%, var(--stage-3) 100%);
  box-shadow: inset 0 0 0 .5px var(--line);
}

.cta-card::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 40px;
  width: 84px;
  height: 84px;
  background: var(--mini-pad) center / contain no-repeat;
}

.cta-card h2,
.cta-card .cta-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--text);
}

.cta-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.cta-card .btn { margin-top: 6px; }
.cta-card .release-status { font-size: 13px; color: var(--muted); }

.prose .cta-card { margin-top: 40px; max-width: none; }
.prose .cta-card > * + * { margin-top: 0; }

.prose .inline-cta {
  padding: 14px 18px;
  border-radius: var(--r-group);
  background: var(--fill);
  box-shadow: inset 0 0 0 .5px var(--line);
  font-size: 15px;
}

.prose .inline-cta a { font-weight: 600; text-decoration: none; }
.prose .inline-cta a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .cta-card { padding: 136px 24px 28px; }
  .cta-card::before { left: 24px; top: 28px; }
  .cta-card h2, .cta-card .cta-card-title { font-size: 32px; }
}

/* ---------- Guide list ---------- */
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.guide-card a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: inset 0 0 0 .5px var(--line);
  text-decoration: none;
  color: var(--text);
  transition: transform .1s ease;
}

.guide-card a:hover .guide-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-card a:active { transform: scale(.99); }

.guide-card-date { font-size: 13px; color: var(--muted); }

.guide-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.05;
}

.guide-card-summary { font-size: 15px; line-height: 1.55; color: var(--text-2); }

.tag-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--muted);
  border-radius: var(--r-capsule);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Simple pages (about, support, privacy) ---------- */
.page-body { padding-block: 64px 120px; }
.page-body .facts-list { margin-top: 28px; }
.page-body .facts-list + .prose { margin-top: 40px; }

@media (max-width: 760px) {
  .page-body { padding-block: 44px 88px; }
}
