/* NEXORA — design system */
:root {
  --nx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
  --nx-accent: #e8c547;
  --nx-accent-2: #c9a227;
  --nx-dark-bg: #0a0b0e;
  --nx-light-bg: #f7f8fa;
  --nx-radius: 18px;
  --nx-radius-sm: 12px;
  --nx-space: 8px;
  --nx-max: 1200px;
  --nx-header: 76px;
  --nx-ease: cubic-bezier(.22, 1, .36, 1);
  --nx-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

html[data-theme="dark"] {
  --nx-bg: var(--nx-dark-bg);
  --nx-bg-2: #101218;
  --nx-surface: #151822;
  --nx-surface-2: #1b1f2b;
  --nx-card: #171b26;
  --nx-text: #f3f5f8;
  --nx-muted: #9aa3b5;
  --nx-line: rgba(255, 255, 255, .08);
  --nx-line-2: rgba(232, 197, 71, .28);
  --nx-invert: #fff;
  --nx-glass: rgba(16, 18, 24, .72);
  --nx-shadow: 0 22px 50px rgba(0, 0, 0, .45);
  --nx-hero-grid: rgba(232, 197, 71, .07);
  color-scheme: dark;
}

html[data-theme="light"] {
  --nx-bg: var(--nx-light-bg);
  --nx-bg-2: #eef1f6;
  --nx-surface: #ffffff;
  --nx-surface-2: #f3f5f8;
  --nx-card: #ffffff;
  --nx-text: #12141a;
  --nx-muted: #5c6575;
  --nx-line: rgba(18, 20, 26, .1);
  --nx-line-2: rgba(201, 162, 39, .35);
  --nx-invert: #12141a;
  --nx-glass: rgba(255, 255, 255, .78);
  --nx-shadow: 0 18px 40px rgba(18, 20, 26, .08);
  --nx-hero-grid: rgba(18, 20, 26, .05);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nx-font);
  background: var(--nx-bg);
  color: var(--nx-text);
  line-height: 1.65;
  font-size: 16px;
  transition: background-color .35s var(--nx-ease), color .35s var(--nx-ease);
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

[hidden] {
  display: none !important;
}

.nx-skip {
  position: absolute; left: 16px; top: -40px; z-index: 1000;
  background: var(--nx-accent); color: #0a0b0e; padding: 8px 14px; border-radius: 10px;
}
.nx-skip:focus { top: 12px; }

.nx-container { width: min(calc(100% - 40px), var(--nx-max)); margin-inline: auto; }
.nx-narrow { width: min(calc(100% - 40px), 760px); }
.nx-main { padding-bottom: 64px; }

.nx-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--nx-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--nx-accent); margin-bottom: 12px;
}
.nx-kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--nx-accent);
}
.nx-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--nx-muted); max-width: 62ch; }
.nx-muted { color: var(--nx-muted); }
.nx-count { font-family: var(--nx-mono); font-size: 12px; color: var(--nx-muted); }

/* Buttons */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--nx-line);
  background: var(--nx-surface); cursor: pointer; font-weight: 650;
  transition: transform .2s var(--nx-ease), background .2s, border-color .2s, box-shadow .2s;
}
.nx-btn:hover { transform: translateY(-1px); border-color: var(--nx-accent); }
.nx-btn-primary {
  background: var(--nx-accent); color: #0a0b0e; border-color: transparent;
  box-shadow: 0 8px 24px rgba(232, 197, 71, .22);
}
.nx-btn-primary:hover { background: #f3d56a; }
.nx-btn-ghost { background: transparent; }
.nx-btn-lg { min-height: 52px; padding: 0 22px; }
.nx-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.nx-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nx-text-link {
  color: var(--nx-accent); font-weight: 650; display: inline-flex; align-items: center; gap: 6px;
}
.nx-text-link::after { content: "→"; transition: transform .2s; }
.nx-text-link:hover::after { transform: translateX(4px); }

.nx-icon { display: inline-flex; width: 20px; height: 20px; }
.nx-icon svg { width: 100%; height: 100%; }
.nx-icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--nx-line);
  background: transparent; display: grid; place-items: center; cursor: pointer;
  color: var(--nx-text);
}
.nx-icon-btn:hover { border-color: var(--nx-accent); color: var(--nx-accent); }

:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 3px;
}

/* Header */
.nx-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--nx-glass) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.nx-header.is-scrolled { border-bottom-color: var(--nx-line); }
.nx-header-inner {
  min-height: var(--nx-header);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.nx-header-line {
  height: 1px; background: linear-gradient(90deg, transparent, var(--nx-accent), transparent);
  opacity: .35;
}
.nx-logo { margin: 0; }
.nx-logo-link, .nx-logo a { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; }
.nx-logo-mark { width: 36px; height: 36px; color: var(--nx-text); display: grid; }
.nx-logo-word { font-size: 1.15rem; }
.nx-nav-list { display: flex; gap: 6px; list-style: none; justify-content: center; }
.nx-nav-list > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; position: relative;
}
.nx-nav-list > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--nx-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--nx-ease);
}
.nx-nav-list > li > a:hover::after,
.nx-nav-list > .current-menu-item > a::after { transform: scaleX(1); }
.nx-nav-list .sub-menu {
  position: absolute; min-width: 220px; padding: 10px;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 14px;
  box-shadow: var(--nx-shadow); list-style: none; display: none;
}
.nx-nav-list > li { position: relative; }
.nx-nav-list > li:hover > .sub-menu,
.nx-nav-list > li:focus-within > .sub-menu { display: block; }
.nx-nav-list .sub-menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.nx-nav-list .sub-menu a:hover { background: var(--nx-surface-2); }
.nx-header-actions { display: flex; align-items: center; gap: 8px; }
.nx-burger { display: none; }
.nx-mega-panel {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(920px, calc(100vw - 48px));
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 18px;
  padding: 20px; box-shadow: var(--nx-shadow); margin-top: 8px;
}
.nx-mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nx-mega-card {
  padding: 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-bg-2);
}
.nx-mega-card:hover { border-color: var(--nx-accent); }
.nx-mega-card span { display: block; color: var(--nx-muted); font-size: 12px; }

.nx-theme-toggle {
  width: 54px; height: 32px; border-radius: 999px; border: 1px solid var(--nx-line);
  background: var(--nx-surface-2); position: relative; cursor: pointer; padding: 0;
}
.nx-theme-toggle .nx-icon { position: absolute; top: 6px; width: 16px; height: 16px; }
.nx-theme-toggle .is-moon { left: 8px; }
.nx-theme-toggle .is-sun { right: 8px; }
.nx-theme-toggle-track {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--nx-accent); transition: transform .25s var(--nx-ease);
}
html[data-theme="light"] .nx-theme-toggle-track { transform: translateX(22px); }

/* Drawer */
.nx-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); }
.nx-drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(400px, 92vw);
  background: var(--nx-bg); padding: 20px; overflow: auto;
  transform: translateX(100%); transition: transform .3s var(--nx-ease);
}
.nx-drawer.is-open .nx-drawer-panel { transform: none; }
.nx-drawer-head, .nx-drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nx-drawer-list { list-style: none; margin: 24px 0; }
.nx-drawer-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--nx-line); font-weight: 650; }

/* Search modal */
.nx-search-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,7,10,.62);
  place-items: start center; padding-top: 12vh;
}
.nx-search-modal.is-open {
  display: grid;
}
.nx-search-dialog {
  width: min(680px, calc(100% - 32px)); background: var(--nx-surface);
  border: 1px solid var(--nx-line); border-radius: 18px; padding: 16px; box-shadow: var(--nx-shadow);
}
.nx-search-bar { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--nx-line); padding-bottom: 10px; }
.nx-live-search { flex: 1; background: transparent; border: 0; outline: none; font-size: 1.1rem; }
.nx-search-results a, .nx-search-item {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px;
}
.nx-search-item:hover, .nx-search-item:focus { background: var(--nx-surface-2); }
.nx-search-hint { color: var(--nx-muted); font-size: 13px; margin: 10px 0 0; }

