/* ================================================================
   CNX BJJ — Shared Stylesheet
   Version: 1.0
   Updated: 2026-06-20
   
   All selectors scoped to page-level wrapper class.
   Wrapper naming convention:
     .cnx-home26    → homepage
     .cnx-cm26      → chiang mai pages
     .cnx-bk26      → bangkok pages
     .cnx-pk26      → phuket pages
     .cnx-pt26      → pattaya pages
     .cnx-ks26      → koh samui pages
     .cnx-th26      → thailand hub pages
     .cnx-beg26     → beginner pages
     .cnx-belt26    → belt system pages
     .cnx-tech26    → technique pages
     .cnx-gear26    → gear pages
     .cnx-comp26    → competition pages
     .cnx-hist26    → history pages
     .cnx-vs26      → comparison pages
     .cnx-blog26    → blog pages
     .cnx-util26    → utility pages (about, contact)
   
   Shared classes use [class*="cnx-"] attribute selectors
   so they work across all page wrappers.
   ================================================================ */


/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- TOKENS ---- */
:root {
    /* Brand palette (from brand guide: black + white only) */
    --cnx-black: #000000;
    --cnx-white: #ffffff;
    
    /* Extended UI palette */
    --cnx-ink: #0d0d0d;
    --cnx-ink-light: #1a1a1a;
    --cnx-ink-mid: #2a2a2a;
    --cnx-ink-soft: #333333;
    --cnx-off-white: #f7f7f5;
    --cnx-grey-50: #f5f5f5;
    --cnx-grey-100: #ebebeb;
    --cnx-grey-200: #d4d4d4;
    --cnx-grey-300: #b3b3b3;
    --cnx-grey-400: #8a8a8a;
    --cnx-grey-500: #6e6e6e;
    --cnx-grey-600: #555555;
    --cnx-grey-700: #3d3d3d;
    
    /* Accent — used for CTAs, links, interactive elements */
    --cnx-red: #c62828;
    --cnx-red-dark: #a31d1d;
    --cnx-red-glow: rgba(198, 40, 40, 0.12);
    
    /* Functional */
    --cnx-success: #2e7d32;
    --cnx-warning: #f57f17;
    --cnx-info: #1565c0;

    /* Typography */
    --cnx-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --cnx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --cnx-max-width: 1200px;
    --cnx-content-width: 800px;
    --cnx-section-pad: 80px 24px;
    --cnx-section-pad-mobile: 56px 16px;
    --cnx-section-pad-compact: 56px 24px;
}


/* ---- BASE TYPOGRAPHY ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cnx-font-body);
    color: var(--cnx-ink);
    background: var(--cnx-white);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   NAVIGATION
   ================================================================ */
.cnx-nav {
    background: var(--cnx-ink);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--cnx-ink-mid);
}

.cnx-nav-inner {
    max-width: var(--cnx-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 116px;
}

.cnx-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cnx-nav-logo img {
    display: block;
    width: 300px;
    height: 100px;
    object-fit: contain;
}

.cnx-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.cnx-nav-links a {
    color: var(--cnx-grey-200);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnx-nav-links a:hover,
.cnx-nav-links a[aria-current="page"] {
    color: var(--cnx-white);
}

.cnx-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cnx-nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--cnx-white);
}


/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.cnx-container {
    max-width: var(--cnx-max-width);
    margin: 0 auto;
    width: 100%;
}

.cnx-container-narrow {
    max-width: var(--cnx-content-width);
    margin: 0 auto;
    width: 100%;
}

.cnx-section {
    padding: var(--cnx-section-pad);
}

.cnx-section-compact {
    padding: var(--cnx-section-pad-compact);
}

.cnx-section-dark {
    background: var(--cnx-ink);
    color: var(--cnx-white);
}

.cnx-section-alt {
    background: var(--cnx-off-white);
}

.cnx-section-header {
    margin-bottom: 48px;
}


/* ================================================================
   TYPOGRAPHY — HEADINGS
   ================================================================ */
