/**
 * Unous System — Shared base styles.
 * This file contains ONLY reset, accessibility, WP core classes,
 * and minimal shared utilities. ALL visual styling is in brand-{slug}.css.
 *
 * @package Unous_System
 */

/* =============================================
   1. RESET & GLOBAL
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

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

.screen-reader-text:focus {
    display: block;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--brand-surface, #fff);
    color: var(--brand-ink, #1a1a2e);
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    position: fixed;
    top: 6px;
    left: 6px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

:focus-visible {
    outline: 2px solid var(--brand-primary, #2D5BFF);
    outline-offset: 2px;
}

/* =============================================
   3. WORDPRESS CORE CLASSES
   ============================================= */
.alignleft   { float: left; margin: 0 20px 20px 0; }
.alignright  { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone   { margin: 20px 0; }
.alignwide   { max-width: calc(100% + 120px); margin-left: -60px; width: calc(100% + 120px); }
.alignfull   { max-width: 100vw; margin-left: calc(-50vw + 50%); width: 100vw; }

.wp-caption       { max-width: 100%; }
.wp-caption-text  { font-size: 13px; color: var(--brand-muted, #6B7280); padding: 6px 0; }
.gallery-caption  { font-size: 13px; color: var(--brand-muted, #6B7280); }
.sticky {}
.bypostauthor {}

.wp-block-image figcaption { font-size: 13px; color: var(--brand-muted, #6B7280); text-align: center; }

/* =============================================
   4. SHARED LAYOUT UTILITIES
   ============================================= */
.container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.section-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   5. REVEAL ANIMATION (shared across all brands)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}

.reveal.visible,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.reveal-delay-4 { transition-delay: .48s; }

/* =============================================
   6. MOBILE MENU TOGGLE
   ============================================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/* =============================================
   7. STICKY ACTIONS (shared across all brands)
   ============================================= */
.unx-sticky-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.sticky-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.sticky-phone    { background: var(--brand-primary, #2D5BFF); color: #fff; }
.sticky-linkedin { background: #0077B5; color: #fff; }

.back-to-top {
    background: var(--brand-ink, rgba(0,0,0,.7));
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* =============================================
   8. RESPONSIVE TABLE SCROLL
   ============================================= */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 600px;
}

/* =============================================
   9. BLOG / INDEX (inner pages shared)
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-surface, #fff);
    border: 1px solid var(--brand-border, rgba(0,0,0,.08));
    transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -20px rgba(0,0,0,.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-header { padding: 20px 20px 0; }

.entry-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry-title a { text-decoration: none; }

.entry-meta {
    font-size: 13px;
    opacity: .6;
    margin-bottom: 8px;
}

.entry-summary {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    opacity: .75;
}

/* Page header */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
}

/* 404 / Search */
.error-404 .page-content,
.search-no-results .page-content {
    text-align: center;
    padding: 80px 0;
}

/* =============================================
   10. PAGE TEMPLATES (shared base)
   ============================================= */
.page-hero {
    padding: 80px 0 48px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    opacity: .7;
}

/* =============================================
   11. RESPONSIVE BREAKPOINTS (shared)
   ============================================= */
@media (max-width: 768px) {
    .container {
        width: calc(100% - 32px);
    }

    .section-inner {
        padding: 0 16px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    .unx-sticky-actions {
        bottom: 16px;
        right: 16px;
    }

    .sticky-btn {
        width: 42px;
        height: 42px;
    }
}

/* =============================================================
   INNER PAGES — Page Templates, Single CPT, Archive
   ============================================================= */

/* ---- Shared page hero ---- */
.unx-page-hero {
    padding: 100px 0 56px;
    background: var(--brand-soft, #f5f7ff);
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-primary, #2D5BFF);
    margin-bottom: 10px;
}

.unx-single-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 16px;
    max-width: 720px;
}

.unx-single-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--brand-muted, #6B7280);
    max-width: 600px;
    margin: 0;
}

/* ---- Section wrapper ---- */
.unx-section {
    padding: 72px 0;
}

.unx-section + .unx-section {
    padding-top: 0;
}

.unx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.unx-section-head h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 8px 0 0;
}

.unx-section-copy {
    max-width: 560px;
}

.unx-section-copy h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 8px 0 16px;
}

/* ---- Two-col layout ---- */
.unx-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ---- Card grid ---- */
.unx-card-grid {
    display: grid;
    gap: 24px;
}

.unx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.unx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.unx-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Generic card ---- */
.unx-card {
    background: var(--brand-surface, #fff);
    border: 1px solid var(--brand-border, rgba(0,0,0,.08));
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.unx-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.unx-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin: 0;
    line-height: 1.3;
}

.unx-card p {
    font-size: 14px;
    color: var(--brand-muted, #6B7280);
    margin: 0;
    line-height: 1.6;
}

.unx-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-soft, #EEF2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brand-primary, #2D5BFF);
    flex-shrink: 0;
}

.unx-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.unx-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.unx-card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-primary, #2D5BFF);
    background: var(--brand-soft, #EEF2FF);
    padding: 3px 8px;
    border-radius: 4px;
}

.unx-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary, #2D5BFF);
    text-decoration: none;
    margin-top: auto;
    padding-top: 8px;
}

.unx-card-link::after {
    content: '→';
    transition: transform .15s;
}

.unx-card-link:hover::after {
    transform: translateX(4px);
}

/* ---- Service card specifics ---- */
.unx-service-card .unx-card-icon {
    margin-bottom: 4px;
}

.unx-check-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unx-check-list li {
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
    padding-left: 18px;
    position: relative;
}

.unx-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary, #2D5BFF);
    font-weight: 700;
    font-size: 12px;
}

.unx-service-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.08));
}

.unx-service-price strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
}

/* ---- Case study card ---- */
.unx-case-card {
    padding: 0;
    overflow: hidden;
}

.unx-case-card-img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--brand-soft, #f5f7ff);
}