/* Hero */
.nx-hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.nx-hero-grid-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(232,197,71,.12), transparent 50%),
    linear-gradient(var(--nx-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--nx-hero-grid) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 75%);
}
.nx-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.nx-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; max-width: 16ch; }
.nx-hero-note { font-family: var(--nx-mono); font-size: 12px; color: var(--nx-muted); margin-top: 18px; }

.nx-device-stage { position: relative; min-height: 420px; display: grid; place-items: center; }
.nx-orbit {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--nx-accent) 45%, transparent);
}
.nx-phone {
  width: 210px; height: 400px; border-radius: 34px; padding: 12px;
  background: linear-gradient(180deg, #2a2f3d, #12141c);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.nx-phone-notch {
  width: 72px; height: 10px; border-radius: 8px; background: #0a0b0e; margin: 4px auto 10px;
}
.nx-phone-screen {
  height: calc(100% - 24px); border-radius: 24px; background: #0c0e14; position: relative; overflow: hidden;
  border: 1px solid rgba(232,197,71,.2);
}
.nx-scan {
  position: absolute; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(232,197,71,.18), transparent);
  animation: nx-scan 3.6s var(--nx-ease) infinite;
}
.nx-hud {
  position: absolute; left: 16px; top: 28px; font-family: var(--nx-mono); font-size: 10px; color: var(--nx-accent);
}
.nx-hud.is-2 { top: 52px; opacity: .7; }
.nx-hud.is-3 { top: 76px; opacity: .5; }
.nx-bars { position: absolute; left: 16px; right: 16px; bottom: 24px; display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.nx-bars i { flex: 1; background: var(--nx-accent); display: block; border-radius: 4px 4px 0 0; opacity: .8; }
.nx-bars i:nth-child(1) { height: 30%; }
.nx-bars i:nth-child(2) { height: 62%; }
.nx-bars i:nth-child(3) { height: 44%; }
.nx-bars i:nth-child(4) { height: 80%; }
.nx-float {
  position: absolute; padding: 10px 12px; border-radius: 12px; background: var(--nx-glass);
  border: 1px solid var(--nx-line); font-size: 13px; backdrop-filter: blur(10px);
}
.nx-float em { display: block; font-style: normal; font-family: var(--nx-mono); font-size: 10px; color: var(--nx-accent); }
.nx-float-1 { top: 40px; left: 0; }
.nx-float-2 { right: 0; top: 160px; }
.nx-float-3 { bottom: 30px; left: 20px; }
@keyframes nx-scan { from { top: -80px; } to { top: 110%; } }

/* Sections */
.nx-section { padding: 72px 0; }
.nx-section-head { margin-bottom: 28px; max-width: 70ch; }
.nx-section-head-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; max-width: none; }
.nx-section-cta { margin-top: 24px; }

.nx-grid { display: grid; gap: 20px; }
.nx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nx-grid-4 { grid-template-columns: repeat(4, 1fr); }

.nx-card {
  background: var(--nx-card); border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  overflow: hidden; transition: transform .25s var(--nx-ease), border-color .25s, box-shadow .25s;
}
.nx-card:hover { transform: translateY(-4px); border-color: var(--nx-line-2); box-shadow: var(--nx-shadow); }
.nx-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--nx-surface-2); position: relative; }
.nx-card-media img, .nx-media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--nx-ease); }
.nx-card:hover .nx-card-media img { transform: scale(1.05); }
.nx-card-body { padding: 18px; }
.nx-card-title { font-size: 1.15rem; margin: 8px 0; }
.nx-card-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; }
.nx-card-badge {
  position: absolute; left: 12px; top: 12px; background: var(--nx-accent); color: #0a0b0e;
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
}
.nx-media-fallback {
  height: 100%; display: grid; place-items: center; gap: 8px; color: var(--nx-accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(232,197,71,.16), transparent 40%),
    linear-gradient(160deg, var(--nx-surface-2), var(--nx-bg));
}
.nx-pad { padding: 22px; }