.cnx-section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cnx-red);
    margin-bottom: 12px;
}

h1 {
    font-family: var(--cnx-font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 0.95;
}

h2 {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h3 {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

h4 {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.cnx-section-subtitle {
    font-size: 17px;
    color: var(--cnx-grey-600);
    max-width: 640px;
    margin-top: 12px;
    line-height: 1.7;
}

.cnx-section-dark .cnx-section-subtitle {
    color: var(--cnx-grey-400);
}


/* ================================================================
   TYPOGRAPHY — BODY CONTENT
   Used inside .cnx-content for long-form page content
   ================================================================ */
.cnx-content {
    max-width: var(--cnx-content-width);
}

.cnx-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.cnx-content h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    margin-top: 56px;
    margin-bottom: 20px;
}

.cnx-content h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.cnx-content h4 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.cnx-content a {
    color: var(--cnx-red);
    text-decoration: underline;
    text-decoration-color: var(--cnx-red-glow);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.cnx-content a:hover {
    text-decoration-color: var(--cnx-red);
}

.cnx-content ul,
.cnx-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.cnx-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.cnx-content blockquote {
    border-left: 3px solid var(--cnx-ink);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--cnx-grey-50);
    font-style: italic;
    color: var(--cnx-grey-600);
}

.cnx-content strong {
    font-weight: 600;
    color: var(--cnx-ink);
}

.cnx-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}


/* ================================================================
   HERO — PILLAR / HUB PAGES (Dark hero with big headline)
   ================================================================ */
.cnx-hero {
    background: var(--cnx-ink);
    color: var(--cnx-white);
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.cnx-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cnx-red-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cnx-hero-inner {
    max-width: var(--cnx-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cnx-hero-eyebrow {
    font-family: var(--cnx-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cnx-red);
    margin-bottom: 20px;
}

.cnx-hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    margin-bottom: 28px;
}

.cnx-hero h1 em {
    font-style: normal;
    color: var(--cnx-red);
}

.cnx-hero-text {
    font-size: 19px;
    line-height: 1.75;
    color: var(--cnx-grey-200);
    max-width: 680px;
    margin-bottom: 36px;
}

.cnx-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cnx-hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--cnx-ink-mid);
}

.cnx-hero-stat-number {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 40px;
    color: var(--cnx-white);
    line-height: 1;
}

.cnx-hero-stat-label {
    font-size: 13px;
    color: var(--cnx-grey-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}


/* ================================================================
   HERO — SPOKE / CONTENT PAGES (Compact header)
   ================================================================ */
.cnx-page-header {
    background: var(--cnx-ink);
    color: var(--cnx-white);
    padding: 48px 24px 56px;
}

.cnx-page-header-inner {
    max-width: var(--cnx-max-width);
    margin: 0 auto;
}

.cnx-page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}

.cnx-page-header h1 em {
    font-style: normal;
    color: var(--cnx-red);
}

.cnx-page-header-subtitle {
    font-size: 18px;
    color: var(--cnx-grey-200);
    max-width: 640px;
    line-height: 1.65;
}

/* Breadcrumbs inside page header */
.cnx-breadcrumbs {
    margin-bottom: 20px;
    font-size: 13px;
}

.cnx-breadcrumbs a {
    color: var(--cnx-grey-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnx-breadcrumbs a:hover {
    color: var(--cnx-white);
}

.cnx-breadcrumbs span {
    color: var(--cnx-grey-600);
    margin: 0 8px;
}

.cnx-breadcrumbs .cnx-breadcrumbs-current {
    color: var(--cnx-grey-200);
}


/* ================================================================
   CARDS — CITY CARDS (used on homepage + hub pages)
   ================================================================ */
.cnx-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cnx-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cnx-card {
    background: var(--cnx-white);
    border: 1px solid var(--cnx-grey-100);
    border-radius: 8px;
    padding: 32px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--cnx-ink);
    display: block;
}

.cnx-card:hover {
    border-color: var(--cnx-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    color: var(--cnx-ink);
}

.cnx-card-name {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cnx-card-meta {
    font-size: 14px;
    color: var(--cnx-grey-600);
    line-height: 1.65;
}

.cnx-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cnx-red);
    background: var(--cnx-red-glow);
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 16px;
}

.cnx-card-arrow {
    font-size: 14px;
    color: var(--cnx-red);
    margin-top: 16px;
    font-weight: 600;
}

/* Dark background card variant */
.cnx-section-dark .cnx-card {
    background: var(--cnx-ink-mid);
    border-color: rgba(255,255,255,0.06);
    color: var(--cnx-white);
}

.cnx-section-dark .cnx-card:hover {
    border-color: var(--cnx-red);
    color: var(--cnx-white);
}

.cnx-section-dark .cnx-card-meta {
    color: var(--cnx-grey-400);
}


/* ================================================================
   FEATURE CARDS (icon + heading + text)
   ================================================================ */
.cnx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.cnx-feature-card {
    padding: 32px 24px;
    border-radius: 8px;
    background: var(--cnx-ink-mid);
    border: 1px solid rgba(255,255,255,0.06);
}

.cnx-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--cnx-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.cnx-feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--cnx-white);
}

.cnx-feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--cnx-grey-400);
}

