/*
 * Lanyo case study — the homepage.
 *
 * "Nexus Dark Precision", transcribed from the comp's tailwind-config in
 * dev-doc/stitch_lanyo_case_study_webpage/lanyo_case_study_ardia_nexus/code.html
 * (and nexus_dark_precision/DESIGN.md). Every value below is the comp's; none
 * is taken by eye from the PNG.
 *
 * Scoped to `body.nx`, and loaded by landing.case-study.layout only — the
 * case study and the events catalogue. The event detail, cart and checkout
 * pages stay on apex.css.
 *
 * It loads after Bootstrap 5.3 (public/apps/vendor/css/core.css, Vuexy's
 * build). Bootstrap supplies the grid, the collapse and the pagination
 * markup; everything the comps describe is set here, scoped under `.nx` so
 * it outranks core.css's admin skin.
 */

:root {
    /* Surfaces, darkest to lightest */
    --nx-surface-base: #0a0a0c;
    --nx-surface-elevated: #0f0f12;
    --nx-surface-overlay: #18191e;
    --nx-surface-container: #1f2022;
    --nx-surface-container-high: #292a2c;
    --nx-surface-container-highest: #343537;
    --nx-surface-container-lowest: #0d0e10;

    /* Accents */
    --nx-primary: #6fffdb;
    --nx-primary-container: #00e5be;
    --nx-on-primary-container: #00614f;
    --nx-secondary: #ffb0cd;
    --nx-secondary-container: #7c254f;
    --nx-accent-teal: #14b8a6;
    --nx-error: #ffb4ab;

    /* Ink */
    --nx-text-primary: #ffffff;
    --nx-text-secondary: #94a3b8;
    --nx-text-muted: #64748b;
    --nx-on-surface: #e3e2e4;
    --nx-on-surface-variant: #b9cac3;

    /* Glow is the hover signal, not shadow */
    --nx-glow-btn: 0 0 20px rgba(0, 229, 190, 0.35);
    --nx-glow-btn-hover: 0 0 28px rgba(0, 229, 190, 0.55);

    /* Radii — the comp's DEFAULT / lg / full */
    --nx-radius: 1rem;
    --nx-radius-lg: 2rem;
    --nx-radius-full: 9999px;

    /* Spacing */
    --nx-space-xs: 0.25rem;
    --nx-space-sm: 0.5rem;
    --nx-space-md: 1rem;
    --nx-space-lg: 1.5rem;
    --nx-space-xl: 2.5rem;
    --nx-space-2xl: 4rem;
    --nx-gutter: 1.5rem;
    --nx-margin: 1.25rem;

    --nx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nx-header-height: 5rem;
}

@media (min-width: 768px) {
    :root { --nx-margin: 2rem; }
}

@media (min-width: 1024px) {
    :root { --nx-margin: 4rem; }
}

/* ---------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; }

body.nx {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--nx-surface-base);
    color: var(--nx-on-surface);
    font-family: var(--nx-font);
    font-size: 15px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

.nx ::selection {
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
}

.nx h1, .nx h2, .nx h3, .nx p, .nx figure, .nx blockquote, .nx dl, .nx dd { margin: 0; }

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

.nx img { display: block; max-width: 100%; }

.nx .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    user-select: none;
}

.nx :focus-visible {
    outline: 2px solid var(--nx-primary-container);
    outline-offset: 3px;
}

.nx-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nx-skip {
    position: absolute;
    left: var(--nx-space-md);
    top: -4rem;
    z-index: 100;
    padding: var(--nx-space-sm) var(--nx-space-md);
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
    font-weight: 700;
}

.nx-skip:focus { top: var(--nx-space-md); }

/* ---------------------------------------------------------------- type scale */

.nx-display {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--nx-text-primary);
    text-transform: uppercase;
}

.nx-headline-lg {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--nx-text-primary);
}

.nx-headline-md {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--nx-text-primary);
}

.nx-headline-sm {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--nx-text-primary);
}

@media (min-width: 768px) {
    .nx-display {
        font-size: 56px;
        line-height: 64px;
        letter-spacing: -0.03em;
    }

    .nx-headline-lg {
        font-size: 40px;
        line-height: 48px;
        letter-spacing: -0.02em;
    }
}

.nx-body-lg {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.01em;
    color: var(--nx-text-secondary);
}

.nx-body-md {
    font-size: 15px;
    line-height: 24px;
    color: var(--nx-text-secondary);
}

.nx-body-sm {
    font-size: 13px;
    line-height: 20px;
    color: var(--nx-text-secondary);
}

.nx-label {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--nx-text-muted);
}

.nx-eyebrow {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.15em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--nx-primary-container);
}

.nx-eyebrow--icon {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-xs);
    color: var(--nx-primary);
}