.nx-chips, .nx-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.nx-chip {
  display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px;
  border-radius: 999px; border: 1px solid var(--nx-line); font-size: 12px; background: var(--nx-bg-2);
}
.nx-chip-label { color: var(--nx-muted); font-family: var(--nx-mono); font-size: 10px; text-transform: uppercase; }
.nx-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; color: var(--nx-muted); font-size: 13px; }

.nx-brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nx-brand-card {
  display: grid; gap: 8px; padding: 18px; border-radius: 16px; border: 1px solid var(--nx-line);
  background: var(--nx-card); min-height: 180px;
}
.nx-brand-card:hover { border-color: var(--nx-accent); transform: translateY(-3px); }
.nx-brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--nx-accent) 16%, transparent); color: var(--nx-accent); font-weight: 800;
}
.nx-brand-count { font-family: var(--nx-mono); font-size: 11px; color: var(--nx-muted); margin-top: auto; }

.nx-featured-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.nx-featured-stack { display: grid; gap: 16px; }
.nx-featured-card { display: grid; grid-template-columns: 1fr; min-height: 100%; }
.nx-featured-card .nx-card-media { aspect-ratio: 16/9; min-height: 260px; }
.nx-archive-grid { margin-top: 20px; }
.nx-list-stack { display: grid; gap: 16px; }
.nx-list-card { display: grid; grid-template-columns: 140px 1fr; }
.nx-list-card .nx-card-media { aspect-ratio: auto; height: 100%; }

.nx-know-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.nx-know-card {
  padding: 18px; border-radius: 16px; border: 1px solid var(--nx-line); background: var(--nx-card);
  display: grid; gap: 8px;
}
.nx-know-card:hover { border-color: var(--nx-accent); }
.nx-know-card span { color: var(--nx-muted); font-size: 13px; }

.nx-rating-board { text-align: right; }
.nx-rating-board strong { font-size: 2.4rem; display: block; }
.nx-stars { color: var(--nx-accent); display: flex; gap: 2px; }
.nx-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nx-review-card { margin: 0; padding: 20px; border-radius: 16px; background: var(--nx-card); border: 1px solid var(--nx-line); }
.nx-review-card footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.nx-review-card cite { font-style: normal; font-weight: 700; display: block; }
.nx-review-card time { color: var(--nx-muted); font-size: 12px; }
.nx-avatar-letter {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--nx-surface-2); font-weight: 800;
}
.nx-verified { margin-left: auto; font-size: 11px; font-family: var(--nx-mono); color: var(--nx-accent); }

.nx-location-split, .nx-location-layout, .nx-contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.nx-location-panel, .nx-cta-panel {
  background: var(--nx-card); border: 1px solid var(--nx-line); border-radius: 20px; padding: 24px;
}
.nx-contact-list { list-style: none; display: grid; gap: 12px; }
.nx-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.nx-map-frame { border-radius: 16px; overflow: hidden; min-height: 240px; border: 1px solid var(--nx-line); background: var(--nx-surface-2); }
.nx-map-frame iframe { width: 100%; height: 280px; border: 0; }
.nx-map-placeholder { min-height: 240px; display: grid; place-items: center; gap: 8px; color: var(--nx-muted); text-align: center; padding: 24px; }
.nx-bottom-cta { padding-top: 0; }
.nx-cta-panel { display: flex; justify-content: space-between; gap: 24px; align-items: center; }