/* Light background feature cards */
.cnx-feature-card-light {
    background: var(--cnx-white);
    border: 1px solid var(--cnx-grey-100);
}

.cnx-feature-card-light h3 {
    color: var(--cnx-ink);
}

.cnx-feature-card-light p {
    color: var(--cnx-grey-600);
}


/* ================================================================
   TWO-COLUMN LAYOUT
   ================================================================ */
.cnx-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cnx-two-col p {
    margin-bottom: 16px;
    color: var(--cnx-grey-600);
}

.cnx-section-dark .cnx-two-col p {
    color: var(--cnx-grey-200);
}

/* Sidebar layout (wide content + narrow sidebar) */
.cnx-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: start;
}


/* ================================================================
   TABLES
   ================================================================ */
.cnx-table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 8px;
    border: 1px solid var(--cnx-grey-100);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

table thead {
    background: var(--cnx-ink);
    color: var(--cnx-white);
}

table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--cnx-grey-100);
    color: var(--cnx-grey-600);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background: var(--cnx-off-white);
}

table td a {
    color: var(--cnx-red);
    text-decoration: none;
    font-weight: 600;
}

table td a:hover {
    text-decoration: underline;
}


/* ================================================================
   BUTTONS
   ================================================================ */
.cnx-btn {
    display: inline-block;
    font-family: var(--cnx-font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

.cnx-btn:hover {
    transform: translateY(-1px);
}

/* Primary (red fill, white text) */
.cnx-btn-primary {
    background: var(--cnx-red);
    color: var(--cnx-white) !important;
}
.cnx-btn-primary:link,
.cnx-btn-primary:visited {
    color: var(--cnx-white) !important;
}
.cnx-btn-primary:hover {
    background: var(--cnx-red-dark);
    color: var(--cnx-white) !important;
}

/* Dark (black fill, white text) */
.cnx-btn-dark {
    background: var(--cnx-ink);
    color: var(--cnx-white) !important;
}
.cnx-btn-dark:link,
.cnx-btn-dark:visited {
    color: var(--cnx-white) !important;
}
.cnx-btn-dark:hover {
    background: var(--cnx-ink-soft);
    color: var(--cnx-white) !important;
}

/* White (white fill, dark text) */
.cnx-btn-white {
    background: var(--cnx-white);
    color: var(--cnx-ink) !important;
}
.cnx-btn-white:link,
.cnx-btn-white:visited {
    color: var(--cnx-ink) !important;
}
.cnx-btn-white:hover {
    background: var(--cnx-grey-100);
    color: var(--cnx-ink) !important;
}

/* Outline (transparent, white border) */
.cnx-btn-outline {
    background: transparent;
    color: var(--cnx-white) !important;
    border: 2px solid rgba(255,255,255,0.3);
}
.cnx-btn-outline:link,
.cnx-btn-outline:visited {
    color: var(--cnx-white) !important;
}
.cnx-btn-outline:hover {
    border-color: var(--cnx-white);
    color: var(--cnx-white) !important;
}

/* Outline dark (transparent, dark border — for light backgrounds) */
.cnx-btn-outline-dark {
    background: transparent;
    color: var(--cnx-ink) !important;
    border: 2px solid var(--cnx-grey-200);
}
.cnx-btn-outline-dark:link,
.cnx-btn-outline-dark:visited {
    color: var(--cnx-ink) !important;
}
.cnx-btn-outline-dark:hover {
    border-color: var(--cnx-ink);
    color: var(--cnx-ink) !important;
}


/* ================================================================
   CTA BAND (Full-width coloured strip)
   ================================================================ */
.cnx-cta-band {
    background: var(--cnx-red);
    color: var(--cnx-white);
    padding: 64px 24px;
    text-align: center;
}

.cnx-cta-band h2 {
    color: var(--cnx-white);
    margin-bottom: 16px;
}

.cnx-cta-band p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 28px;
    opacity: 0.9;
}

.cnx-cta-band-dark {
    background: var(--cnx-ink);
}

.cnx-cta-band-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.cnx-faq-list {
    max-width: var(--cnx-content-width);
}

.cnx-faq-item {
    border-bottom: 1px solid var(--cnx-grey-100);
}

.cnx-faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 24px 40px 24px 0;
    font-family: var(--cnx-font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--cnx-ink);
    cursor: pointer;
    position: relative;
    line-height: 1.5;
}