.nx-eyebrow--icon .material-symbols-outlined { font-size: 18px; }

.nx-measure-wide { max-width: 48rem; }

/* ---------------------------------------------------------------- layout */

.nx-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--nx-margin);
}

.nx-main {
    position: relative;
    z-index: 10;
    padding-top: var(--nx-header-height);
}

.nx-stack {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-2xl);
    padding-block: var(--nx-space-xl);
}

.nx-section {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xl);
}

.nx-section__head {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    max-width: 42rem;
}

.nx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nx-gutter);
}

@media (min-width: 640px) {
    .nx-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .nx-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .nx-grid--features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .nx-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .nx-grid--features { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- ambient glows */

.nx-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.nx-ambient__glow,
.nx-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nx-ambient__glow--a {
    top: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(0, 229, 190, 0.15);
    filter: blur(140px);
}

.nx-ambient__glow--b {
    top: 33%;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    background: rgba(124, 37, 79, 0.2);
    filter: blur(160px);
}

.nx-ambient__glow--c {
    bottom: -10rem;
    left: 33%;
    width: 32rem;
    height: 32rem;
    background: rgba(0, 229, 190, 0.1);
    filter: blur(150px);
}

/* ---------------------------------------------------------------- header */

.nx-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nx-header__bar {
    height: var(--nx-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-gutter);
}

.nx-header__brand { display: flex; align-items: center; }

.nx-logo { display: block; width: auto; }
.nx-logo--header { height: 2.75rem; margin-left: -10px; }
.nx-logo--footer { height: 3rem; margin-left: -10px; align-self: flex-start; }

.nx-nav {
    display: none;
    align-items: center;
    gap: var(--nx-space-sm);
    padding: var(--nx-space-xs) var(--nx-space-sm);
    border-radius: var(--nx-radius-full);
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nx-nav__link {
    padding: var(--nx-space-xs) var(--nx-space-md);
    border-radius: var(--nx-radius-full);
    color: var(--nx-on-surface-variant);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.02em;
    font-weight: 600;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.nx-nav__link:hover { color: var(--nx-on-surface); }

.nx-nav__link.is-current {
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
    box-shadow: 0 0 16px rgba(0, 229, 190, 0.3);
}

.nx-header__actions {
    display: flex;
    align-items: center;
    gap: var(--nx-space-md);
}

.nx-header .nx-header__cta { display: none; }

.nx-header__toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-elevated);
    color: var(--nx-on-surface-variant);
    cursor: pointer;
    transition: color 0.2s;
}

.nx-header__toggle:hover { color: var(--nx-on-surface); }

/* Bootstrap's collapse flips aria-expanded; the icon follows it. */
.nx-header__toggle-close,
.nx-header__toggle[aria-expanded="true"] .nx-header__toggle-open { display: none; }
.nx-header__toggle[aria-expanded="true"] .nx-header__toggle-close { display: inline; }

.nx-mobile-menu {
    padding: var(--nx-space-lg) var(--nx-margin);
    background: rgba(24, 25, 30, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.nx-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
}

.nx-mobile-menu__link {
    padding: var(--nx-space-sm) var(--nx-space-md);
    border-radius: var(--nx-radius-lg);
    color: var(--nx-on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nx-mobile-menu__link:hover { color: var(--nx-on-surface); }

.nx-mobile-menu__link.is-current {
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
    font-weight: 700;
}

.nx-mobile-menu__cta { margin-top: var(--nx-space-sm); justify-content: center; }

@media (min-width: 640px) {
    .nx-header .nx-header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
    .nx-nav { display: flex; }
    .nx-header__toggle,
    .nx-mobile-menu { display: none !important; }
}

/* ---------------------------------------------------------------- buttons, chips, pills */

.nx-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-xs);
    padding: var(--nx-space-sm) var(--nx-space-lg);
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.02em;
    font-weight: 700;
    box-shadow: var(--nx-glow-btn);
    transition: box-shadow 0.2s, transform 0.2s;
}

.nx-btn:hover { box-shadow: var(--nx-glow-btn-hover); }

.nx-btn .material-symbols-outlined { font-size: 18px; }

.nx-btn--lg {
    padding: var(--nx-space-md) var(--nx-space-xl);
    box-shadow: 0 0 24px rgba(0, 229, 190, 0.4);
}

.nx-btn--lg:hover {
    box-shadow: 0 0 36px rgba(0, 229, 190, 0.6);
    transform: scale(1.05);
}

.nx-btn--lg .material-symbols-outlined { font-size: 20px; }

.nx-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-xs);
    width: fit-content;
    padding: var(--nx-space-xs) var(--nx-space-md);
    border-radius: var(--nx-radius-full);
    background: rgba(0, 229, 190, 0.1);
    color: var(--nx-primary-container);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.15em;
    font-weight: 800;
    text-transform: uppercase;
}

.nx-chip__pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--nx-primary-container);
    animation: nx-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes nx-pulse {
    50% { opacity: 0.5; }
}

