/* Base47 Soft UI – only loaded in classic mode */

:root {
    --b47-bg: #050816;
    --b47-surface: #0b1120;
    --b47-surface-alt: #111827;
    --b47-border: rgba(148, 163, 184, 0.2);
    --b47-text: #e5e7eb;
    --b47-muted: #9ca3af;
    --b47-accent: #6366f1;
    --b47-accent-soft: rgba(99, 102, 241, 0.12);
    --b47-radius-lg: 18px;
    --b47-radius-xl: 24px;
    --b47-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

body.base47-classic {
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--b47-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global layout wrapper */
.base47-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Simple container */
.b47-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* HEADER */

.b47-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.7),
        transparent
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.b47-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}

.b47-logo a {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at top left, #1d4ed8 0, transparent 45%),
                rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.b47-logo a:hover {
    border-color: rgba(129, 140, 248, 0.9);
}

/* NAV */

.b47-nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.b47-nav-list a {
    font-size: 14px;
    color: var(--b47-muted);
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.18s ease-out;
}

.b47-nav-list a:hover,
.b47-nav-list .current-menu-item > a,
.b47-nav-list .current_page_item > a {
    color: var(--b47-text);
    background: var(--b47-accent-soft);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

/* MAIN CONTENT */

.b47-main {
    flex: 1;
    padding-block: 40px;
}

.b47-page-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.b47-page-title {
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.b47-page-article {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.25), transparent 60%),
                var(--b47-surface);
    border-radius: var(--b47-radius-xl);
    padding: 24px 22px;
    box-shadow: var(--b47-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Keep content spacing reasonable but not intrusive */
.b47-page-content > *:first-child {
    margin-top: 0;
}
.b47-page-content > *:last-child {
    margin-bottom: 0;
}

/* FOOTER */

.b47-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
    padding-block: 18px;
}

.b47-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.b47-footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--b47-muted);
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .b47-header-inner {
        padding-block: 10px;
    }

    .b47-nav-list {
        gap: 10px;
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .b47-page-article {
        padding: 18px 16px;
    }

    .b47-main {
        padding-block: 28px;
    }
}