/* Page / article */
.nx-page-hero { padding: 40px 0 24px; }
.nx-page-hero h1, .nx-article-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.nx-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; color: var(--nx-muted); font-size: 13px; }
.nx-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.nx-article-hero { padding: 36px 0 10px; }
.nx-article-byline { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.nx-article-byline img { border-radius: 50%; }
.nx-article-figure { margin: 24px auto; border-radius: 20px; overflow: hidden; }
.nx-article-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.nx-toc {
  position: sticky; top: calc(var(--nx-header) + 16px); padding: 16px;
  border: 1px solid var(--nx-line); border-radius: 16px; background: var(--nx-card);
}
.nx-toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-toc ol { list-style: none; display: grid; gap: 8px; }
.nx-toc a { font-size: 14px; color: var(--nx-muted); }
.nx-toc a:hover, .nx-toc a.is-active { color: var(--nx-accent); }
.nx-article-body { font-size: 1.05rem; }
.nx-article-body h2 { margin-top: 1.6em; }
.nx-article-body a { color: var(--nx-accent); text-decoration: underline; text-underline-offset: 3px; }
.nx-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nx-article-cta, .nx-author-box {
  margin: 40px 0; padding: 24px; border-radius: 18px; border: 1px solid var(--nx-line); background: var(--nx-card);
}
.nx-author-box { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.nx-author-box img { border-radius: 50%; }
.nx-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 40px; }
.nx-post-nav-item { padding: 18px; border-radius: 16px; border: 1px solid var(--nx-line); display: grid; gap: 6px; }
.nx-post-nav-item span { color: var(--nx-muted); font-size: 12px; }
.nx-post-nav-item.is-next { text-align: right; }

.nx-archive-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.nx-archive-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.nx-filter-form, .nx-search-page-form, .nx-search-form { display: flex; gap: 8px; }
.nx-select, .nx-search-page-form input, .nx-search-form input, .nx-form input, .nx-form textarea, .nx-form select {
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 12px; padding: 10px 12px; width: 100%;
}
.nx-view-toggle { display: flex; border: 1px solid var(--nx-line); border-radius: 12px; overflow: hidden; }
.nx-view-toggle a { padding: 8px 14px; }
.nx-view-toggle .is-active { background: var(--nx-accent); color: #0a0b0e; }
.nx-sidebar .nx-widget { margin-bottom: 24px; padding: 18px; border: 1px solid var(--nx-line); border-radius: 16px; background: var(--nx-card); }
.nx-widget ul { list-style: none; display: grid; gap: 8px; }
.nx-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0; }
.nx-pagination a, .nx-pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--nx-line);
}
.nx-pagination .current { background: var(--nx-accent); color: #0a0b0e; border-color: transparent; }

.nx-form { display: grid; gap: 14px; }
.nx-form-row { display: grid; gap: 6px; }
.nx-form-note { color: var(--nx-muted); font-size: 13px; }
.nx-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.nx-alert-success { background: color-mix(in srgb, #3dd68c 16%, var(--nx-card)); }
.nx-alert-warn { background: color-mix(in srgb, var(--nx-accent) 16%, var(--nx-card)); }
.nx-faq-item { border: 1px solid var(--nx-line); border-radius: 14px; padding: 4px 16px; background: var(--nx-card); margin-bottom: 10px; }
.nx-faq-item summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.nx-empty { text-align: center; padding: 64px 16px; }
.nx-404 { padding: 80px 0; }
.nx-author-hero { display: flex; gap: 20px; align-items: center; }
.nx-author-hero img { border-radius: 50%; }

.nx-comments { margin-top: 48px; }
.nx-comment-list { list-style: none; }
.nx-comment { margin: 0 0 20px; }
.nx-comment article { padding: 16px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-card); }
.nx-comment-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.nx-comment-head img { border-radius: 50%; }
.nx-comment .children { margin-left: 24px; list-style: none; }

/* Footer */
.nx-footer { position: relative; background: var(--nx-bg-2); border-top: 1px solid var(--nx-line); margin-top: 40px; }
.nx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr) 1.1fr; gap: 28px; padding: 56px 0 32px; }
.nx-footer h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-muted); }
.nx-footer ul { list-style: none; display: grid; gap: 8px; }
.nx-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 16px; }
.nx-footer-bar { border-top: 1px solid var(--nx-line); }
.nx-footer-bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; color: var(--nx-muted); font-size: 13px; }
.nx-legal { display: flex; gap: 16px; list-style: none; }
.nx-footer-glow {
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-accent), transparent);
}

