/*
Theme Name: Nexulas NEX-300
Theme URI: https://nexulas.local
Author: Paperclip CTO
Description: Production deploy artifact for NEX-300 based on the canonical Nexulas workspace.
Version: 0.3.1
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nexulas
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap");

:root {
  --slate: #1c2b3a;
  --electric: #005fff;
  --lime: #b8ff57;
  --silver: #8a9bb0;
  --ghost: #f2f4f7;
  --ink: #0d0d0d;
  --line: #e8eaed;
  --surface: #ffffff;
  --shell: 1180px;
  --copy: "DM Sans", "Segoe UI", sans-serif;
  --display: "Playfair Display", "Iowan Old Style", serif;
  --shadow: 0 24px 60px rgba(12, 23, 38, 0.12);
  --nx-bg-deep: #142233;
  --nx-bg-strong: #1c2b3a;
  --nx-surface: #ffffff;
  --nx-ink: #0d0d0d;
  --nx-ink-soft: #5f7085;
  --nx-ink-inverse: #f8fbff;
  --nx-line: #d7deea;
  --nx-line-strong: rgba(20, 34, 51, 0.14);
  --nx-accent: #005fff;
  --nx-accent-strong: #0b63f6;
  --nx-highlight: #b8ff57;
  --nx-radius: 24px;
  --nx-shadow-soft: 0 24px 60px rgba(12, 23, 38, 0.12);
  --nx-content: 1180px;
  --nx-display: "Playfair Display", "Iowan Old Style", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--copy);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.site-notice,
.section-inner,
.site-header,
.site-footer {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-notice {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.site-notice.is-success {
  background: #eefce2;
  color: #254500;
}

.site-notice.is-error {
  background: #ffe7e7;
  color: #7c1717;
}

.nx-page-shell {
  padding-bottom: 2rem;
}

.nx-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 52px;
  margin-top: 1rem;
  padding: 0 1.5rem;
  background: var(--slate);
  border-bottom: 2px solid var(--electric);
}

.nx-brand-mark,
.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-kicker {
  color: var(--silver);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name {
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.brand-name-accent {
  color: var(--lime);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--silver);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #ffffff;
}

.nav-cta,
.button-link,
.nx-cta,
.nx-read-btn,
.nx-nl-btn,
.nx-affiliate-btn,
.cta-module .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 4px;
  background: var(--electric);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.button-link.is-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
}

.hero,
.nx-section,
.nx-newsletter,
.nx-archive-hero,
.nx-review-preview,
.archive-support {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.hero {
  padding: 2rem 0 2.5rem;
}

.nx-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--slate);
}

.eyebrow {
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.nx-hero-left h1,
.nx-picks-intro h2,
.nx-newsletter h2,
.nx-archive-hero h1,
.nx-review-header h1,
.section-title,
.cta-module .section-title,
.newsletter-module .section-title,
.ai-insight .section-title,
.related-content .section-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.nx-hero-left h1,
.nx-review-header h1,
.nx-picks-intro h2 {
  color: #ffffff;
}

.hero-lead,
.nx-hero-left p,
.nx-picks-intro p,
.nx-review-meta,
.nx-card-body p,
.section-intro,
.newsletter-module .section-intro,
.cta-module .section-intro,
.ai-insight p,
.related-card p {
  color: var(--silver);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.nx-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.nx-stat-num {
  display: block;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.55rem;
}

.nx-stat-label {
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-hero-card,
.nx-card,
.newsletter-module,
.cta-module,
.ai-insight,
.related-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.nx-hero-card {
  box-shadow: var(--shadow);
}

.nx-hero-img,
.nx-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
}

.nx-hero-img {
  min-height: 160px;
  background: var(--electric);
}

.nx-card-img {
  min-height: 92px;
  padding: 1rem;
  background: linear-gradient(135deg, #16213e, #0f3460);
  font-size: 1rem;
  text-align: center;
}

.nx-tool-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--electric);
  font-size: 1.1rem;
}

.nx-hero-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.nx-hero-img-inner span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.nx-hero-card-body,
.nx-card-body,
.newsletter-module,
.cta-module,
.ai-insight,
.related-content {
  padding: 1rem;
}

.nx-pill,
.nx-verdict-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nx-pill,
.nx-verdict-pill {
  background: var(--lime);
  color: #1f3500;
}

.nx-hero-card-body h3,
.nx-card-body h3,
.nx-featured-card h2,
.related-card h3,
.cta-module .section-title,
.ai-insight .section-title {
  margin: 0.55rem 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.25;
}

.nx-score-row,
.nx-meta,
.nx-footer-bottom,
.footer-bottom-links,
.nx-review-meta,
.nx-breadcrumb,
.module-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nx-score {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--electric);
}

.nx-score span,
.nx-card-score,
.nx-meta,
.module-note {
  color: var(--silver);
  font-size: 0.76rem;
}

.nx-card-score {
  margin-left: auto;
  color: var(--electric);
  font-family: var(--display);
  font-size: 1rem;
}

.nx-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--silver);
}

.nx-section {
  padding: 1.25rem 0 0;
}

.nx-section.dark {
  width: 100%;
  margin-top: 2rem;
  background: var(--slate);
  padding: 2.4rem 0;
}

.nx-section.dark .section-inner {
  width: min(calc(100% - 2rem), var(--shell));
}

.nx-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.nx-section-header h2,
.newsletter-module .section-title,
.cta-module .section-title,
.ai-insight .section-title,
.related-content .section-title {
  font-size: 1.8rem;
}

.nx-section-header h2,
.newsletter-module .section-title,
.cta-module .section-title,
.ai-insight .section-title,
.related-content .section-title,
.nx-archive-hero h1,
.nx-featured-card h2,
.nx-review-preview .nx-h2 {
  color: var(--ink);
}

.nx-section-header a {
  color: var(--electric);
  font-size: 0.82rem;
  font-weight: 600;
}

.nx-rule {
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 0.55rem;
  background: var(--electric);
}

.nx-section.dark .nx-rule {
  background: var(--lime);
}

.nx-card-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.nx-picks {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
}

.nx-picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nx-pick-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.nx-pick-num,
.nx-pick-score span,
.nx-big-score-num,
.nx-sidebar-score-value {
  color: var(--electric);
  font-family: var(--display);
  font-weight: 700;
}

.nx-pick-num {
  font-size: 2rem;
}

.nx-pick-info h4,
.nx-related-info strong {
  margin: 0 0 0.1rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.nx-pick-info p,
.nx-pick-score small {
  color: var(--silver);
  font-size: 0.72rem;
  margin: 0;
}

.nx-pick-score {
  margin-left: auto;
  text-align: right;
}

.nx-pick-score span {
  color: var(--lime);
  font-size: 1.5rem;
  display: block;
}

.nx-newsletter {
  margin-top: 2rem;
  padding: 2.5rem 0;
  background: var(--ghost);
  text-align: center;
}

.nx-newsletter .section-inner {
  width: min(calc(100% - 2rem), 640px);
}

.nx-newsletter h2 {
  color: var(--slate);
  font-size: 2.1rem;
}

.nx-newsletter p {
  color: var(--silver);
  font-size: 0.9rem;
}

.nx-nl-form,
.newsletter-form,
.footer-inline-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nx-nl-form {
  max-width: 440px;
  margin: 1.35rem auto 0.75rem;
}

.nx-nl-input,
.newsletter-form input,
.footer-inline-form input {
  flex: 1;
  min-height: 42px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
}

.nx-nl-sub,
.module-note {
  color: var(--silver);
  font-size: 0.72rem;
}

.nx-footer {
  margin-top: 2rem;
  padding: 2.25rem 0 1rem;
  background: var(--slate);
}

.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer-brand h2,
.footer-nav-column h4,
.footer-newsletter-column h4 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer-brand p,
.footer-newsletter-column p,
.footer-link-list a,
.nx-footer-bottom,
.nx-footer-bottom a {
  color: var(--silver);
  font-size: 0.82rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li + li {
  margin-top: 0.45rem;
}

.footer-inline-form input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nx-footer-bottom {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.footer-bottom-links {
  gap: 1rem;
}

.nx-archive-hero {
  padding: 1.5rem 0 1rem;
  background: var(--ghost);
}

.nx-archive-hero .section-inner {
  padding: 1rem 0;
}

.nx-archive-hero h1 {
  font-size: 2.25rem;
}

.nx-archive-hero p {
  margin: 0;
  color: var(--silver);
  max-width: 720px;
}

.nx-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.nx-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.nx-filter-pill.is-active {
  background: var(--electric);
  border-color: var(--electric);
  color: #ffffff;
}

.nx-archive-featured {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
}

.nx-featured-card,
.nx-card-compact {
  height: 100%;
}

.nx-featured-card-body {
  padding: 1rem 1.1rem;
}

.nx-archive-side-list {
  display: grid;
  gap: 1rem;
}

.nx-archive-grid {
  padding-top: 1rem;
}

.nx-review-preview {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.nx-review-header {
  padding: 1.5rem;
  background: var(--slate);
}

.nx-breadcrumb,
.nx-breadcrumb a,
.nx-review-meta,
.nx-meta-disclosure {
  color: var(--silver);
  font-size: 0.74rem;
}

.nx-review-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.nx-article-body {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.nx-score-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--ghost);
  border-radius: 8px;
}

.nx-big-score {
  text-align: center;
}

.nx-big-score-num,
.nx-sidebar-score-value {
  font-size: 3.1rem;
  line-height: 1;
}

.nx-big-score-denom,
.nx-sidebar-score-copy,
.nx-disclosure {
  color: var(--silver);
  font-size: 0.78rem;
}

.nx-tldr {
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--electric);
  background: var(--ghost);
}

.nx-tldr h4 {
  margin: 0 0 0.5rem;
  color: var(--electric);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-tldr p,
.nx-body-text,
.entry-content,
.entry-content p,
.entry-content li {
  color: var(--ink);
  font-size: 0.98rem;
}

.entry-content p {
  margin: 0 0 1rem;
}

.entry-content h2,
.entry-content h3,
.nx-h2 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--display);
  color: var(--ink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.nx-sidebar {
  padding: 1rem;
}

.nx-sidebar-widget {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 6px;
  background: var(--ghost);
}

.nx-sidebar-widget h4 {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-sidebar-widget p {
  margin: 0 0 0.75rem;
  color: var(--silver);
  font-size: 0.82rem;
}

.nx-sidebar-score {
  margin-bottom: 0.75rem;
  text-align: center;
}

.nx-related-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.nx-related-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border-radius: 4px;
  background: #0f3460;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.nx-related-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nx-related-info span {
  color: var(--silver);
  font-size: 0.72rem;
}

.newsletter-module-inline,
.cta-module-inline,
.related-content,
.ai-insight,
.newsletter-module,
.cta-module {
  margin-top: 1rem;
}

.newsletter-module .newsletter-form {
  margin: 1rem 0 0.6rem;
}

.newsletter-module .section-title,
.cta-module .section-title,
.ai-insight .section-title,
.related-content .section-title {
  font-size: 1.45rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .nx-hero-panel,
  .nx-picks,
  .nx-archive-featured,
  .nx-review-body,
  .nx-footer-grid,
  .nx-card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .nx-review-body {
    grid-template-columns: 1fr;
  }

  .nx-article-body {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav {
    order: 4;
    width: 100%;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .nx-nav-shell {
    flex-wrap: wrap;
    padding: 0.85rem 1rem 1rem;
  }

  .nav-cta {
    width: 100%;
  }

  .hero,
  .nx-section,
  .nx-newsletter,
  .nx-archive-hero,
  .nx-review-preview,
  .archive-support {
    width: min(calc(100% - 1rem), var(--shell));
  }

  .nx-hero-panel,
  .nx-review-header,
  .nx-article-body,
  .nx-sidebar {
    padding: 1rem;
  }

  .hero-actions,
  .nx-nl-form,
  .newsletter-form,
  .footer-inline-form,
  .nx-score-block {
    flex-direction: column;
    align-items: stretch;
  }

  .nx-score-block {
    grid-template-columns: 1fr;
  }

  .nx-newsletter h2,
  .nx-hero-left h1,
  .nx-review-header h1,
  .nx-archive-hero h1 {
    font-size: 1.8rem;
  }

  .nx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-brand-symbol-wrap,
.footer-brand-symbol-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(226, 247, 255, 0.9)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 42px rgba(17, 122, 232, 0.16);
}

.hero-brand-symbol-wrap {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.7rem;
}

.footer-brand-symbol-wrap {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.55rem;
}

.hero-brand-symbol,
.footer-brand-symbol {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-stack,
.footer-brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-stack-kicker,
.footer-brand-tagline {
  color: var(--nx-ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-stack-name,
.footer-brand-name {
  color: var(--nx-bg-deep);
  font-family: var(--nx-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.brand-stack-tagline {
  margin-top: 0.3rem;
  color: var(--nx-accent-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--nx-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.entry-title {
  margin: 0;
  font-family: var(--nx-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy .hero-lead,
.entry-summary {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: var(--nx-ink-soft);
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button-link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--nx-accent) 0%,
    var(--nx-accent-strong) 100%
  );
  color: #f6fcff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(10, 78, 188, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button-link:hover,
.button-link:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(10, 78, 188, 0.3);
}

.button-link.is-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 122, 232, 0.16);
  color: var(--nx-bg-deep);
  box-shadow: none;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.hero-note {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 122, 232, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.hero-note span {
  display: block;
  color: var(--nx-ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-card,
.panel,
.post-card,
.category-card,
.entry-card,
.sidebar-card,
.related-card {
  border: 1px solid rgba(23, 32, 45, 0.08);
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
}

.hero-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.35rem;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 39, 0.97),
    rgba(17, 32, 51, 0.96)
  );
  color: var(--nx-ink-inverse);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.hero-card h2,
.section-title {
  margin: 0;
  font-family: var(--nx-display);
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  line-height: 1;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(248, 245, 238, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-copy {
  margin: 0;
  color: rgba(248, 245, 238, 0.76);
}

.hero-metrics {
  display: grid;
  gap: 0.8rem;
}

.hero-metrics div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics div:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-metrics strong {
  min-width: 2.2rem;
  color: var(--nx-highlight);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-metrics span {
  color: rgba(248, 245, 238, 0.88);
}

.hero-card-footer {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-card-footer p {
  margin: 0;
  color: rgba(248, 245, 238, 0.82);
  font-size: 0.95rem;
}

.section {
  padding: 1.5rem 0 3.4rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-intro {
  max-width: 38rem;
  margin: 0;
  color: var(--nx-ink-soft);
}

.feature-grid,
.category-grid,
.posts-grid,
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.post-card,
.category-card,
.entry-card,
.sidebar-card,
.related-card {
  padding: 1.5rem;
}

.panel h3,
.post-card h3,
.category-card h3,
.related-card h3 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--nx-display);
  font-size: 1.55rem;
  line-height: 1.08;
}

.panel p,
.post-card p,
.category-card p,
.module-note,
.entry-meta,
.archive-support p {
  color: var(--nx-ink-soft);
}

.panel-label,
.post-card time,
.kicker-chip,
.category-card span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--nx-accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker-chip {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(215, 106, 55, 0.1);
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
}

.signal-panel {
  padding: 1.8rem;
}

.signal-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.signal-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.signal-index {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(126, 176, 185, 0.18);
  color: var(--nx-bg-strong);
  font-weight: 700;
}

.signal-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.signal-stack {
  display: grid;
  gap: 1rem;
}

.signal-stack .panel {
  min-height: 100%;
}

.category-card {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -1rem -2.4rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(126, 176, 185, 0.24),
    transparent 70%
  );
  pointer-events: none;
}

.category-card span {
  margin-top: 1rem;
}

.trust-strip .panel:nth-child(1) {
  background: rgba(255, 251, 245, 0.9);
}

.trust-strip .panel:nth-child(2) {
  background: linear-gradient(
    180deg,
    rgba(15, 25, 39, 0.97),
    rgba(17, 32, 51, 0.95)
  );
  color: var(--nx-ink-inverse);
}

.trust-strip .panel:nth-child(2) p,
.trust-strip .panel:nth-child(2) .panel-label {
  color: rgba(248, 245, 238, 0.78);
}

.trust-strip .panel:nth-child(3) {
  background: linear-gradient(
    180deg,
    rgba(126, 176, 185, 0.18),
    rgba(255, 251, 245, 0.92)
  );
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #c65d31 0%, #823114 52%, #142233 100%);
  color: var(--nx-ink-inverse);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.cta-band .section-title,
.cta-band h2,
.cta-band h3 {
  color: var(--nx-ink-inverse);
}

.cta-band .section-intro,
.cta-band .module-note,
.cta-band p {
  color: rgba(248, 245, 238, 0.84);
}

.content-shell {
  padding: 2rem 0 4rem;
}

.nx-static-hero {
  margin-bottom: 1.25rem;
}

.nx-static-hero .panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.nx-static-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.nx-static-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-static-card h2,
.nx-static-content h2 {
  margin-top: 0;
}

.nx-static-content {
  margin-bottom: 1.25rem;
}

.nx-legal-content h3 {
  margin: 1.4rem 0 0.45rem;
}

.nx-static-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.article-shell {
  display: grid;
  gap: 1.5rem;
}

.article-hero {
  padding: clamp(1.5rem, 3vw, 2.3rem);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--nx-ink-soft);
  font-size: 0.82rem;
}

.article-breadcrumb span:last-child {
  color: var(--nx-bg-deep);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.2rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-disclosure {
  color: var(--nx-accent-strong);
  font-weight: 700;
}

.article-layout {
  align-items: start;
}

.article-main,
.article-sidebar {
  min-width: 0;
}

.article-main {
  display: grid;
  gap: 1.5rem;
}

.article-main > *,
.article-entry,
.article-content,
.nx-table-scroll,
.nx-table-stack,
.cta-module.panel.cta-band {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.article-summary {
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--nx-accent-strong);
  background: linear-gradient(
    180deg,
    rgba(243, 249, 255, 0.98),
    rgba(255, 255, 255, 0.96)
  );
}

.article-summary h4 {
  margin: 0 0 0.55rem;
  color: var(--nx-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-summary p {
  margin: 0;
  color: var(--nx-bg-deep);
}

.article-entry {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.article-content {
  color: var(--nx-bg-deep);
  font-size: 1.02rem;
}

.article-content > * + * {
  margin-top: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.8rem;
  color: var(--nx-bg-deep);
  font-family: var(--nx-display);
  line-height: 1.05;
}

.article-content h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.article-content h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.article-content p,
.article-content li {
  color: var(--nx-bg-deep);
  line-height: 1.78;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
}

.article-content a:not(.button-link) {
  color: var(--nx-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid rgba(11, 99, 246, 0.35);
  border-radius: 0 18px 18px 0;
  background: rgba(17, 122, 232, 0.05);
}

.article-content img,
.article-content iframe,
.article-content video {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
}

.article-content iframe {
  min-height: 18rem;
  border: 0;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--nx-line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: rgba(20, 34, 51, 0.05);
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #162435;
  color: #f3f7fb;
}

.article-content code {
  font-size: 0.92em;
}

.nx-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: #ffffff;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.nx-table-scroll table {
  display: table;
  width: max-content;
  min-width: 100%;
  margin: 0;
  overflow: visible;
}

.nx-table-scroll tbody {
  white-space: nowrap;
}

.nx-table-stack {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.nx-table-card {
  padding: 1rem;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--nx-shadow-soft);
}

.nx-table-card-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.nx-table-card-row + .nx-table-card-row {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 44, 71, 0.08);
}

.nx-table-card-label {
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-ink-soft);
}

.nx-table-card-value {
  color: var(--nx-bg-deep);
  line-height: 1.6;
}

.nx-table-card-value > *:first-child {
  margin-top: 0;
}

.nx-table-card-value > *:last-child {
  margin-bottom: 0;
}

.article-sidebar {
  display: grid;
  gap: 1.25rem;
}

.article-sidebar-card {
  padding: 1.3rem;
}

.article-sidebar-review p:last-child {
  margin-bottom: 0;
}

.article-score {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 1rem;
}

.article-score strong {
  color: var(--nx-bg-deep);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.article-score span {
  color: var(--nx-ink-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-facts {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.article-facts div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--nx-line);
}

.article-facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-facts dt {
  color: var(--nx-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-facts dd {
  margin: 0;
  color: var(--nx-bg-deep);
  font-weight: 700;
}

.article-sidebar-newsletter {
  margin-top: 0;
  padding: 1.3rem;
}

.article-sidebar-newsletter .section-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.article-sidebar-newsletter .newsletter-form {
  flex-direction: column;
}

.article-sidebar-newsletter .newsletter-form input[type="email"],
.article-sidebar-newsletter .newsletter-form button {
  width: 100%;
}

.entry-card,
.sidebar-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(243, 250, 255, 0.92)
  );
}

.entry-meta {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.entry-content > *:first-child,
.entry-card > *:first-child,
.sidebar-card > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child,
.entry-card > *:last-child,
.sidebar-card > *:last-child {
  margin-bottom: 0;
}

.newsletter-module,
.cta-module,
.ai-insight,
.related-content {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--nx-ink);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--nx-ink-soft);
  opacity: 1;
}

.newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid rgba(11, 99, 246, 0.2);
  outline-offset: 2px;
  border-color: var(--nx-accent-strong);
}

.footer-newsletter-column .newsletter-form {
  margin-top: 0;
}

.footer-newsletter-column .newsletter-form button {
  width: 100%;
}

.footer-newsletter-column .module-note {
  margin-top: 0;
}

.module-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.archive-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

.related-card h3,
.post-card h2,
.post-card h3 {
  margin-bottom: 0.5rem;
}

.posts-grid .post-card {
  min-height: 100%;
  padding-bottom: 1.9rem;
}

.posts-grid .post-card a {
  text-decoration: none;
}

.newsletter-module-footer {
  margin: 1rem 0 1.5rem;
}

.site-notice {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--nx-line);
  background: rgba(255, 251, 245, 0.92);
}

.site-notice.is-success {
  border-color: rgba(77, 127, 117, 0.34);
}

.site-notice.is-error {
  border-color: rgba(170, 74, 31, 0.32);
}

.pre-footer-newsletter {
  width: min(calc(100% - 2rem), var(--nx-content));
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.pre-footer-newsletter-inner {
  padding: 1.5rem;
  border: 1px solid var(--nx-line);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(243, 249, 255, 0.94)
  );
  box-shadow: var(--nx-shadow-soft);
}

.pre-footer-copy h2 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--nx-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--nx-bg-deep);
}

.pre-footer-copy p:last-child {
  margin: 0;
  color: var(--nx-ink-soft);
}

.pre-footer-form {
  margin-top: 1.25rem;
}

.site-footer {
  padding: 1.4rem 0 3rem;
  color: var(--nx-ink-soft);
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--nx-line-strong);
}

.site-footer-brand {
  max-width: 26rem;
  flex: 1.35 1 20rem;
}

.site-footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.footer-brand-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.footer-brand-tagline {
  margin-top: 0.15rem;
  color: var(--nx-accent-strong);
}

.site-footer nav a {
  text-decoration: none;
}

.footer-nav-column,
.footer-newsletter-column {
  flex: 1 1 15rem;
}

.footer-newsletter-column {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.footer-disclosure {
  max-width: 48rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1200px) {
  .content-grid.article-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: 2;
  }
}

@media (pointer: coarse) {
  .content-grid.article-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: 2;
  }

  .article-hero,
  .article-entry,
  .article-summary,
  .article-sidebar-card,
  .article-sidebar-newsletter {
    padding: 1rem;
  }

  .article-hero .entry-title {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .article-hero .entry-summary,
  .article-meta,
  .article-content {
    max-width: none;
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .article-content h3 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
}

.nx-touch-mobile .content-grid.article-layout,
.nx-touch-mobile .article-layout {
  grid-template-columns: 1fr !important;
}

.nx-touch-mobile .site-header,
.nx-touch-mobile .site-footer,
.nx-touch-mobile .section-inner,
.nx-touch-mobile .content-shell,
.nx-touch-mobile .site-notice,
.nx-touch-mobile .hero,
.nx-touch-mobile .pre-footer-newsletter {
  width: min(
    calc(var(--nx-visual-viewport-width, 100vw) - 1rem),
    var(--nx-content)
  );
}

.nx-touch-mobile .article-sidebar {
  order: 2;
}

.nx-touch-mobile .article-hero,
.nx-touch-mobile .article-entry,
.nx-touch-mobile .article-summary,
.nx-touch-mobile .article-sidebar-card,
.nx-touch-mobile .article-sidebar-newsletter {
  padding: 1rem;
}

.nx-touch-mobile .article-hero .entry-title {
  max-width: none;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
}

.nx-touch-mobile .article-hero .entry-summary,
.nx-touch-mobile .article-meta,
.nx-touch-mobile .article-content {
  max-width: none;
  font-size: 1rem;
}

.nx-touch-mobile .article-content h2 {
  font-size: clamp(1.9rem, 8vw, 2.5rem);
}

.nx-touch-mobile .article-content h3 {
  font-size: clamp(1.45rem, 6vw, 1.85rem);
}

@media (max-width: 1080px) {
  .hero-panel,
  .signal-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .entry-title {
    max-width: 12ch;
  }
}

@media (max-width: 920px) {
  .content-grid,
  .nx-static-grid,
  .nx-static-grid-3,
  .category-grid,
  .posts-grid,
  .trust-strip,
  .archive-support {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer-top {
    display: block;
  }

  .section-intro {
    margin-top: 1rem;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
    border-radius: 30px;
  }

  .brand-mark {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark-copy {
    min-width: 0;
  }

  .brand-name,
  .brand-kicker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
  }

  .primary-nav a {
    display: flex;
    width: 100%;
    justify-content: center;
    background: rgba(17, 122, 232, 0.06);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .site-header,
  .site-footer,
  .section-inner,
  .content-shell,
  .site-notice,
  .hero,
  .pre-footer-newsletter {
    width: min(calc(100% - 1.25rem), var(--nx-content));
  }

  .hero {
    padding-top: 1rem;
  }

  .brand-mark {
    gap: 0.7rem;
  }

  .brand-mark-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
  }

  .hero-brand-lockup,
  .site-footer-brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-brand-symbol-wrap {
    width: 4.8rem;
    height: 4.8rem;
  }

  .brand-stack-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-panel,
  .panel,
  .post-card,
  .category-card,
  .entry-card,
  .sidebar-card,
  .related-card,
  .signal-panel,
  .cta-band {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .hero h1,
  .entry-title {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero-card-header {
    display: block;
  }

  .hero-card-badge {
    margin-top: 0.85rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .button-link,
  button,
  input[type="submit"],
  .newsletter-form input[type="email"] {
    width: 100%;
  }

  .newsletter-form input[type="email"] {
    flex: 0 0 auto;
    min-height: 52px;
  }

  .pre-footer-newsletter-inner {
    padding: 1.2rem;
  }

  .article-hero,
  .article-entry,
  .article-summary,
  .article-sidebar-card,
  .article-sidebar-newsletter {
    padding: 1.15rem;
  }

  .article-breadcrumb {
    font-size: 0.76rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content iframe {
    min-height: 12rem;
  }

  .article-content th,
  .article-content td {
    min-width: 10rem;
    padding: 0.7rem 0.75rem;
  }
}

/* NEX-131 follow-up: rebalance the homepage hero after the live deploy. */
.hero.nx-hero {
  padding-top: 1.5rem;
}