.cnx-faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--cnx-grey-400);
    transition: transform 0.2s ease;
}

.cnx-faq-question[aria-expanded="true"]::after {
    content: '−';
}

.cnx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cnx-faq-answer-inner {
    padding: 0 0 24px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--cnx-grey-600);
}

/* Dark background FAQ */
.cnx-section-dark .cnx-faq-question {
    color: var(--cnx-white);
}

.cnx-section-dark .cnx-faq-item {
    border-color: var(--cnx-ink-mid);
}

.cnx-section-dark .cnx-faq-answer-inner {
    color: var(--cnx-grey-300);
}


/* ================================================================
   SIDEBAR COMPONENTS (for spoke pages)
   ================================================================ */
.cnx-sidebar {
    position: sticky;
    top: 140px;
}

/* Info box (quick facts, key details) */
.cnx-info-box {
    background: var(--cnx-off-white);
    border: 1px solid var(--cnx-grey-100);
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.cnx-info-box h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.cnx-info-box-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--cnx-grey-100);
    font-size: 14px;
}

.cnx-info-box-row:last-child {
    border-bottom: none;
}

.cnx-info-box-label {
    color: var(--cnx-grey-500);
    font-weight: 500;
}

.cnx-info-box-value {
    color: var(--cnx-ink);
    font-weight: 600;
    text-align: right;
}

/* Related pages / internal links box */
.cnx-related-box {
    background: var(--cnx-white);
    border: 1px solid var(--cnx-grey-100);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.cnx-related-box h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.cnx-related-box a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--cnx-grey-100);
    color: var(--cnx-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnx-related-box a:last-child {
    border-bottom: none;
}

.cnx-related-box a:hover {
    color: var(--cnx-red);
}


/* ================================================================
   GYM REVIEW COMPONENTS
   ================================================================ */

/* Pros/cons list */
.cnx-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.cnx-pros, .cnx-cons {
    padding: 24px;
    border-radius: 8px;
}

.cnx-pros {
    background: rgba(46, 125, 50, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.cnx-cons {
    background: rgba(198, 40, 40, 0.04);
    border: 1px solid rgba(198, 40, 40, 0.12);
}

.cnx-pros h3, .cnx-cons h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.cnx-pros li, .cnx-cons li {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Rating / score badge */
.cnx-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 18px;
}

.cnx-rating-stars {
    color: var(--cnx-warning);
    letter-spacing: 2px;
}


/* ================================================================
   DISCLAIMER BOX (technique pages, safety)
   ================================================================ */
.cnx-disclaimer {
    background: var(--cnx-grey-50);
    border-left: 3px solid var(--cnx-grey-300);
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--cnx-grey-600);
}

.cnx-disclaimer strong {
    color: var(--cnx-ink);
}


/* ================================================================
   AUTHOR / REVIEW BYLINE
   ================================================================ */
.cnx-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--cnx-grey-100);
    border-bottom: 1px solid var(--cnx-grey-100);
    margin: 32px 0;
    font-size: 14px;
    color: var(--cnx-grey-500);
}