.nx-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-xs);
    padding: var(--nx-space-xs) var(--nx-space-md);
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    color: var(--nx-on-surface-variant);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}

.nx-pill__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--nx-accent-teal);
}

.nx-pill--accent { color: var(--nx-primary-container); }
.nx-pill--accent .material-symbols-outlined { font-size: 16px; }

.nx-tag {
    padding: var(--nx-space-xs) var(--nx-space-sm);
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    color: var(--nx-primary);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ---------------------------------------------------------------- icons */

.nx-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nx-icon .material-symbols-outlined { font-size: 22px; }

.nx-icon--lg { width: 3rem; height: 3rem; }
.nx-icon--lg .material-symbols-outlined { font-size: 24px; }

.nx-icon--teal { background: rgba(0, 229, 190, 0.2); color: var(--nx-primary-container); }
.nx-icon--magenta { background: rgba(124, 37, 79, 0.3); color: var(--nx-secondary); }
.nx-grid--4 .nx-icon--magenta { background: rgba(124, 37, 79, 0.2); }
.nx-icon--soft { background: rgba(0, 229, 190, 0.1); color: var(--nx-primary-container); }
.nx-icon--soft .material-symbols-outlined { font-size: 20px; }
.nx-icon--solid { background: var(--nx-primary-container); color: var(--nx-on-primary-container); }

/* ---------------------------------------------------------------- cards & panels */

.nx-card {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
    padding: var(--nx-space-lg);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-elevated);
}

.nx-card--compact { gap: var(--nx-space-sm); }
.nx-card--compact .nx-body-sm { line-height: 1.625; }

.nx-card--lift {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.nx-card--lift:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.nx-card--hover { transition: background-color 0.2s; }
.nx-card--hover:hover { background: var(--nx-surface-overlay); }

.nx-card__text {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
}

.nx-card__text .nx-body-md { line-height: 1.625; }

.nx-card__pain {
    margin-top: auto;
    padding-top: var(--nx-space-md);
    display: flex;
    align-items: center;
    gap: var(--nx-space-xs);
    color: var(--nx-text-muted);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.nx-card__pain .material-symbols-outlined { font-size: 16px; color: var(--nx-error); }

.nx-panel {
    display: flex;
    flex-direction: column;
    border-radius: var(--nx-radius-lg);
}

.nx-panel--sweep {
    background: linear-gradient(to right, var(--nx-surface-elevated), var(--nx-surface-overlay), var(--nx-surface-elevated));
}

.nx-framing {
    gap: var(--nx-space-sm);
    padding: var(--nx-space-xl);
}

.nx-framing .nx-body-lg { line-height: 1.625; }

/* ---------------------------------------------------------------- 1. hero */

.nx-hero {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

.nx-hero__head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--nx-space-md);
}

.nx-hero__title {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    max-width: 48rem;
}

.nx-hero__tagline {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--nx-primary);
}

.nx-hero__lead {
    max-width: 28rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .nx-hero__head {
        flex-direction: row;
        align-items: flex-end;
    }
}

.nx-hero__visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-elevated);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.nx-hero__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.nx-hero__visual img:hover { transform: scale(1.01); }

@media (min-width: 768px) {
    .nx-hero__visual img { aspect-ratio: 21 / 9; }
}

.nx-glow--teal {
    top: -8rem;
    left: -8rem;
    width: 20rem;
    height: 20rem;
    background: rgba(0, 229, 190, 0.15);
    filter: blur(130px);
}

.nx-glow--magenta {
    bottom: -8rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(124, 37, 79, 0.25);
    filter: blur(140px);
}

/* ---------------------------------------------------------------- 2. at a glance */

.nx-glance {
    padding: var(--nx-space-lg);
    border-radius: var(--nx-radius-lg);
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.nx-glance__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-md);
    padding-bottom: var(--nx-space-md);
}

.nx-glance__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nx-space-lg);
}

.nx-glance__item {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
}

.nx-glance__item dd {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
}

.nx-glance__item--status {
    padding: var(--nx-space-md);
    border-radius: var(--nx-radius);
    background: var(--nx-surface-overlay);
}

.nx-glance__status {
    display: flex;
    align-items: center;
    gap: var(--nx-space-xs);
    color: var(--nx-primary-container);
    font-weight: 700;
}

.nx-glance__status .material-symbols-outlined { font-size: 20px; }

