/* Page-group styles (guides). Shared building blocks live in site.css "Page kit"; only group-specific rules here.
   Group: comparisons (SolusVM, Virtualizor), guides (LXC vs QEMU, snapshots), blog, legal, 404. Prefix nx-pg-. */

/* A centred reading column for longform pages (blog posts, legal). */
.nx-pg-col { max-width: 70ch; margin-inline: auto; }
.nx-pg-col.nx-longform { max-width: 70ch; }

/* Lists with a bare check / arrow icon per item (comparison "what stays", "choose LXC when"). */
.nx-pg-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
}
.nx-pg-cols__title { margin: 1.25rem 0 0; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 750; color: inherit; }
.nx-pg-list { margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 1.0625rem; line-height: 1.6; }
.nx-pg-list li { display: flex; gap: .75rem; }
.nx-pg-list li + li { margin-top: .875rem; }
.nx-pg-list .nx-check { margin-top: .2rem; color: var(--nx-accent); }
.nx-pg-cols__after { max-width: 52rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; font-size: 1.0625rem; line-height: 1.65; }
.nx-pg-cols__after a,
.nx-pg-prose a { text-decoration: underline; text-underline-offset: .2em; font-weight: 500; }
.nx-pg-cols__after a:hover,
.nx-pg-prose a:hover { color: var(--nx-accent) !important; }

/* Short answer-first prose under a section head (2 or 3 short paragraphs). */
.nx-pg-prose { max-width: 46rem; font-size: 1.125rem; line-height: 1.7; }
.nx-pg-prose > * + * { margin-top: 1.125em; }
.nx-pg-prose p { margin-bottom: 0; }
.nx-pg-prose code { padding: .1em .35em; border: 1px solid var(--nx-line-strong); border-radius: 6px; font-family: var(--nx-mono); font-size: .875em; background: transparent; color: inherit; }
.nx-pg-prose--2 { max-width: none; columns: 2 22rem; column-gap: clamp(2rem, 5vw, 5rem); }
.nx-pg-prose--2 > p { break-inside: avoid; }

/* The comparison table sits wider than the reading column; first column bold. */
.nx-pg-table { margin-top: 0; }
.nx-pg-table .nx-table td:last-child { font-weight: 600; }
.nx-pg-table__note { max-width: 46rem; margin: 1.5rem 0 0; font-size: .9375rem; line-height: 1.55; }

/* Other alternatives: a definition list, name bold, one line each, no rules. */
.nx-pg-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(2rem, 5vw, 5rem); margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; line-height: 1.6; }
.nx-pg-alts strong { display: block; margin-bottom: .375rem; font-size: 1.125rem; font-weight: 700; }
.nx-pg-sep { display: none; } /* keeps "Name: text" in the .md twin */
.nx-pg-alts a { text-decoration: underline; text-underline-offset: .2em; }

/* A big statement number/fact row (pricing difference on the comparison pages). */
.nx-pg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); margin: 0 0 clamp(3rem, 6vw, 4.5rem); padding: 0; list-style: none; }
.nx-pg-facts__big { display: block; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; font-weight: 750; }
.nx-pg-facts__big em { font-style: normal; color: var(--nx-accent); }
.nx-pg-facts__text { display: block; margin-top: .75rem; font-size: 1.0625rem; line-height: 1.55; }

/* Quick answer (wraps the kit callout): larger body, room for a code block. */
.nx-pg-answer .nx-callout { padding: 1.5rem 1.75rem; }
.nx-pg-answer .nx-callout__title { font-size: 1.125rem; }
.nx-pg-answer .nx-callout__body { font-size: 1.0625rem; line-height: 1.65; }
.nx-pg-answer .nx-callout__body > * + * { margin-top: .875rem; }
.nx-pg-answer .nx-callout__body p { margin-bottom: 0; }
.nx-pg-answer .nx-callout__body pre { margin-bottom: 0; font-size: .875rem; }
.nx-pg-answer .nx-callout > div { min-width: 0; }
.nx-longform .nx-pg-answer { margin-block: 0 2rem; }
.nx-longform .nx-pg-answer .nx-callout { margin-block: 0; }

