/**
 * Micro Sites Theme — Base Styles
 *
 * Supplements Tailwind CSS with theme-specific styles
 * that can't be handled by utility classes alone.
 */

/* ============================================
   Scrollbar hide (for domain group nav)
   ============================================ */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   WordPress Nav Menu Integration
   ============================================ */
/* Desktop nav items */
header nav > .menu-item > a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.15s;
}
header nav > .menu-item > a:hover {
    color: var(--color-brand, #1a56db);
}
header nav > .current-menu-item > a {
    color: var(--color-brand, #1a56db);
    font-weight: 600;
}

/* Mobile nav items */
#mobile-menu .menu-item a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
#mobile-menu .current-menu-item a {
    color: var(--color-brand, #1a56db);
    font-weight: 600;
}

/* Footer nav items */
footer .menu-item a {
    color: #9ca3af;
    transition: color 0.15s;
}
footer .menu-item a:hover {
    color: #ffffff;
}

/* ============================================
   WordPress Block Editor Content (Prose)
   ============================================ */
.prose img {
    border-radius: 0.5rem;
}
.prose a {
    color: var(--color-brand, #1a56db);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s;
}
.prose a:hover {
    text-decoration-color: currentColor;
}

/* ============================================
   Smooth page transitions
   ============================================ */
main {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Brand color CSS custom property
   (Set dynamically via Tailwind config in functions.php,
    also available as a CSS variable for non-Tailwind styles)
   ============================================ */
:root {
    --color-brand: #1a56db;
    --color-accent: #f59e0b;
}