@media (min-width: 640px) {
    .nx-glance__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .nx-glance__grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------------------------------------------------------------- 4. challenge callout */

.nx-callout {
    display: flex;
    align-items: center;
    gap: var(--nx-space-md);
    padding: var(--nx-space-lg);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-container-high);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nx-callout p {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--nx-text-primary);
}

/* ---------------------------------------------------------------- 5. approach */

.nx-tier__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nx-tier__icon { color: var(--nx-text-muted); }

.nx-tier__who { color: var(--nx-primary-container); }

.nx-tier__mandate {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    padding: var(--nx-space-md);
    border-radius: var(--nx-radius);
    background: var(--nx-surface-overlay);
}

.nx-tier__mandate .nx-body-sm { color: var(--nx-on-surface); }

.nx-note {
    display: flex;
    align-items: flex-start;
    gap: var(--nx-space-md);
    padding: var(--nx-space-md);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-overlay);
}

.nx-note > .material-symbols-outlined {
    margin-top: var(--nx-space-xs);
    color: var(--nx-primary-container);
}

.nx-note > div {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
}

.nx-note__title {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.025em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nx-text-primary);
}

.nx-note .nx-body-md { line-height: 1.625; }

@media (min-width: 768px) {
    .nx-note { padding: var(--nx-space-lg); }
}

/* ---------------------------------------------------------------- 6. business model band */

.nx-business {
    flex-direction: column;
    justify-content: space-between;
    gap: var(--nx-space-md);
    background: linear-gradient(to right, var(--nx-surface-elevated), var(--nx-surface-container), var(--nx-surface-elevated));
}

.nx-business__body {
    display: flex;
    align-items: center;
    gap: var(--nx-space-md);
}

.nx-business__body > div {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
}

.nx-business .nx-body-sm { max-width: 42rem; line-height: 1.625; }

.nx-business .nx-pill { align-self: flex-start; }

@media (min-width: 640px) {
    .nx-business {
        flex-direction: row;
        align-items: center;
    }

    .nx-business .nx-pill { align-self: center; }
}

@media (min-width: 768px) {
    .nx-business { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .nx-business { grid-column: span 3; }
}

/* ---------------------------------------------------------------- 8. results */

.nx-results {
    gap: var(--nx-space-xl);
    padding: var(--nx-space-lg);
    background: rgba(15, 15, 18, 0.7);
}

@media (min-width: 768px) {
    .nx-results { padding: var(--nx-space-xl); }
}

.nx-results__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--nx-gutter);
}

@media (min-width: 1024px) {
    .nx-results__grid { grid-template-columns: repeat(4, 1fr); }
}

.nx-stat {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    padding: var(--nx-space-md);
    border-radius: var(--nx-radius);
    background: var(--nx-surface-overlay);
}

.nx-stat__value {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--nx-primary-container);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .nx-stat__value { font-size: 56px; letter-spacing: -0.03em; }
}

.nx-stat__label {
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nx-text-secondary);
}

.nx-quote {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
    padding: var(--nx-space-xl);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-overlay);
}

.nx-quote__mark {
    font-size: 48px !important;
    color: rgba(111, 255, 219, 0.3);
}

.nx-quote blockquote {
    max-width: 48rem;
    font-style: italic;
    line-height: 1.625;
    color: var(--nx-on-surface);
}

.nx-quote figcaption {
    display: flex;
    flex-direction: column;
}

.nx-quote figcaption .nx-headline-sm { font-weight: 700; }

/* ---------------------------------------------------------------- 9. CTA */

.nx-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nx-space-lg);
    padding: var(--nx-space-xl);
    border-radius: var(--nx-radius-lg);
    background: linear-gradient(to bottom right, var(--nx-surface-elevated), var(--nx-surface-overlay), var(--nx-surface-base));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (min-width: 768px) {
    .nx-cta { padding: var(--nx-space-2xl); }
}

.nx-glow--cta {
    top: -6rem;
    left: 50%;
    width: 24rem;
    height: 24rem;
    transform: translateX(-50%);
    background: rgba(0, 229, 190, 0.15);
    filter: blur(140px);
}

.nx-cta__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nx-space-xs);
    max-width: 42rem;
}

.nx-cta__text .nx-body-lg { line-height: 1.625; }

.nx-display--cta { text-transform: none; }

.nx-cta .nx-btn {
    position: relative;
    z-index: 1;
    margin-top: var(--nx-space-xs);
}

/* ---------------------------------------------------------------- footer */

.nx-footer {
    position: relative;
    z-index: 10;
    margin-top: var(--nx-space-2xl);
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nx-footer__inner {
    padding-top: var(--nx-space-2xl);
    padding-bottom: var(--nx-space-xl);
}

.nx-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nx-gutter);
    margin-bottom: var(--nx-space-2xl);
}