/* Blog post header: crumbs, H1, meta line (author, dates, reading time). */
.nx-pg-post-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.nx-pg-post-head__title { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); line-height: 1.06; }
.nx-pg-post-head__lead { margin-top: 1.25rem; }
.nx-pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.nx-pg-meta__author { display: inline-flex; align-items: center; gap: .625rem; font-weight: 650; }
.nx-pg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--nx-fg);
  color: var(--nx-bg);
  font-size: .875rem;
  font-weight: 750;
}
.nx-pg-avatar--lg { width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
.nx-pg-post-body { padding-block: 0 var(--nx-section-y); }

/* About the author, after the article: plain text, no card. */
.nx-pg-author { display: flex; gap: 1rem; margin-top: 3.5rem; }
.nx-pg-author__name { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.nx-pg-author__bio { margin: .25rem 0 0; font-size: 1rem; line-height: 1.6; }

/* In-post product box ("Do this in NexoVirt"): thin edge like a callout, one CTA. */
.nx-pg-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--nx-line-strong);
  border-radius: 16px;
}
.nx-longform .nx-pg-box { margin-block: 2rem; }
.nx-pg-box__text { flex: 1 1 22rem; min-width: 0; }
.nx-pg-box__title { margin: 0; font-size: 1.125rem; font-weight: 750; }
.nx-pg-box__body { margin: .375rem 0 0; font-size: 1rem; line-height: 1.6; }

/* Blog index: text-led list of posts, two columns, no cards. */
.nx-pg-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem); margin: 0; padding: 0; list-style: none; }
.nx-pg-post { display: flex; flex-direction: column; }
.nx-pg-post__meta { margin: 0; font-size: .875rem; font-weight: 600; }
.nx-pg-post__title { margin: .75rem 0 0; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 750; color: inherit; text-wrap: balance; }
.nx-pg-post__title a { text-decoration: none; }
.nx-pg-post__title a:hover { color: var(--nx-accent) !important; }
.nx-pg-post__excerpt { margin: .875rem 0 0; font-size: 1.0625rem; line-height: 1.6; }

/* Legal pages: calm longform, smaller H1, address blocks. */
.nx-pg-legal { padding-block: clamp(3rem, 6vw, 5rem) var(--nx-section-y); }
.nx-pg-legal h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 750; color: inherit; }
.nx-pg-legal h1 + p { font-size: 1.1875rem; }
.nx-longform.nx-pg-legal__body { font-size: 1.0625rem; }
.nx-pg-legal__body h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.nx-pg-legal__body table { font-size: .9375rem; }
.nx-pg-legal__body hr { display: none; }
.nx-pg-legal__body .table-responsive { overflow-x: auto; }

/* Withdrawal form on the paper band: ink-on-paper controls, accent focus. */
.nx-pg-form { margin-top: 1.5rem; }
.nx-pg-form .form-label { font-weight: 650; color: inherit; }
.nx-pg-form .form-control {
  border: 1px solid var(--nx-line-strong);
  border-radius: 10px;
  background: var(--nx-bg);
  color: var(--nx-fg);
  font-size: 1rem;
}
.nx-pg-form .form-control:focus { border-color: var(--nx-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-accent) 25%, transparent); }
.nx-pg-form .form-hint { color: inherit; font-size: .875rem; }
.nx-pg-form .btn { margin-top: .5rem; }
.nx-pg-error { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--nx-line-strong); border-radius: 12px; font-weight: 600; }

/* 404: renders outside the layout (errors/html/error_404.php). */
.nx-pg-404 { min-height: 100vh; display: flex; flex-direction: column; }
.nx-pg-404__top { padding-block: 1.5rem; }
.nx-pg-404__main { flex: 1; display: flex; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.nx-pg-404__code { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.nx-pg-404__links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }

@media (max-width: 991.98px) {
  .nx-pg-facts { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .nx-pg-cols,
  .nx-pg-alts,
  .nx-pg-posts { grid-template-columns: 1fr; }
  .nx-pg-answer .nx-callout { padding: 1.25rem; }
  .nx-pg-answer .nx-callout__icon { display: none; }
  .nx-pg-box { padding: 1.25rem; }
}

/* Links row under a feature grid. */
.nx-pg-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); gap: .75rem 2.5rem; }
.nx-pg-gap { margin-top: var(--nx-section-y); }
.nx-pg-mt { margin-top: clamp(1.5rem, 3vw, 2rem); }
/* Buttons inside longform keep their own colours (longform links underline and turn accent on hover). */
.nx-longform .btn.nx-btn { text-decoration: none; }
.nx-longform .btn.nx-btn:hover { color: var(--tblr-btn-hover-color) !important; }
.nx-longform .nx-pg-box__body a { font-weight: 600; }
.nx-pg-legal__small { font-size: .9375rem; }
.nx-pg-avatar::before { content: attr(data-initial); } /* letter via CSS so it stays out of the .md twin */