/* Gutenberg content helpers */
.entry-content > * { margin-bottom: 1.1em; }
.entry-content .alignwide { width: min(100%, 1000px); }
.entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-quote, blockquote {
  border-left: 3px solid var(--nx-accent); padding: 8px 0 8px 16px; color: var(--nx-muted);
}
.wp-block-table table, table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th, td, th {
  border: 1px solid var(--nx-line); padding: 10px 12px; text-align: left;
}
.wp-block-separator { border: 0; height: 1px; background: var(--nx-line); }
.wp-block-button__link { background: var(--nx-accent) !important; color: #0a0b0e !important; border-radius: 12px !important; }
.is-style-nx-callout-info, .is-style-nx-callout-tip, .is-style-nx-callout-warn {
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--nx-line);
}
.is-style-nx-callout-info { background: color-mix(in srgb, #5b8def 12%, var(--nx-card)); }
.is-style-nx-callout-tip { background: color-mix(in srgb, #3dd68c 12%, var(--nx-card)); }
.is-style-nx-callout-warn { background: color-mix(in srgb, var(--nx-accent) 14%, var(--nx-card)); }
.is-style-nx-steps { counter-reset: nxstep; list-style: none; display: grid; gap: 12px; }
.is-style-nx-steps li { counter-increment: nxstep; padding-left: 42px; position: relative; }
.is-style-nx-steps li::before {
  content: counter(nxstep); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 8px; background: var(--nx-accent); color: #0a0b0e;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.is-style-nx-checklist { list-style: none; display: grid; gap: 8px; }
.is-style-nx-checklist li { padding-left: 28px; position: relative; }
.is-style-nx-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--nx-accent); font-weight: 800; }
.is-style-nx-pros, .is-style-nx-cons { padding: 16px; border-radius: 14px; border: 1px solid var(--nx-line); }
.is-style-nx-specs table { font-family: var(--nx-mono); font-size: 13px; }

.nx-reveal { opacity: 0; transform: translateY(14px); animation: nx-in .7s var(--nx-ease) forwards; }
@keyframes nx-in { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nx-brand-grid, .nx-know-grid { grid-template-columns: repeat(3, 1fr); }
  .nx-grid-4, .nx-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nx-mega-grid { grid-template-columns: repeat(3, 1fr); }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-featured-layout, .nx-hero-inner, .nx-article-grid, .nx-archive-layout,
  .nx-location-split, .nx-contact-layout, .nx-location-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nx-nav, .nx-header-cta { display: none; }
  .nx-burger { display: grid; }
  .nx-header-inner { grid-template-columns: auto 1fr; }
  .nx-header-actions { justify-self: end; }
  .nx-brand-grid, .nx-know-grid, .nx-review-grid, .nx-grid-2 { grid-template-columns: 1fr 1fr; }
  .nx-list-card { grid-template-columns: 1fr; }
  .nx-cta-panel, .nx-author-box, .nx-post-nav, .nx-author-hero { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nx-container { width: min(calc(100% - 28px), var(--nx-max)); }
  .nx-brand-grid, .nx-know-grid, .nx-review-grid, .nx-grid-2, .nx-grid-3, .nx-grid-4 { grid-template-columns: 1fr; }
  .nx-hero { padding-top: 32px; }
  .nx-section { padding: 48px 0; }
  .nx-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .nx-reveal { opacity: 1; transform: none; }
}