@media (min-width: 768px) {
    .nx-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .nx-footer__grid {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--nx-space-xl);
    }

    .nx-footer__brand { grid-column: span 4; }
    .nx-footer__col--contact { grid-column: span 3; }
    .nx-footer__col--links { grid-column: span 2; }
    .nx-footer__col--subscribe { grid-column: span 3; }
}

.nx-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
}

.nx-footer__blurb { max-width: 24rem; line-height: 1.625; }

.nx-footer__social {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
    padding-top: var(--nx-space-xs);
}

.nx-footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nx-surface-overlay);
    color: var(--nx-text-secondary);
    transition: color 0.2s, background-color 0.2s;
}

.nx-footer__social-link:hover {
    color: var(--nx-primary-container);
    background: var(--nx-surface-container-highest);
}

.nx-footer__social-link .material-symbols-outlined { font-size: 20px; }

.nx-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-sm);
}

.nx-footer__heading {
    margin-bottom: var(--nx-space-xs);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nx-text-primary);
}

.nx-footer__heading--spaced { margin-top: var(--nx-space-sm); }

.nx-footer__address { line-height: 1.625; }

.nx-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    padding-top: var(--nx-space-xs);
    font-size: 13px;
    line-height: 20px;
}

.nx-footer__contact a {
    display: flex;
    align-items: center;
    gap: var(--nx-space-xs);
    color: var(--nx-on-surface-variant);
    transition: color 0.2s;
}

.nx-footer__contact a:hover { color: var(--nx-primary-container); }
.nx-footer__contact .material-symbols-outlined { font-size: 16px; }

.nx-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 20px;
    color: var(--nx-text-secondary);
}

.nx-footer__links a { transition: color 0.2s; }
.nx-footer__links a:hover { color: var(--nx-primary-container); }

.nx-subscribe {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xs);
    margin-top: var(--nx-space-xs);
}

.nx-subscribe__field { position: relative; }

.nx-subscribe__input {
    width: 100%;
    padding: var(--nx-space-sm) 3.5rem var(--nx-space-sm) var(--nx-space-md);
    border: 0;
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    color: var(--nx-on-surface);
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    transition: box-shadow 0.2s;
}

.nx-subscribe__input::placeholder { color: var(--nx-text-muted); }

.nx-subscribe__input:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--nx-primary-container);
}

.nx-subscribe__input[aria-invalid="true"] { box-shadow: 0 0 0 1px var(--nx-error); }

.nx-subscribe__submit {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: var(--nx-space-md);
    border: 0;
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: var(--nx-on-primary-container);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.nx-subscribe__submit:hover { box-shadow: 0 0 12px rgba(0, 229, 190, 0.4); }
.nx-subscribe__submit .material-symbols-outlined { font-size: 16px; }

.nx-subscribe__note {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--nx-text-muted);
}

.nx-subscribe__note--ok { color: var(--nx-primary-container); }
.nx-subscribe__note--error { color: var(--nx-error); }

.nx-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-md);
    margin-inline: calc(var(--nx-margin) * -1);
    padding: var(--nx-space-md) var(--nx-margin);
    border-radius: var(--nx-radius-lg);
    background: rgba(13, 14, 16, 0.4);
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    color: var(--nx-text-muted);
}

.nx-footer__legal {
    display: flex;
    align-items: center;
    gap: var(--nx-space-md);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.nx-footer__legal a { transition: color 0.2s; }
.nx-footer__legal a:hover { color: var(--nx-text-secondary); }

@media (min-width: 768px) {
    .nx-footer__bar {
        flex-direction: row;
        text-align: left;
    }
}

/* ---------------------------------------------------------------- Bootstrap reconciliation
 *
 * core.css is the admin skin; these are the few globals of it that would
 * otherwise show through on a public page. */

.nx h1, .nx h2, .nx h3, .nx h4 { font-family: var(--nx-font); }

.nx .row { --bs-gutter-x: var(--nx-gutter); --bs-gutter-y: var(--nx-gutter); }

/* ---------------------------------------------------------------- shared additions */

.nx-btn--ghost {
    background: var(--nx-surface-overlay);
    color: var(--nx-text-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nx-btn--ghost:hover,
.nx-btn--lg.nx-btn--ghost:hover {
    background: var(--nx-surface-container-high);
    color: var(--nx-text-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transform: none;
}

.nx-chip--outlined {
    box-shadow: inset 0 0 0 1px rgba(0, 229, 190, 0.2);
    font-size: 11px;
    font-weight: 700;
}

.nx-chip--outlined .nx-chip__pulse {
    width: 0.375rem;
    height: 0.375rem;
    box-shadow: 0 0 8px var(--nx-primary-container);
}

.nx-section__bar {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-md);
}

@media (min-width: 768px) {
    .nx-section__bar {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.nx-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-xs);
    flex-shrink: 0;
    color: var(--nx-primary-container) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nx-link-btn .material-symbols-outlined { font-size: 18px; transition: transform 0.2s; }
.nx-link-btn:hover .material-symbols-outlined { transform: translateX(3px); }

.nx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nx-space-sm);
    padding: var(--nx-space-2xl) var(--nx-space-lg);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface-elevated);
    text-align: center;
}

.nx-empty__icon {
    font-size: 40px !important;
    color: var(--nx-text-muted);
}

.nx-empty .nx-btn { margin-top: var(--nx-space-sm); }

.nx-callout--action { flex-wrap: wrap; }
.nx-callout--action p { flex: 1 1 20rem; }

.nx-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--nx-space-md);
    margin-top: var(--nx-space-xs);
}