.unx-case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.unx-case-card:hover .unx-case-card-img img {
    transform: scale(1.04);
}

.unx-case-card .unx-card-body {
    padding: 20px 22px 24px;
}

.unx-case-card-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
    margin: 4px 0;
}

.unx-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unx-mini-stat strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary, #2D5BFF);
    line-height: 1;
}

.unx-mini-stat span {
    font-size: 11px;
    color: var(--brand-muted, #6B7280);
    line-height: 1.3;
}

/* ---- Stats bar / overview ---- */
.unx-stats {
    background: var(--brand-ink, #0B1220);
    padding: 40px 0;
}

.unx-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.unx-stat {
    text-align: center;
}

.unx-stat strong {
    display: block;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.unx-stat span {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.4;
}

.unx-case-overview {
    background: var(--brand-soft, #f5f7ff);
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-case-overview .unx-stat strong {
    color: var(--brand-primary, #2D5BFF);
}

.unx-case-overview .unx-stat span {
    color: var(--brand-muted, #6B7280);
}

/* ---- Filter tabs ---- */
.unx-case-filter-section {
    padding: 28px 0;
    background: var(--brand-surface, #fff);
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unx-tab {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--brand-border, rgba(0,0,0,.12));
    background: transparent;
    color: var(--brand-muted, #6B7280);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.unx-tab:hover,
.unx-tab.active {
    background: var(--brand-primary, #2D5BFF);
    border-color: var(--brand-primary, #2D5BFF);
    color: #fff;
}

/* ---- Values list (about page) ---- */
.unx-values-panel {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    padding: 32px;
}

.unx-values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unx-value-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.unx-value-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin-bottom: 3px;
}

.unx-value-item p {
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
    margin: 0;
    line-height: 1.5;
}

/* ---- Contact page ---- */
.unx-contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.unx-contact-main h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 20px;
}

.unx-contact-panel {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    padding: 32px;
}

.unx-info-block {
    background: var(--brand-surface, #fff);
    border: 1px solid var(--brand-border, rgba(0,0,0,.08));
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

.unx-info-block h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 14px;
}

.unx-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unx-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--brand-ink, #0B1220);
}

.unx-contact-details a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}

.unx-contact-details a:hover {
    color: var(--brand-primary, #2D5BFF);
}

.unx-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--brand-soft, #EEF2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand-primary, #2D5BFF);
    flex-shrink: 0;
    margin-top: 1px;
}

.unx-quick-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unx-hours-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 0;
    font-size: 13px;
}

.unx-hours-dl dt {
    color: var(--brand-muted, #6B7280);
    font-weight: 400;
}

.unx-hours-dl dd {
    color: var(--brand-ink, #0B1220);
    font-weight: 600;
    margin: 0;
    text-align: right;
}

/* ---- Article content ---- */
.unx-article {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--brand-ink, #0B1220);
}

.unx-article h2, .unx-article h3 { margin-top: 2em; }
.unx-article img { max-width: 100%; border-radius: 10px; }
.unx-article a { color: var(--brand-primary, #2D5BFF); }

/* ---- CTA section ---- */
.unx-cta {
    background: var(--brand-ink, #0B1220);
    padding: 72px 0;
    text-align: center;
    color: #fff;
}

.unx-cta h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.unx-cta p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin: 0 0 28px;
}

/* ---- Testimonials block ---- */
.unx-testimonials {
    background: var(--brand-soft, #f5f7ff);
}

/* ---- Page.php default layout ---- */
.site-main.unx-page-default {
    padding: 80px 0;
}

/* ---- btn-full ---- */
.btn.btn-full {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* =============================================================
   INNER PAGES — RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
    .unx-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .unx-contact-page-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

@media (max-width: 768px) {
    .unx-page-hero {
        padding: 80px 0 40px;
    }

    .unx-section {
        padding: 48px 0;
    }

    .unx-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .unx-grid-2,
    .unx-grid-3,
    .unx-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .unx-values-panel {
        padding: 24px 20px;
    }

    .unx-contact-panel {
        padding: 22px 20px;
    }

    .unx-case-card-metrics {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .unx-single-title {
        font-size: 26px;
    }

    .unx-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .unx-stat strong {
        font-size: 28px;
    }

    .unx-filter-tabs {
        gap: 6px;
    }

    .unx-tab {
        font-size: 12px;
        padding: 6px 12px;
    }

    .unx-hours-dl {
        grid-template-columns: 1fr;
    }

    .unx-hours-dl dd {
        text-align: left;
        margin-bottom: 8px;
    }
}

/* =============================================================
   SINGLE TEMPLATES
   ============================================================= */

/* ---- Single layout base ---- */
.unx-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 80px;
}

.unx-single-layout.has-sidebar {
    grid-template-columns: 1fr 320px;
    align-items: start;
}

.unx-single-content {
    min-width: 0;
}

/* ---- Single hero (service / generic) ---- */
.unx-single-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.unx-single-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-soft, #EEF2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--brand-primary, #2D5BFF);
    flex-shrink: 0;
}

/* ---- Feature grid ---- */
.unx-single-features {
    margin: 32px 0;
}

.unx-single-features h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 16px;
}

.unx-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.unx-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--brand-ink, #0B1220);
    background: var(--brand-soft, #f5f7ff);
    padding: 12px 14px;
    border-radius: 8px;
}

.unx-feature-check {
    color: var(--brand-primary, #2D5BFF);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Pricing sidebar (single-service) ---- */
.unx-pricing-card-single {
    background: var(--brand-surface, #fff);
    border: 2px solid var(--brand-border, rgba(0,0,0,.1));
    border-radius: 16px;
    padding: 28px 24px;
}

.unx-pricing-card-single h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 12px;
}

.unx-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    line-height: 1;
    margin-bottom: 4px;
}

.unx-price-note {
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 20px;
}

.unx-pricing-sidebar.is-sticky {
    position: sticky;
    top: 100px;
}

/* ---- Case study single ---- */
.unx-case-hero {
    position: relative;
    aspect-ratio: 21/9;
    background: var(--brand-ink, #0B1220);
    overflow: hidden;
}

.unx-case-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.unx-case-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}

.unx-case-hero-overlay h1 {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    max-width: 720px;
}

.unx-case-metrics {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--brand-soft, #f5f7ff);
    padding: 32px;
    border-radius: 0 0 16px 16px;
    margin-bottom: 48px;
}

.unx-case-section {
    padding: 32px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-case-section h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 14px;
}

.unx-case-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--brand-ink, #0B1220);
}

/* ---- Gallery ---- */
.unx-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.unx-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.unx-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.unx-gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Insight / article single ---- */
.unx-article-header {
    padding: 80px 0 40px;
    background: var(--brand-soft, #f5f7ff);
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.unx-article-hero {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.unx-article-hero img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.unx-prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--brand-ink, #0B1220);
    max-width: 680px;
}

.unx-prose h2, .unx-prose h3 { margin-top: 1.8em; }
.unx-prose a { color: var(--brand-primary, #2D5BFF); }
.unx-prose img { max-width: 100%; border-radius: 10px; }
.unx-prose blockquote {
    border-left: 3px solid var(--brand-primary, #2D5BFF);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--brand-muted, #6B7280);
    font-style: italic;
}

.unx-reading-time {
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
}

.unx-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
    margin-top: 32px;
}

.unx-share-bar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-muted, #6B7280);
}

.unx-share-bar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-soft, #f5f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s;
}

.unx-share-bar a:hover {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}

.unx-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
}

.unx-article-footer {
    padding: 48px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
    margin-top: 48px;
}

/* ---- Fund single ---- */
.unx-fund-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 24px;
    font-size: 14px;
    margin: 0;
}

.unx-fund-dl dt {
    color: var(--brand-muted, #6B7280);
    font-weight: 400;
    white-space: nowrap;
}

.unx-fund-dl dd {
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    margin: 0;
}

.unx-fund-sidebar {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

.unx-fund-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.unx-fund-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.unx-fund-table th,
.unx-fund-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-fund-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-muted, #6B7280);
    background: var(--brand-soft, #f5f7ff);
}

.unx-fund-table td:last-child { text-align: right; }
.unx-fund-table th:last-child { text-align: right; }

.unx-fund-fees {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.unx-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.unx-detail-table tr:nth-child(even) td {
    background: var(--brand-soft, #f5f7ff);
}

.unx-detail-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.06));
}

.unx-detail-table td:first-child {
    font-weight: 600;
    color: var(--brand-muted, #6B7280);
    width: 40%;
}

/* ---- Archive side panel ---- */
.unx-side-panel {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

/* ---- Archive header ---- */
.unx-archive-header {
    padding: 80px 0 40px;
    background: var(--brand-soft, #f5f7ff);
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

/* ---- Page.php default ---- */
.entry-header {
    padding: 80px 0 24px;
    background: var(--brand-soft, #f5f7ff);
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
    margin-bottom: 48px;
}

.entry-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
}

.page-links {
    display: flex;
    gap: 8px;
    margin: 32px 0;
}

/* ============================================================
   PAGE HERO — shared by all inner pages
   ============================================================ */
.unx-page-hero {
    padding: 100px 0 60px;
    background: var(--brand-soft, #f5f7ff);
    text-align: center;
}
.unx-page-hero .unx-eyebrow {
    display: block;
    margin-bottom: 8px;
}
.unx-page-hero .unx-single-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 12px;
    line-height: 1.2;
}
.unx-page-hero .unx-single-lead {
    font-size: 17px;
    color: var(--brand-muted, #6B7280);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   PAGE SECTION — shared spacing
   ============================================================ */
.unx-section {
    padding: 80px 0;
}
.unx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.unx-section-head h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0;
    line-height: 1.3;
}

/* ============================================================
   STATS BAR — reused on many pages
   ============================================================ */
.unx-stats {
    padding: 48px 0;
    background: var(--brand-soft, #f5f7ff);
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}
.unx-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
.unx-stat strong {
    display: block;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--brand-primary, #2D5BFF);
    line-height: 1.2;
}
.unx-stat span {
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.unx-contact-page-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.unx-contact-main h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 24px;
}
.unx-contact-panel {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 16px;
    padding: 32px;
}
.unx-contact-info {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 100px;
}
.unx-info-block {
    margin-bottom: 28px;
}
.unx-info-block:last-child {
    margin-bottom: 0;
}
.unx-info-block h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 16px;
}
.unx-contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}
.unx-contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
    font-size: 14px;
    color: var(--brand-ink, #0B1220);
}
.unx-contact-details li:last-child {
    border-bottom: none;
}
.unx-contact-details i {
    width: 20px;
    text-align: center;
    color: var(--brand-primary, #2D5BFF);
}
.unx-contact-details a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-contact-details a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-contact-panel .form-row {
    margin-bottom: 16px;
}
.unx-contact-panel .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    margin-bottom: 6px;
}
.unx-contact-panel .form-row input,
.unx-contact-panel .form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--brand-border, rgba(0,0,0,.12));
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--brand-ink, #0B1220);
    transition: border-color .15s;
    box-sizing: border-box;
}
.unx-contact-panel .form-row input:focus,
.unx-contact-panel .form-row textarea:focus {
    outline: none;
    border-color: var(--brand-primary, #2D5BFF);
    box-shadow: 0 0 0 3px rgba(45,91,255,.1);
}
.unx-contact-panel .form-row textarea {
    resize: vertical;
    min-height: 120px;
}
.unx-contact-panel .btn-full {
    width: 100%;
}
.unx-contact-panel .form-message {
    margin-top: 12px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
}
.unx-contact-panel .form-message.success {
    background: #ecfdf5;
    color: #065f46;
}
.unx-contact-panel .form-message.error {
    background: #fef2f2;
    color: #991b1b;
}

/* ============================================================
   LOCATIONS PAGE
   ============================================================ */
.unx-location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.unx-location-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .2s, box-shadow .2s;
}
.unx-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}
.unx-location-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.unx-location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    z-index: 1;
}
.unx-location-card strong,
.unx-location-card span {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.unx-location-card strong {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.unx-location-card span {
    font-size: 13px;
    opacity: .9;
    padding-bottom: 20px;
}

/* ============================================================
   TOOLS PAGE
   ============================================================ */
.unx-tool-card {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.unx-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.unx-tool-card .unx-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand-primary, #2D5BFF);
}
.unx-tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 12px;
}
.unx-tool-card p {
    font-size: 14px;
    color: var(--brand-muted, #6B7280);
    line-height: 1.6;
    margin: 0 0 20px;
}
.unx-calc-card {
    text-align: left;
}
.unx-calc-card .unx-card-icon {
    margin: 0 0 20px;
}
.unx-calc-form {
    margin-top: 24px;
}
.unx-calc-row {
    margin-bottom: 16px;
}
.unx-calc-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    margin-bottom: 6px;
}
.unx-calc-row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--brand-border, rgba(0,0,0,.12));
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.unx-calc-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 8px;
}
.unx-calc-result span {
    display: block;
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 4px;
}
.unx-calc-result strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary, #2D5BFF);
}
.unx-calc-result small {
    display: block;
    font-size: 11px;
    color: var(--brand-muted, #6B7280);
    margin-top: 4px;
}

/* ============================================================
   BLOG ARCHIVE (INSIGHT)
   ============================================================ */
.unx-blog-filter {
    padding: 32px 0;
    background: #fff;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
    position: sticky;
    top: 70px;
    z-index: 100;
}
.unx-filter-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.unx-search-box {
    display: flex;
    align-items: center;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 24px;
    padding: 4px 4px 4px 20px;
    min-width: 280px;
}
.unx-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 8px 12px;
    outline: none;
}
.unx-search-box button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .15s;
}
.unx-search-box button:hover {
    transform: scale(1.05);
}
.unx-topic-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.unx-topic-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--brand-soft, #f5f7ff);
    color: var(--brand-ink, #0B1220);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.unx-topic-chip:hover {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}
.unx-topic-chip.active {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}

.unx-blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 48px 0;
}
.unx-blog-main {
    min-width: 0;
}
.unx-blog-grid {
    display: grid;
    gap: 32px;
}

/* Featured Post */
.unx-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 32px;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
    margin-bottom: 48px;
}
.unx-featured-image {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.unx-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.unx-featured-post:hover .unx-featured-image img {
    transform: scale(1.05);
}
.unx-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.unx-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 12px;
}
.unx-topic-badge {
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.unx-featured-content h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}
.unx-featured-content h2 a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-featured-content h2 a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-featured-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 20px;
}

/* Blog Card */
.unx-blog-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
}
.unx-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.unx-blog-card-image {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.unx-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.unx-blog-card:hover .unx-blog-card-image img {
    transform: scale(1.05);
}
.unx-blog-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.unx-blog-card-content h3 a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-blog-card-content h3 a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-blog-card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 12px;
}
.unx-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}
.unx-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary, #2D5BFF);
    text-decoration: none;
}
.unx-card-link:hover {
    text-decoration: underline;
}

/* Blog Sidebar */
.unx-blog-sidebar {
    position: sticky;
    top: 140px;
}
.unx-sidebar-widget {
    background: var(--brand-soft, #f5f7ff);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.unx-sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 16px;
}
.unx-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.unx-popular-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}
.unx-popular-item:last-child {
    border-bottom: none;
}
.unx-popular-item a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-popular-item a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-popular-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--brand-muted, #6B7280);
    margin-top: 4px;
}
.unx-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.unx-category-list a {
    display: block;
    padding: 6px 12px;
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
    transition: all .15s;
}
.unx-category-list a:hover {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}

/* =============================================================
   SINGLE / ARCHIVE — RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
    .unx-single-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .unx-pricing-sidebar.is-sticky,
    .unx-fund-sidebar,
    .unx-side-panel,
    .unx-contact-info {
        position: static;
    }

    .unx-contact-page-grid {
        grid-template-columns: 1fr;
    }

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

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

    .unx-blog-sidebar {
        position: static;
    }

    .unx-featured-post {
        grid-template-columns: 1fr;
    }

    .unx-toc-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .unx-case-hero {
        aspect-ratio: 16/9;
    }

    .unx-case-hero-overlay {
        padding: 24px;
    }

    .unx-case-metrics {
        gap: 20px;
        padding: 20px;
    }

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

    .unx-feature-grid {
        grid-template-columns: 1fr;
    }

    .unx-fund-dl {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .unx-fund-dl dt {
        margin-top: 8px;
        font-size: 12px;
    }

    .unx-stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .unx-location-grid {
        grid-template-columns: 1fr;
    }

    .unx-card-grid.unx-grid-3,
    .unx-card-grid.unx-grid-2 {
        grid-template-columns: 1fr;
    }

    .unx-page-hero {
        padding: 60px 0 40px;
    }

    .unx-section {
        padding: 48px 0;
    }

    .unx-blog-card {
        grid-template-columns: 1fr;
    }

    .unx-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .unx-search-box {
        width: 100%;
    }
}
.unx-ai-summary-header strong {
    font-size: 16px;
    font-weight: 700;
}
.unx-ai-summary-content {
    font-size: 15px;
    line-height: 1.7;
    opacity: .95;
}
.unx-ai-summary-content p {
    margin: 0;
}

/* TOC Sidebar */
.unx-toc-sidebar {
    position: sticky;
    top: 100px;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 12px;
    padding: 24px;
}
.unx-toc-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 16px;
}
.unx-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.unx-toc-list li {
    margin-bottom: 8px;
}
.unx-toc-list a {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--brand-muted, #6B7280);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all .15s;
}
.unx-toc-list a:hover,
.unx-toc-list a.active {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}

/* FAQ Section */
.unx-faq-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--brand-soft, #f5f7ff);
    border-radius: 16px;
}
.unx-faq-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 24px;
}
.unx-faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.unx-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.unx-faq-question:hover {
    background: var(--brand-soft, #f5f7ff);
}
.unx-faq-question i {
    font-size: 12px;
    color: var(--brand-primary, #2D5BFF);
    transition: transform .2s;
}
.unx-faq-item.active .unx-faq-question i {
    transform: rotate(180deg);
}
.unx-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
}
.unx-faq-item.active .unx-faq-answer {
    max-height: 500px;
}
.unx-faq-answer-content {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--brand-muted, #6B7280);
}

/* References Section */
.unx-references {
    margin: 48px 0;
    padding: 24px;
    background: var(--brand-soft, #f5f7ff);
    border-left: 4px solid var(--brand-primary, #2D5BFF);
    border-radius: 8px;
}
.unx-references h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 12px;
}
.unx-references ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.unx-references li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 8px;
}
.unx-references a {
    color: var(--brand-primary, #2D5BFF);
    text-decoration: none;
    word-break: break-word;
}
.unx-references a:hover {
    text-decoration: underline;
}

/* Related Posts */
.unx-related-posts {
    margin: 64px 0 0;
    padding: 48px 0;
    border-top: 1px solid var(--brand-border, rgba(0,0,0,.07));
}
.unx-related-posts h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 32px;
}
.unx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.unx-related-card {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.unx-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.unx-related-card-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.unx-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.unx-related-card:hover .unx-related-card-image img {
    transform: scale(1.05);
}
.unx-related-card-body {
    padding: 20px;
}
.unx-related-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.unx-related-card-body h3 a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-related-card-body h3 a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-related-card-meta {
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
}

/* ========================================
   Blog Detail Page - Single Insight
   DISABLED - Moved to blog-detail-clean.css
   ======================================== */

/*
.unx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 32px;
}
.unx-breadcrumb a {
    color: var(--brand-muted, #6B7280);
    text-decoration: none;
    transition: color .2s;
}
.unx-breadcrumb a:hover {
    color: var(--brand-primary, #2D5BFF);
}

.unx-single-layout.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.unx-article-header {
    margin-bottom: 32px;
}
.unx-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--brand-muted, #6B7280);
    margin-bottom: 16px;
}
.unx-topic-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.unx-single-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-ink, #0B1220);
    margin: 0 0 16px;
}
.unx-single-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--brand-muted, #6B7280);
    margin: 0 0 24px;
}

/* Author Info */
.unx-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.unx-article-author img {
    border-radius: 50%;
}
.unx-author-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
}
.unx-author-info span {
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
}

/* Hero Image */
.unx-article-hero {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}
.unx-article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* AI Summary Box */
.unx-ai-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}
.unx-ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.unx-ai-summary-header i {
    font-size: 20px;
}
.unx-ai-summary-header strong {
    font-size: 16px;
    font-weight: 700;
}
.unx-ai-summary-content {
    font-size: 15px;
    line-height: 1.7;
}
.unx-ai-summary-content p {
    margin: 0;
}

/* Article Content - Prose Styling */
.unx-prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--brand-ink, #0B1220);
    margin-bottom: 48px;
}
.unx-prose h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--brand-ink, #0B1220);
    scroll-margin-top: 80px;
}
.unx-prose h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
}
.unx-prose p {
    margin: 0 0 20px;
}
.unx-prose ul, .unx-prose ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.unx-prose li {
    margin-bottom: 8px;
}
.unx-prose a {
    color: var(--brand-primary, #2D5BFF);
    text-decoration: underline;
}
.unx-prose a:hover {
    text-decoration: none;
}
.unx-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}
.unx-prose code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}
.unx-prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}
.unx-prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* FAQ Section */
.unx-faq-section {
    margin-bottom: 48px;
}
.unx-faq-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}
.unx-faq-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.unx-faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.unx-faq-item:last-child {
    border-bottom: none;
}
.unx-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
    cursor: pointer;
    transition: background .2s;
}
.unx-faq-question:hover {
    background: #f9fafb;
}
.unx-faq-question i {
    transition: transform .3s;
}
.unx-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.unx-faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--brand-muted, #6B7280);
}
.unx-faq-answer[hidden] {
    display: none;
}