.cnx-byline strong {
    color: var(--cnx-ink);
    font-weight: 600;
}


/* ================================================================
   TABLE OF CONTENTS (long content pages)
   ================================================================ */
.cnx-toc {
    background: var(--cnx-off-white);
    border: 1px solid var(--cnx-grey-100);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 32px 0;
}

.cnx-toc h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.cnx-toc ol {
    padding-left: 20px;
}

.cnx-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}

.cnx-toc a {
    color: var(--cnx-grey-600);
    text-decoration: none;
}

.cnx-toc a:hover {
    color: var(--cnx-red);
}


/* ================================================================
   FOOTER
   ================================================================ */
.cnx-footer {
    background: var(--cnx-ink);
    color: var(--cnx-grey-400);
    padding: 64px 24px 32px;
    border-top: 1px solid var(--cnx-ink-mid);
}

.cnx-footer-grid {
    max-width: var(--cnx-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.cnx-footer-brand {
    font-family: var(--cnx-font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--cnx-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cnx-footer-brand span {
    color: var(--cnx-red);
}

.cnx-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cnx-grey-400);
    max-width: 300px;
}

.cnx-footer h4 {
    font-family: var(--cnx-font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cnx-white);
    margin-bottom: 16px;
}

.cnx-footer-links {
    list-style: none;
}

.cnx-footer-links li {
    margin-bottom: 10px;
}

.cnx-footer-links a {
    color: var(--cnx-grey-400);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnx-footer-links a:hover {
    color: var(--cnx-white);
}

.cnx-footer-bottom {
    max-width: var(--cnx-max-width);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--cnx-ink-mid);
    font-size: 13px;
    color: var(--cnx-grey-400);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.cnx-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cnx-red);
    color: var(--cnx-white);
    padding: 8px 16px;
    z-index: 200;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.cnx-skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--cnx-red);
    outline-offset: 2px;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .cnx-layout-sidebar {
        grid-template-columns: 1fr;
    }
    .cnx-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .cnx-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cnx-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cnx-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cnx-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .cnx-hero-stats {
        gap: 32px;
    }
    .cnx-pros-cons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cnx-nav-inner {
        min-height: 88px;
    }
    .cnx-nav-logo img {
        width: auto;
        height: 64px;
        max-width: 60vw;
    }
    .cnx-nav-links {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: var(--cnx-ink);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--cnx-ink-mid);
    }
    .cnx-nav-links.active {
        display: flex;
    }
    .cnx-nav-toggle {
        display: block;
    }
    .cnx-hero {
        padding: 72px 16px 56px;
    }
    .cnx-hero h1 {
        font-size: 42px;
    }
    .cnx-hero-text {
        font-size: 17px;
    }
    .cnx-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .cnx-page-header {
        padding: 32px 16px 40px;
    }
    .cnx-page-header h1 {
        font-size: 36px;
    }
    .cnx-section {
        padding: var(--cnx-section-pad-mobile);
    }
    .cnx-card-grid {
        grid-template-columns: 1fr;
    }
    .cnx-card-grid-2 {
        grid-template-columns: 1fr;
    }
    .cnx-feature-grid {
        grid-template-columns: 1fr;
    }
    .cnx-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cnx-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .cnx-cta-band {
        padding: 48px 16px;
    }
}


/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .cnx-nav,
    .cnx-footer,
    .cnx-cta-band,
    .cnx-skip-link {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}
