body {
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Soft fade-in once the header/footer partials have loaded, to avoid
   the unstyled flash. layout.js adds `.layout-ready` once includes are
   in place; the @media (scripting) query keeps the page visible for
   users with JS disabled, and layout.js has its own 800ms safety net. */
body {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
body.layout-ready {
    opacity: 1;
}
@media (scripting: none) {
    body { opacity: 1; }
}

/* Dropdown — opens on hover for mouse and via the dropdown-open class
   for touch / tap (toggled by layout.js). */
.dropdown {
    position: relative;
}
.dropdown:hover .dropdown-menu,
.dropdown.dropdown-open .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    z-index: 50;
    top: 100%;
    left: 0;
    padding: 8px 0;
}
    /* Invisible bridge keeps the menu open as the cursor crosses the gap */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        right: 0;
        height: 15px;
    }

    .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        text-decoration: none;
    }

        .dropdown-menu a:hover {
            background-color: hsl(10, 80%, 60%) !important;
            color: white !important;
        }

.mobile-dropdown {
    display: none !important;
}

    .mobile-dropdown.open {
        display: block !important;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-secondary {
    background-color: hsl(var(--secondary));
    background-color: rgb(34, 195, 168);
}

.text-secondary {
    color: rgb(34, 195, 168);
}

/* FAQ accordion — shared across all FAQ-bearing pages.
   `.faq-icon` is an alias of `.faq-chevron` to support both class names
   used historically. `.faq-item > button` shows pointer cursor so the
   whole row feels clickable. */
.faq-answer {
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-item.open .faq-chevron,
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}
.faq-chevron,
.faq-icon {
    transition: transform 0.2s;
}
.faq-item > button {
    cursor: pointer;
}

/* Remote Support download toast. Slides in from bottom-right after the
   user clicks the Remote Support nav link, so they get explicit feedback
   that the .exe is downloading. Auto-dismisses after 10s. */
.remote-support-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 380px;
    padding: 14px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid hsl(170, 70%, 45%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.remote-support-toast.rst-show {
    opacity: 1;
    transform: translateY(0);
}
.remote-support-toast .rst-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: hsl(170, 70%, 45%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remote-support-toast .rst-body { flex: 1; min-width: 0; }
.remote-support-toast .rst-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}
.remote-support-toast .rst-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}
.remote-support-toast .rst-actions { margin-top: 6px; }
.remote-support-toast .rst-link {
    font-size: 12px;
    color: hsl(215, 80%, 35%);
    text-decoration: underline;
}
.remote-support-toast .rst-close {
    flex-shrink: 0;
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.remote-support-toast .rst-close:hover { color: #475569; }
@media (max-width: 480px) {
    .remote-support-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}