/* References Section */
.unx-references-section {
    margin-bottom: 48px;
}
.unx-references-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}
.unx-references-list {
    list-style: decimal;
    padding-left: 24px;
}
.unx-references-list li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}
.unx-references-list a {
    color: var(--brand-primary, #2D5BFF);
    text-decoration: none;
}
.unx-references-list a:hover {
    text-decoration: underline;
}
.unx-ref-author {
    color: var(--brand-muted, #6B7280);
    font-style: italic;
}

/* Article Footer */
.unx-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
.unx-tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.unx-tag-list a {
    padding: 4px 12px;
    background: #f3f4f6;
    color: var(--brand-muted, #6B7280);
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.unx-tag-list a:hover {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
}

/* Share Bar */
.unx-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.unx-share-bar span {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-ink, #0B1220);
}
.unx-share-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    color: var(--brand-muted, #6B7280);
    border-radius: 50%;
    text-decoration: none;
    transition: all .2s;
}
.unx-share-bar a:hover {
    background: var(--brand-primary, #2D5BFF);
    color: #fff;
    transform: translateY(-2px);
}

/* Author Bio */
.unx-author-bio {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 48px;
}
.unx-author-bio img {
    border-radius: 50%;
    flex-shrink: 0;
}
.unx-author-bio-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}
.unx-author-bio-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--brand-muted, #6B7280);
    margin: 0;
}

/* Sidebar - TOC and Widgets */
.unx-article-sidebar {
    position: sticky;
    top: 100px;
}
.unx-toc-widget, .unx-sidebar-widget {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.unx-toc-widget h3, .unx-sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--brand-ink, #0B1220);
}
.unx-toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.unx-toc-nav li {
    margin-bottom: 8px;
}
.unx-toc-nav a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--brand-muted, #6B7280);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all .2s;
}
.unx-toc-nav a:hover, .unx-toc-nav a.active {
    color: var(--brand-primary, #2D5BFF);
    border-left-color: var(--brand-primary, #2D5BFF);
    background: #fff;
}

/* Share Buttons in Sidebar */
.unx-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.unx-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.unx-share-facebook {
    background: #1877f2;
    color: #fff;
}
.unx-share-facebook:hover {
    background: #0c63d4;
}
.unx-share-linkedin {
    background: #0a66c2;
    color: #fff;
}
.unx-share-linkedin:hover {
    background: #004182;
}
.unx-share-twitter {
    background: #000;
    color: #fff;
}
.unx-share-twitter:hover {
    background: #333;
}

/* Related Posts Section */
.unx-related-posts {
    margin-top: 64px;
}
.unx-related-posts h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}
.unx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.unx-related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
}
.unx-related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.unx-related-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.unx-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.unx-related-card:hover .unx-related-image img {
    transform: scale(1.05);
}
.unx-related-content {
    padding: 20px;
}
.unx-related-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px 0;
}
.unx-related-content h3 a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}
.unx-related-content h3 a:hover {
    color: var(--brand-primary, #2D5BFF);
}
.unx-related-content time {
    font-size: 13px;
    color: var(--brand-muted, #6B7280);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .unx-single-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
    .unx-article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .unx-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .unx-single-title {
        font-size: 32px;
    }
    .unx-article-sidebar {
        grid-template-columns: 1fr;
    }
    .unx-article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .unx-author-bio {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .unx-gallery {
        grid-template-columns: 1fr;
    }

    .unx-case-hero-overlay h1 {
        font-size: 22px;
    }

    .unx-page-hero .unx-single-title {
        font-size: 24px;
    }

    .unx-contact-panel {
        padding: 24px;
    }

    .unx-related-grid {
        grid-template-columns: 1fr;
    }

    .unx-breadcrumb {
        font-size: 11px;
    }
}

/* ============================================================
   BLOG / INSIGHT POLISH — archive template compatibility
   Fixes markup/CSS drift in archive-insight.php and gives the
   listing page a premium card layout consistent with brand tokens.
   ============================================================ */
.unx-archive-insight {
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--brand-primary, #2D5BFF) 8%, transparent), transparent 34%),
        var(--brand-bg, #F7F5EE);
}

.unx-archive-insight .unx-page-hero {
    padding: clamp(96px, 10vw, 132px) 0 68px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-soft, #EEF2FF) 84%, white), var(--brand-bg, #F7F5EE));
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-archive-insight .unx-blog-filter {
    background: color-mix(in srgb, var(--brand-bg, #F7F5EE) 84%, white);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(14,17,22,.045);
}

.unx-archive-insight .unx-filter-row {
    justify-content: space-between;
}

.unx-archive-insight .unx-search-box {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.08));
    box-shadow: 0 10px 28px rgba(14,17,22,.05);
}

.unx-archive-insight .unx-search-box input {
    color: var(--brand-ink, #0B1220);
    min-width: 220px;
}

.unx-archive-insight .unx-topic-chip {
    border: 1px solid var(--brand-border, rgba(0,0,0,.08));
    background: #fff;
}

.unx-archive-insight .unx-blog-layout {
    align-items: start;
}

.unx-archive-insight .unx-featured-post,
.unx-archive-insight .unx-blog-card,
.unx-archive-insight .unx-sidebar-widget {
    box-shadow: 0 18px 50px rgba(14,17,22,.055);
}

.unx-archive-insight .unx-featured-post {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 24px;
}

.unx-archive-insight .unx-featured-image,
.unx-archive-insight .unx-blog-card-image {
    position: relative;
    background: var(--brand-soft, #EEF2FF);
}

.unx-archive-insight .unx-featured-image img,
.unx-archive-insight .unx-blog-card-image img {
    display: block;
}

.unx-blog-card-body,
.unx-blog-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unx-blog-card-body h3,
.unx-blog-card-content h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.unx-blog-card-body h3 a,
.unx-blog-card-content h3 a {
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}

.unx-blog-card-body h3 a:hover,
.unx-blog-card-content h3 a:hover {
    color: var(--brand-primary, #2D5BFF);
}

.unx-blog-card-body p,
.unx-blog-card-content p {
    color: var(--brand-muted, #6B7280);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.unx-card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-ink, #0B1220) 86%, transparent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unx-read-more {
    margin-top: auto;
    color: var(--brand-primary, #2D5BFF);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.unx-read-more:hover {
    text-decoration: underline;
}

.unx-archive-insight .unx-sidebar-widget {
    background: #fff;
    border: 1px solid var(--brand-border, rgba(0,0,0,.07));
    border-radius: 20px;
}

.unx-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unx-popular-list,
.unx-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.unx-popular-list li {
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-popular-list li:last-child {
    border-bottom: 0;
}

.unx-popular-list li a {
    display: block;
    padding: 14px 0;
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
}

.unx-popular-title {
    display: block;
    font-weight: 750;
    line-height: 1.4;
}

.unx-popular-list a:hover .unx-popular-title {
    color: var(--brand-primary, #2D5BFF);
}

.unx-popular-meta {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--brand-muted, #6B7280);
}

.unx-topic-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    color: var(--brand-ink, #0B1220);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-border, rgba(0,0,0,.07));
}

.unx-topic-list li:last-child a {
    border-bottom: 0;
}

.unx-topic-list li a:hover {
    color: var(--brand-primary, #2D5BFF);
}

.unx-topic-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--brand-soft, #EEF2FF);
    color: var(--brand-muted, #6B7280);
    font-size: 12px;
    font-weight: 800;
}

.unx-newsletter-widget {
    background: linear-gradient(135deg, var(--brand-ink, #0B1220), color-mix(in srgb, var(--brand-primary, #2D5BFF) 55%, var(--brand-ink, #0B1220))) !important;
    color: #fff;
}

.unx-newsletter-widget > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    margin-bottom: 14px;
}

.unx-newsletter-widget h3,
.unx-newsletter-widget p {
    color: #fff !important;
}

.unx-newsletter-widget p {
    opacity: .76;
    line-height: 1.6;
}

.unx-newsletter-form {
    display: grid;
    gap: 10px;
}

.unx-newsletter-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.12);
    color: #fff;
    outline: none;
}

.unx-newsletter-form input::placeholder {
    color: rgba(255,255,255,.72);
}

.unx-newsletter-form .btn {
    justify-content: center;
}

@media (max-width: 768px) {
    .unx-archive-insight .unx-blog-filter {
        position: static;
    }

    .unx-archive-insight .unx-filter-row,
    .unx-archive-insight .unx-search-box {
        width: 100%;
    }

    .unx-archive-insight .unx-blog-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .unx-archive-insight .unx-blog-card-image {
        aspect-ratio: 16 / 9;
    }
}

/* Emergency mobile nav override 2026-05-12 */
@media (max-width: 960px) {
  .nav .menu-toggle,
  #navbar .menu-toggle,
  .site-header .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1002 !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 5px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
  }

  .nav .nav-shell,
  #navbar .nav-shell,
  .site-header .nav-shell,
  .nav .nav-inner,
  #navbar .nav-inner {
    position: relative !important;
    overflow: visible !important;
  }

  .nav .nav-links,
  #navbar .nav-links,
  .site-header .nav-links {
    display: none !important;
  }

  .nav.nav-open .nav-links,
  .nav.toggled .nav-links,
  #navbar.nav-open .nav-links,
  #navbar.toggled .nav-links,
  .site-header.nav-open .nav-links,
  .site-header.toggled .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 1001 !important;
    margin: 0 !important;
    padding: 10px 6px !important;
    gap: 0 !important;
    list-style: none !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(11,18,32,.14) !important;
  }

  .nav.nav-open .nav-links a,
  .nav.toggled .nav-links a,
  #navbar.nav-open .nav-links a,
  #navbar.toggled .nav-links a {
    display: block !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
}

@media (max-width: 760px) {
  .nav .nav-shell,
  #navbar .nav-shell,
  .site-header .nav-shell,
  .nav .nav-inner,
  #navbar .nav-inner {
    width: calc(100% - 20px) !important;
    height: 58px !important;
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 3px 0 8px !important;
  }

  .nav .nav-logo,
  #navbar .nav-logo,
  .site-header .nav-logo,
  .nav .logo,
  #navbar .logo {
    min-width: 0 !important;
    flex-shrink: 1 !important;
    font-size: 16px !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  .nav .nav-mark,
  #navbar .nav-mark,
  .site-header .nav-mark,
  .nav .logo-mark,
  #navbar .logo-mark {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    flex: 0 0 30px !important;
  }

  .nav .nav-actions,
  #navbar .nav-actions,
  .site-header .nav-actions {
    grid-column: 2 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-left: 0 !important;
    transform: translateX(-8px) !important;
    min-width: 0 !important;
  }

  .nav .nav-cta,
  .nav .nav-cta.btn-primary,
  #navbar .nav-cta,
  #navbar .nav-cta.btn-primary,
  .site-header .nav-cta,
  .site-header .nav-cta.btn-primary {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 9px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  .nav .lang-switcher,
  #navbar .lang-switcher,
  .site-header .lang-switcher {
    padding: 2px !important;
    transform: scale(.88) !important;
    transform-origin: right center !important;
  }

  .nav .lang-btn,
  #navbar .lang-btn,
  .site-header .lang-btn {
    padding: 6px 7px !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
  }

  .nav .hamburger,
  #navbar .hamburger,
  .site-header .hamburger {
    width: 20px !important;
    gap: 4px !important;
  }
}
