/* Editorial & Monospace Micro-Utilities */
body {
    background-color: #F8F9FA;
    color: #334155;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Subtle Grid Overlay */
.bg-grid-pattern {
    background-size: 32px 32px;
    background-image: linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94A3B8;
    }

/* Code block syntax colors */
.syn-kw {
    color: #F43F5E;
    font-weight: 600;
}

.syn-type {
    color: #38BDF8;
}

.syn-func {
    color: #60A5FA;
}

.syn-str {
    color: #4ADE80;
}

.syn-cmnt {
    color: #64748B;
    font-style: italic;
}

/* Slider Progress Animation */
.progress-bar-fill {
    transition: width 0.1s linear;
}

/* Smooth Hide/Show Transition */
.article-card {
    transition: all 0.25s ease-in-out;
}

    .article-card.hidden-card {
        display: none !important;
    }

/* Public HomeLayout pages use their page masthead as the primary navigation context */
.cp-crumb,
.ax-crumbbar {
    display: none !important;
}

/* ===== ISOLATED PUBLIC FOOTER ===== */
.ux-footer {
    background-color: #020617 !important;
    color: #94a3b8 !important;
    border-top: 1px solid #0f172a !important;
    font-size: 13px;
    width: 100%;
    margin-top: auto;
}

.ux-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 0.75rem;
}

@media (min-width: 640px) {
    .ux-footer-inner {
        padding: 3rem 1rem;
    }
}

@media (min-width: 1024px) {
    .ux-footer-inner {
        padding: 3rem 1.25rem;
    }
}

.ux-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .ux-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ux-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.ux-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ux-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.ux-footer-mark {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background-color: #1d4ed8;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .ux-footer-mark.is-img {
        background-color: transparent;
    }

    .ux-footer-mark img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        display: block;
    }

.ux-footer-title {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.ux-footer-sub {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.ux-footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 24rem;
    margin: 0;
}

.ux-footer-contact,
.ux-footer-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

    .ux-footer-contact a,
    .ux-footer-list a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.15s ease;
        word-break: break-word;
    }

        .ux-footer-contact a:hover,
        .ux-footer-list a:hover {
            color: #ffffff;
        }

.ux-footer-extra {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ux-footer-quick {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

    .ux-footer-quick a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .ux-footer-quick a:hover {
            color: #ffffff;
        }

.ux-footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.ux-footer-muted {
    color: #64748b;
}

/* Social Icons Containment & Visibility */
.ux-footer-social,
.ux-footer-social > div,
.ux-footer-social > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.625rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .ux-footer-social a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 0.5rem !important;
        background-color: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #e2e8f0 !important;
        text-decoration: none !important;
        transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    }

        .ux-footer-social a:hover {
            color: #ffffff !important;
            border-color: #3b82f6 !important;
            background-color: #1d4ed8 !important;
        }

    .ux-footer-social svg,
    .ux-footer-social img {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
        display: block !important;
        color: inherit !important;
    }

        .ux-footer-social svg:not([fill="none"]),
        .ux-footer-social svg path:not([fill="none"]) {
            fill: currentColor !important;
        }

        .ux-footer-social svg[stroke]:not([stroke="none"]),
        .ux-footer-social svg path[stroke]:not([stroke="none"]) {
            stroke: currentColor !important;
        }

/* Bottom Bar */
.ux-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #0f172a;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #64748b;
}

@media (min-width: 640px) {
    .ux-footer-bottom {
        flex-direction: row;
    }
}

.ux-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

    .ux-footer-legal a {
        color: #64748b;
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .ux-footer-legal a:hover {
            color: #ffffff;
        }

/* ===== PUBLIC LAYOUT READABILITY & GUTTER TUNING =====
   Shared by the home layout and every page that uses it. Tailwind CDN injects
   utilities at runtime, so these use !important to keep the tuned values. */

/* Bump the very small utility sizes that dominate the header, footer and cards. */
html [class~="text-[10px]"] {
    font-size: 12px !important;
}

html [class~="text-[11px]"] {
    font-size: 12px !important;
}

html [class~="text-xs"] {
    font-size: 13px !important;
}

/* Tighter page gutters while keeping card/panel padding untouched. */
html [class~="mx-auto"][class~="px-4"],
html [class~="mx-auto"][class~="sm:px-6"],
html [class~="mx-auto"][class~="lg:px-8"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

@media (min-width: 640px) {
    html [class~="mx-auto"][class~="sm:px-6"],
    html [class~="mx-auto"][class~="lg:px-8"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 1024px) {
    html [class~="mx-auto"][class~="lg:px-8"] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Widen the shared page shell moderately: Tailwind max-w-7xl is 80rem,
   the public layout uses 96rem so there is still a standard side margin. */
html [class~="mx-auto"][class~="max-w-7xl"] {
    max-width: 96rem !important;
}

.ux-footer-inner {
    max-width: 96rem;
}

