/* Sporteqa /e/ flow — page-specific styles */

/* ── Two-column event page layout ────────────────────────── */
.e-event-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* Banner: top of left column */
.e-ev-banner {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

/* Content pane: left column, below banner */
.e-ev-pane {
    grid-column: 1;
    min-width: 0;
}
.e-pane-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Right column: sticky aside spans all rows */
.e-event-aside {
    grid-column: 2;
    grid-row: 1 / span 20;
    position: sticky;
    top: 80px;
    align-self: start;
}

/* ── Hero Banner ─────────────────────────────────────────── */
.e-hero-card {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 45%, #2563eb 100%);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
}
.e-hero-card--photo {
    background: none;
    aspect-ratio: unset;
}
.e-hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.e-hero-content {
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}
.e-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.625rem;
}
.e-hero-title {
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.875rem;
    line-height: 1.25;
}
.e-hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}
.e-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.845rem;
    color: var(--text-muted);
}
.e-hero-meta-item i {
    font-size: 0.8rem;
    color: var(--primary);
}

/* ── Registration Card ───────────────────────────────────── */
.e-reg-card {
    margin-bottom: 0;
}
.e-reg-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.e-reg-status--soon   { background: #fffbeb; border-left: 4px solid #f59e0b; }
.e-reg-status--closed { background: #fef2f2; border-left: 4px solid #ef4444; }
.e-reg-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.e-reg-status--soon .e-reg-status-icon   { background: #fef3c7; color: #d97706; }
.e-reg-status--closed .e-reg-status-icon { background: #fee2e2; color: #dc2626; }
.e-reg-status-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.e-reg-status-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.125rem; }
.e-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-left: auto;
}
.e-reg-badge--open   { background: #dcfce7; color: #166534; }
.e-reg-badge--soon   { background: #fef3c7; color: #92400e; }
.e-reg-badge--closed { background: #fee2e2; color: #991b1b; }
.e-reg-open-body { padding: 1.5rem; }
.e-reg-deadline {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.e-reg-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

/* ── Section heading ─────────────────────────────────────── */
.e-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.2rem;
}
.e-section-title i { color: var(--primary); }
.e-section-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Event description ───────────────────────────────────── */
.e-event-desc-body {
    font-size: 0.9rem;
    line-height: 1.85;
    color: #374151;
}
.e-event-desc-body p   { margin-bottom: 0.75rem; }
.e-event-desc-body img { max-width: 100%; border-radius: 8px; }

/* ── Mobile sticky CTA ───────────────────────────────────── */
.e-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem 1rem;
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

/* ── Sidebar registration styles ─────────────────────────── */
.e-reg-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.e-reg-facts {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.e-reg-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.e-reg-fact > i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.e-reg-fact-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.125rem;
}
.e-reg-fact-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}
.e-reg-fact-price { color: var(--primary); font-size: 1rem; }

/* ── Leaderboard ─────────────────────────────────────────── */
.e-btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

.e-lb-search-wrap {
    position: relative;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
}
.e-lb-search-inner { position: relative; }
.e-lb-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}
.e-lb-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.e-lb-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.e-lb-suggestions {
    position: absolute;
    top: calc(100% - 2px);
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}
.e-lb-sug-item {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.e-lb-sug-item:last-child { border-bottom: none; }
.e-lb-sug-item:hover      { background: var(--primary-light); }
.e-lb-hl { background: #fef08a; color: inherit; border-radius: 2px; font-style: normal; }

.e-lb-table { width: 100%; border-collapse: collapse; }
.e-lb-table thead tr {
    background: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}
.e-lb-table th {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-align: left;
}
.e-lb-th-right { text-align: right !important; }
.e-lb-table tbody tr { border-bottom: 1px solid var(--border); }
.e-lb-rank {
    padding: 0.75rem 1rem;
    width: 2.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.e-lb-team { padding: 0.75rem 1rem; }
.e-lb-team-name { font-weight: 600; font-size: 0.9rem; }
.e-lb-progress-bar {
    margin-top: 0.3rem;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 160px;
}
.e-lb-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width .3s;
}
.e-lb-progress-full { background: var(--danger); }
.e-lb-count {
    padding: 0.75rem 1rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.e-lb-count--active { color: var(--primary); }
.e-lb-cap {
    padding: 0.75rem 1rem;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.e-lb-full-badge {
    background: var(--danger);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.e-lb-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.e-lb-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--border);
    gap: 0.75rem;
    flex-wrap: wrap;
}
.e-lb-status { font-size: 0.8rem; color: var(--text-muted); }
.e-lb-btn-group { display: flex; gap: 0.5rem; }
.e-lb-btn-reset { color: var(--text-muted) !important; border-color: var(--border) !important; }
.e-lb-btn-reset:hover { color: var(--danger) !important; border-color: var(--danger) !important; background: #fef2f2 !important; }

/* ── Registration nav tabs ───────────────────────────────── */
/* The organiser sets which row each tab sits on, so rows are explicit elements
   rather than the grid wrapping on its own. Each row keeps the 4-column track
   so a short row lines its buttons up with the row above it. */
.e-reg-nav {
    border-top: 1px solid var(--border);
}
.e-reg-nav-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.e-reg-nav-row + .e-reg-nav-row {
    border-top: 1px solid var(--border);
}
.e-reg-nav-btn {
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    padding: 0.65rem 0.2rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: background .15s, color .15s;
    line-height: 1.3;
    text-align: center;
    font-family: inherit;
}
.e-reg-nav-btn:last-child { border-right: none; }
.e-reg-nav-btn i { font-size: 1rem; }
.e-reg-nav-btn:hover { background: var(--bg); color: var(--text); }
.e-reg-nav-btn.active { color: var(--primary); background: var(--primary-light); }
.e-reg-nav-btn--share:hover { color: var(--success); background: var(--success-light); }

/* ── AJAX / tab loading ──────────────────────────────────── */
.e-tab-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.e-spinner--dark {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── FAQ accordion ───────────────────────────────────────── */
.e-faq-accordion { border: none; }
.e-faq-cat-group { margin-bottom: 0.25rem; }
.e-faq-cat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 0 0.4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}
.e-faq-item {
    border: none;
    border-bottom: 1px solid var(--border);
    background: none;
}
.e-faq-item:last-child { border-bottom: none; }
.e-faq-q {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text) !important;
    background: none !important;
    padding: 0.875rem 2.5rem 0.875rem 0 !important;
    box-shadow: none !important;
}
.e-faq-q:not(.collapsed) { color: var(--primary) !important; }
.e-faq-q::after { filter: none; }
.e-faq-a {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-muted);
    padding: 0.5rem 0 1rem;
}
.e-faq-a p   { margin-bottom: 0.5rem; }
.e-faq-a ul,
.e-faq-a ol  { margin-left: 1.25rem; margin-bottom: 0.5rem; }
.e-faq-a img { max-width: 100%; border-radius: 6px; }

/* ── T&C body ────────────────────────────────────────────── */
.e-tnc-body {
    font-size: 0.875rem;
    line-height: 1.85;
    color: #374151;
}
.e-tnc-body p   { margin-bottom: 0.75rem; }
.e-tnc-body h3,
.e-tnc-body h4,
.e-tnc-body h5  { margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--text); font-size: 0.95rem; font-weight: 700; }
.e-tnc-body ul,
.e-tnc-body ol  { margin-left: 1.25rem; margin-bottom: 0.75rem; }
.e-tnc-body img { max-width: 100%; border-radius: 6px; }
.e-tnc-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background: var(--success-light);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #065f46;
    font-weight: 500;
}
.e-tnc-footer i { color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ── Category cards ─────────────────────────────────────── */
.e-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.e-category-card {
    position: relative;
    padding: 0.875rem 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
}
.e-category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.e-category-card.selected {
    border-color: var(--primary-dark);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.28);
    color: white;
}
.e-category-card.selected .e-category-name  { color: white; }
.e-category-card.selected .e-category-price { color: white; }
.e-category-card.selected .e-category-distance { color: rgba(255,255,255,0.82); }
.e-category-card.selected .e-category-tier  { color: rgba(255,255,255,0.75); }
.e-category-card.selected .e-tier-badge     { background: rgba(255,255,255,0.2); color: white; border: none; }
.e-category-card .check {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.e-category-card.selected .check { display: flex; background: white; color: var(--primary); }
.e-tier-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
}
.e-category-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.e-category-distance {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.e-category-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.25rem;
}
.e-category-tier {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}
.e-cat-upcoming {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.e-cat-upcoming-row {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: left;
}
.e-cat-upcoming-row strong {
    color: var(--text);
}
.e-cat-upcoming-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Divider ─────────────────────────────────────────────── */
.e-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .e-event-layout {
        grid-template-columns: 1fr;
    }
    /* Explicit row placement — no reliance on order property */
    .e-ev-banner   { grid-column: 1; grid-row: 1; }
    .e-event-aside { grid-column: 1; grid-row: 2; position: static; }
    .e-ev-pane     { grid-column: 1; grid-row: 3; }
}
@media (max-width: 768px) {
    .e-sticky-cta { display: block; }
    .e-hero-content { padding: 1rem 1rem 1.25rem; }
    .e-hero-title { font-size: 1.2rem; }
    .e-main { padding-bottom: 0 !important; padding-left: 1rem !important; padding-right: 1rem !important; }
    .e-reg-sidebar-head { padding: 1rem; }
    .e-reg-facts { padding: 0.875rem 1rem; }
    .e-reg-badge { margin-left: 0; }
}

/* ── Sponsors band (Event Detail tab) ────────────────────── */
/* Marquee treatment mirrors the organiser dashboard. The track holds two
   identical copies of the logo set, so translateX(-50%) ends on a frame
   identical to the start and the loop has no visible seam. */
.e-sponsor-strip { overflow: hidden; position: relative; }
.e-sponsor-track {
    display: flex;
    width: max-content;
    /* --e-sponsor-shift / --e-sponsor-duration are set per strip by the JS,
       from the measured tile width. The fallbacks only matter if the script
       never runs — the band then simply sits still rather than sliding wrong. */
    animation: eSponsorScroll var(--e-sponsor-duration, 30s) linear infinite;
}
.e-sponsor-strip:hover .e-sponsor-track { animation-play-state: paused; }
/* Each set carries its own trailing gap, so consecutive tiles butt up with the
   same spacing as the logos inside them and the repeat is invisible. */
.e-sponsor-set {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding-right: 40px;
}
@keyframes eSponsorScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--e-sponsor-shift, 0px))); }
}
.e-sponsor-item {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    transition: transform .3s ease;
}
.e-sponsor-item:hover { transform: scale(1.08); }
.e-sponsor-item img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
}
.e-sponsor-item small {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    /* Smaller tiles; the duration is derived from the tile width by the JS,
       so the scroll speed stays the same rather than needing its own override. */
    .e-sponsor-item { width: 150px; }
    .e-sponsor-item img { max-width: 130px; max-height: 100px; }
}
/* No prefers-reduced-motion override here, matching the organiser dashboard:
   that rule both stopped the marquee and left a permanent scrollbar for anyone
   with "reduce motion" switched on at OS level. Hover still pauses it. */