.nx-hero-panel {
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  align-items: start;
}

.nx-hero-left h1 {
  max-width: 8ch;
  font-size: clamp(3.2rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.nx-hero-left .hero-lead,
.nx-hero-left p.hero-lead {
  max-width: 30rem;
  font-size: 1rem;
}

.nx-hero-stats {
  margin-top: 1.5rem;
  gap: 1rem 1.5rem;
}

.nx-hero-card {
  align-self: center;
}

.nx-section {
  padding-top: 2rem;
}

.nx-section-header {
  margin-bottom: 1.5rem;
}

.site-footer-top {
  align-items: start;
}

.footer-newsletter-column .newsletter-form {
  align-items: stretch;
}

@media (max-width: 920px) {
  .nx-hero-panel {
    grid-template-columns: 1fr;
  }

  .nx-hero-left h1 {
    max-width: 9ch;
    font-size: clamp(2.75rem, 12vw, 4.2rem);
  }

  .nx-hero-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nx-nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 1rem;
  }

  .primary-nav ul {
    gap: 0.6rem;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .nav-toggle {
    justify-self: end;
    min-height: 42px;
    padding-inline: 1rem;
  }

  .primary-nav {
    grid-column: 1 / -1;
  }

  .primary-nav a {
    justify-content: flex-start;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
  }

  .nav-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
  }

  .nx-hero-panel {
    padding: 1.4rem;
  }

  .nx-hero-left h1 {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .nx-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-footer-brand,
  .footer-nav-column,
  .footer-newsletter-column {
    max-width: none;
    width: 100%;
  }

  .footer-link-list li + li {
    margin-top: 0.65rem;
  }

  .footer-newsletter-column {
    gap: 0.75rem;
  }

  .footer-newsletter-column .newsletter-form,
  .footer-newsletter-column .newsletter-form button,
  .footer-newsletter-column .newsletter-form input[type="email"] {
    width: 100%;
  }

  .nx-footer-bottom,
  .footer-bottom-links {
    display: grid;
    gap: 0.55rem;
  }
}

@media (min-width: 641px) {
  .nav-toggle {
    display: none !important;
  }

  .primary-nav {
    display: block !important;
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  .primary-nav a {
    display: inline-flex;
    justify-content: center;
    padding: 0;
    background: transparent;
  }
}

.site-footer-top,
.nx-footer-bottom {
  padding-inline: clamp(1rem, 2vw, 1.75rem);
}

/* NEX-180: prototype-aligned refinements from the NEX-179 full-page mockup. */
.nx-refined-hero .nx-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.nx-refined-hero .nx-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(36vw, 24rem);
  height: min(36vw, 24rem);
  background: radial-gradient(circle, rgba(0, 95, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.nx-refined-hero .nx-hero-left h1 {
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.nx-refined-hero .nx-hero-left h1 span {
  color: var(--lime);
}

.nx-refined-hero .hero-lead {
  color: rgba(255, 255, 255, 0.68);
}

.nx-refined-hero .button-link.is-secondary,
.nx-ranked-tools .button-link.is-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.nx-feature-review-card {
  align-self: center;
  overflow: hidden;
}

.nx-feature-review-card .nx-hero-img {
  min-height: 150px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460 52%, var(--electric));
}

.nx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.nx-pill-muted {
  background: var(--ghost);
  color: var(--slate);
  border: 1px solid var(--line);
}

.nx-pill-blue {
  background: var(--electric);
  color: #ffffff;
}

.nx-feature-review-card .nx-score-row {
  justify-content: space-between;
  margin-top: 1rem;
}

.nx-feature-review-card .nx-score span {
  color: var(--silver);
  font-family: var(--copy);
  font-size: 0.9rem;
  font-weight: 400;
}

.nx-card {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.nx-card:hover,
.nx-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 95, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 95, 255, 0.12);
}

.nx-card-img.ai {
  background: linear-gradient(135deg, #0f3460, #005fff);
}

.nx-card-img.compare {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.nx-card-img.dev {
  background: linear-gradient(135deg, #16213e, #0f3460);
}

.nx-ranked-tools {
  margin-top: 2.5rem;
}

.nx-ranked-tools .nx-pick-item {
  min-height: 74px;
}

.nx-ranked-tools .nx-pick-score small {
  display: block;
  margin-top: -0.15rem;
  color: var(--silver);
}

.nx-archive-hero .nx-pill {
  margin-bottom: 0.75rem;
}

.nx-archive-hero .nx-filter-row {
  margin-top: 1.25rem;
}

.nx-archive-featured .nx-card-score {
  margin-left: 0;
}

.nx-versus-panel {
  margin-bottom: 1.25rem;
}

.nx-versus-header {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.2rem;
}

.nx-versus-header h2 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--nx-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.nx-versus-header p {
  max-width: 42rem;
  margin: 0;
  color: var(--nx-ink-soft);
}

.nx-versus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.nx-versus-card {
  padding: 1.1rem;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: #ffffff;
}

.nx-versus-card.is-winner {
  border-color: rgba(184, 255, 87, 0.65);
  background: linear-gradient(180deg, rgba(184, 255, 87, 0.18), #ffffff 55%);
}

.nx-versus-card h3 {
  margin: 0.7rem 0 0.2rem;
  font-family: var(--nx-display);
  font-size: 1.55rem;
}

.nx-versus-card strong {
  display: block;
  color: var(--electric);
  font-family: var(--nx-display);
  font-size: 3rem;
  line-height: 1;
}

.nx-versus-card p {
  margin-bottom: 0;
  color: var(--nx-ink-soft);
}

.nx-score-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: #ffffff;
}

.nx-score-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.nx-score-table th,
.nx-score-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--nx-line);
  text-align: left;
}

.nx-score-table th {
  color: var(--nx-bg-deep);
  background: rgba(20, 34, 51, 0.05);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-score-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 920px) {
  .nx-versus-header,
  .nx-versus-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nx-versus-header .button-link {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nx-refined-hero .nx-hero-left h1 {
    max-width: 10ch;
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .nx-pill-row,
  .nx-score-row {
    align-items: flex-start;
  }

  .nx-ranked-tools .nx-pick-item {
    align-items: flex-start;
  }

  .nx-pick-score {
    min-width: 4rem;
  }
}

/* NEX-180 follow-up: header and hero must run edge-to-edge. */
.site-header.nx-nav-shell {
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.nx-page-shell .hero.nx-hero,
.nx-page-shell .nx-refined-hero {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
}

.nx-refined-hero .nx-hero-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-footer.nx-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-footer.nx-footer .site-footer-top,
.site-footer.nx-footer .nx-footer-bottom {
  width: min(calc(100% - 2rem), var(--nx-content));
  max-width: var(--nx-content);
  margin-left: auto;
  margin-right: auto;
}

.site-shell {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .site-footer.nx-footer {
    width: 100%;
    border-radius: 0;
  }

  .site-footer.nx-footer .site-footer-top,
  .site-footer.nx-footer .nx-footer-bottom {
    width: min(calc(100% - 1.25rem), var(--nx-content));
  }
}