/* ---------------------------------------------------------------- event card
 * senarai_acara — one card, shared by the homepage band and the catalogue. */

.nx-event {
    --nx-event-accent: var(--nx-primary-container);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    background: #111215;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease;
}

.nx-event:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 190, 0.35), 0 20px 40px -15px rgba(0, 229, 190, 0.12);
}

/* The discipline colours the eyebrow, as the comp colours each card's. */
.nx-event--trail { --nx-event-accent: #fbbf24; }
.nx-event--basikal { --nx-event-accent: var(--nx-accent-teal); }
.nx-event--komuniti { --nx-event-accent: #f472b6; }

.nx-event__media {
    position: relative;
    height: 13rem;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--nx-surface-base);
}

.nx-event__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.nx-event:hover .nx-event__media img { transform: scale(1.05); }

.nx-event__media--blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 229, 190, 0.18), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(125, 38, 80, 0.35), transparent 55%),
        var(--nx-surface-overlay);
}

.nx-event__placeholder {
    font-size: 64px !important;
    color: rgba(255, 255, 255, 0.12);
}

.nx-event__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111215, transparent 50%, rgba(0, 0, 0, 0.6));
}

.nx-event__badges {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    right: 0.875rem;
    display: flex;
    justify-content: space-between;
}

.nx-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: #00382d;
    font-size: 10px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0, 229, 190, 0.35);
}