/* ── "Powered by Sporteqa" footer ────────────────────────── */
.e-powered {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    /* The mobile bottom-nav is fixed over the page, so leave room or the
       credit sits underneath it and is never actually readable. */
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.78rem;
    color: var(--text-muted);
}
.e-powered a {
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.e-powered a:hover { color: var(--primary); }
.e-powered strong { font-weight: 800; letter-spacing: 0.06em; }
@media (max-width: 991.98px) {
    /* Clear the fixed bottom nav on the breakpoints where it is shown. */
    .e-powered { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ── Event-wide search (navbar) ──────────────────────────── */
.e-nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    flex: 0 0 auto;
}
.e-nav-search-btn:hover,
.e-nav-search-btn[aria-expanded="true"] {
    border-color: var(--primary);
    color: var(--primary);
}
/* #eNavbar is position:fixed at 56px tall with z-index 1030, so this has to be
   fixed directly beneath it. Left in normal flow it sat *under* the navbar and
   was painted over — visible only as a sliver. */
.e-navsearch {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1029;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.75rem 1rem;
}
.e-navsearch-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.e-navsearch-inner > i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.e-navsearch-inner input {
    width: 100%;
    padding: 11px 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: inherit;
    font-size: 0.95rem;
    outline: none;
}
.e-navsearch-inner input:focus { border-color: var(--primary); background: var(--white); }
.e-navsearch-inner input::-webkit-search-cancel-button { -webkit-appearance: none; }
#eNavSearchClose {
    position: absolute;
    right: 8px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 6px;
}
#eNavSearchClose:hover { color: var(--primary); }
.e-navsearch-results {
    max-width: 1200px;
    margin: 0 auto;
    max-height: 46vh;
    overflow-y: auto;
}
.e-navsearch-results:not(:empty) { margin-top: 0.6rem; }
.e-ns-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    margin-bottom: 0.4rem;
}
.e-ns-row:hover { border-color: var(--primary); background: var(--primary-light); }
.e-ns-row > i { color: var(--primary); width: 18px; text-align: center; }
.e-ns-name { font-weight: 700; font-size: 0.9rem; }
.e-ns-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}
.e-ns-msg { font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 0.25rem; }