.nx-badge--live {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.nx-badge--muted {
    background: var(--nx-surface-overlay);
    color: var(--nx-text-secondary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nx-event__meta {
    position: absolute;
    bottom: 0.75rem;
    left: 0.875rem;
    right: 0.875rem;
    display: flex;
    justify-content: space-between;
    gap: var(--nx-space-sm);
}

.nx-event__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.25rem 0.625rem;
    border-radius: var(--nx-radius-full);
    background: rgba(10, 10, 12, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-event__chip .material-symbols-outlined {
    font-size: 15px;
    color: var(--nx-primary-container);
}

.nx-event__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.nx-event__discipline {
    display: block;
    margin-bottom: var(--nx-space-xs);
    color: var(--nx-event-accent);
    font-size: 10px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nx-event__title {
    margin-bottom: var(--nx-space-sm) !important;
    color: var(--nx-text-primary);
    font-size: 18px;
    line-height: 1.375;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nx-event:hover .nx-event__title { color: var(--nx-primary-container); }

/* The whole card is the link's target area; the title stays the link. */
.nx-event__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.nx-event { position: relative; }

.nx-event__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--nx-space-md) !important;
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 1.625;
}

.nx-event__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem !important;
}

.nx-event__tags span {
    padding: 0.25rem 0.625rem;
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    color: var(--nx-text-secondary);
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
}

.nx-event__foot {
    padding-top: var(--nx-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nx-event__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-sm);
    margin-bottom: var(--nx-space-md);
}

.nx-event__facts {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-sm);
    color: var(--nx-text-muted);
    font-size: 11px;
    font-weight: 500;
}

.nx-event__facts .material-symbols-outlined {
    font-size: 16px;
    color: var(--nx-primary-container);
}

.nx-event__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.nx-event__price span {
    color: var(--nx-text-muted);
    font-size: 9.5px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nx-event__price strong {
    color: var(--nx-primary-container);
    font-size: 20px;
    line-height: 28px;
    font-weight: 900;
}

.nx-event__cta {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem var(--nx-space-md);
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: #00382d !important;
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(0, 229, 190, 0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}

.nx-event__cta:hover {
    box-shadow: 0 0 24px rgba(0, 229, 190, 0.5);
    transform: scale(1.01);
}

.nx-event__cta .material-symbols-outlined { font-size: 16px; }

.nx-event__cta--quiet {
    background: var(--nx-surface-overlay);
    color: var(--nx-text-secondary) !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nx-event__cta--quiet:hover {
    background: var(--nx-surface-container-high);
    color: var(--nx-text-primary) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transform: none;
}

/* List mode (catalogue): one card per row, the image to the left. */
@media (min-width: 768px) {
    .nx-events.is-list .nx-event { flex-direction: row; }

    .nx-events.is-list .nx-event__media {
        width: 20rem;
        height: auto;
        min-height: 13rem;
    }

    .nx-events.is-list .nx-event__scrim {
        background: linear-gradient(to left, #111215, transparent 40%, rgba(0, 0, 0, 0.45));
    }
}

/* ---------------------------------------------------------------- catalogue: headline */

.nx-cat-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--nx-space-lg);
}

@media (min-width: 1024px) {
    .nx-cat-hero {
        flex-direction: row;
        align-items: flex-end;
    }
}

.nx-cat-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 48rem;
}

.nx-cat-hero__title {
    color: var(--nx-text-primary);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

@media (min-width: 640px) { .nx-cat-hero__title { font-size: 36px; } }
@media (min-width: 1024px) { .nx-cat-hero__title { font-size: 48px; } }

.nx-cat-hero__lead {
    max-width: 42rem;
    color: var(--nx-text-secondary);
    font-size: 14px;
    line-height: 1.625;
}

@media (min-width: 640px) { .nx-cat-hero__lead { font-size: 16px; } }

.nx-cat-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    flex-shrink: 0;
}

.nx-counter {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 10rem;
    padding: var(--nx-space-md) 1.25rem;
    border-radius: 1rem;
    background: rgba(17, 18, 21, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nx-counter::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(0, 229, 190, 0.1);
    filter: blur(24px);
    pointer-events: none;
}

.nx-counter--magenta::after { background: rgba(125, 38, 80, 0.35); }

.nx-counter__label {
    color: var(--nx-text-muted);
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nx-counter__value {
    margin-top: var(--nx-space-xs);
    color: var(--nx-text-primary);
    font-size: 24px;
    line-height: 32px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.nx-counter__value--accent { color: var(--nx-primary-container); }

@media (min-width: 640px) { .nx-counter__value { font-size: 30px; line-height: 36px; } }

/* ---------------------------------------------------------------- catalogue: filters */

.nx-filters {
    margin-top: calc(var(--nx-space-lg) - var(--nx-space-2xl));
    padding: var(--nx-space-md);
    border-radius: 1rem;
    background: rgba(17, 18, 21, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) { .nx-filters { padding: 1.25rem; } }

.nx-filters__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: var(--nx-space-md);
}

@media (min-width: 768px) {
    .nx-filters__form { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .nx-filters__search { grid-column: span 6; }
    .nx-select { grid-column: span 2; }
    .nx-filters__submit { grid-column: span 12; }
}

/* lanyo-events.js submits on change, so the button only takes room without
   script — or for the search box, where Enter submits. */
.nx-filters__form.js-ready .nx-filters__submit { display: none; }

.nx-filters__search { position: relative; }

.nx-filters__search > .material-symbols-outlined {
    position: absolute;
    top: 50%;
    left: var(--nx-space-md);
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--nx-text-muted);
    pointer-events: none;
}

.nx .nx-input,
.nx .nx-select select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    font-family: var(--nx-font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nx .nx-input {
    padding: 0.625rem var(--nx-space-md) 0.625rem 2.75rem;
    color: var(--nx-text-primary);
    font-size: 14px;
    line-height: 20px;
}

.nx .nx-input::placeholder { color: var(--nx-text-muted); }

.nx .nx-input:focus,
.nx .nx-select select:focus {
    outline: none;
    border-color: var(--nx-primary-container);
    box-shadow: 0 0 0 1px var(--nx-primary-container);
}

.nx-select { position: relative; }

.nx .nx-select select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.625rem 2rem 0.625rem var(--nx-space-md);
    color: var(--nx-text-secondary);
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
}

.nx .nx-select option { text-transform: none; background: var(--nx-surface-overlay); }

.nx-select > .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 0.875rem;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--nx-text-muted);
    pointer-events: none;
}

.nx-filters__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--nx-space-xs);
    padding: 0.625rem var(--nx-space-lg);
    border: 0;
    border-radius: var(--nx-radius-full);
    background: var(--nx-primary-container);
    color: #00382d;
    font-family: var(--nx-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.nx-filters__submit .material-symbols-outlined { font-size: 16px; }

.nx-filters__bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--nx-space-md);
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 1024px) {
    .nx-filters__bar {
        flex-direction: row;
        align-items: center;
    }
}

.nx-pills {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
    min-width: 0;
    overflow-x: auto;
    padding-bottom: var(--nx-space-xs);
    scrollbar-width: thin;
}

@media (min-width: 1024px) { .nx-pills { padding-bottom: 0; } }

.nx-pills__item {
    flex-shrink: 0;
    padding: 0.375rem 0.875rem;
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    color: var(--nx-text-secondary) !important;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.nx-pills__item:hover {
    background: #1b1c1e;
    color: var(--nx-text-primary) !important;
}

.nx-pills__item.is-active {
    padding-inline: var(--nx-space-md);
    background: var(--nx-primary-container);
    color: #00382d !important;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(0, 229, 190, 0.3);
}

.nx-filters__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-md);
    flex-shrink: 0;
}

.nx-filters__count {
    color: var(--nx-text-muted) !important;
    font-size: 12px !important;
    line-height: 16px;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nx-filters__count strong { color: var(--nx-text-primary); font-weight: 700; }

.nx-view {
    display: flex;
    align-items: center;
    padding: var(--nx-space-xs);
    border-radius: var(--nx-radius-full);
    background: var(--nx-surface-overlay);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nx-view[hidden] { display: none; }

.nx-view__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: var(--nx-space-xs) 0.75rem;
    border: 0;
    border-radius: var(--nx-radius-full);
    background: transparent;
    color: var(--nx-text-secondary);
    font-family: var(--nx-font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
}

.nx-view__btn:hover { color: var(--nx-text-primary); }

.nx-view__btn.is-active {
    background: var(--nx-primary-container);
    color: #00382d;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 229, 190, 0.25);
}

.nx-view__btn .material-symbols-outlined { font-size: 16px; }

.nx-cat-results {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-xl);
    margin-top: calc(var(--nx-space-xl) - var(--nx-space-2xl));
}

/* ---------------------------------------------------------------- catalogue: pagination
 * Bootstrap's .pagination markup, drawn as the comp's single pill. */

.nx-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-space-md);
    padding-top: var(--nx-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) { .nx-pagination { flex-direction: row; } }

.nx-pagination__label {
    color: var(--nx-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.nx-pagination__label strong { color: var(--nx-text-primary); }

.nx .nx-pages {
    --bs-pagination-bg: transparent;
    --bs-pagination-border-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0.375rem;
    border-radius: var(--nx-radius-full);
    background: #111215;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nx .nx-pages .page-link {
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--nx-space-xs);
    margin: 0;
    padding: 0 0.5rem;
    border: 0;
    border-radius: var(--nx-radius-full) !important;
    background: transparent;
    color: var(--nx-text-secondary);
    font-family: var(--nx-font);
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
    transition: background-color 0.2s, color 0.2s;
}

.nx .nx-pages .page-link--edge { padding-inline: 0.875rem; font-weight: 600; }
.nx .nx-pages .page-link .material-symbols-outlined { font-size: 16px; }

.nx .nx-pages a.page-link:hover {
    background: var(--nx-surface-overlay);
    color: var(--nx-text-primary);
}

.nx .nx-pages .page-item.active .page-link {
    background: var(--nx-primary-container);
    color: #00382d;
    box-shadow: 0 0 10px rgba(0, 229, 190, 0.3);
}

.nx .nx-pages .page-item.disabled .page-link {
    background: transparent;
    color: var(--nx-text-muted);
    opacity: 0.6;
}

/* ---------------------------------------------------------------- catalogue: organiser banner */

.nx-organiser {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--nx-space-xl);
    padding: var(--nx-space-xl) 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(to bottom right, #111215, var(--nx-surface-overlay), var(--nx-surface-base));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) { .nx-organiser { padding: 3rem; } }

@media (min-width: 1024px) {
    .nx-organiser {
        flex-direction: row;
        align-items: center;
    }
}

.nx-glow--organiser-a {
    right: -4rem;
    bottom: -4rem;
    width: 20rem;
    height: 20rem;
    background: rgba(0, 229, 190, 0.15);
    filter: blur(130px);
}

.nx-glow--organiser-b {
    left: -4rem;
    top: -4rem;
    width: 20rem;
    height: 20rem;
    background: rgba(125, 38, 80, 0.25);
    filter: blur(140px);
}

.nx-organiser__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 42rem;
}

.nx-organiser__copy .nx-eyebrow--icon { color: var(--nx-primary-container); }
.nx-organiser__copy .nx-body-sm { font-size: 14px; line-height: 1.625; }

.nx-organiser__title {
    color: var(--nx-text-primary);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

@media (min-width: 640px) { .nx-organiser__title { font-size: 30px; } }
@media (min-width: 1024px) { .nx-organiser__title { font-size: 36px; } }

.nx-organiser__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex-shrink: 0;
}

.nx-organiser__actions .nx-btn {
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .nx-organiser__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .nx *,
    .nx *::before,
    .nx *::after {
        animation: none !important;
        transition: none !important;
    }
}
