/* Unified /f1 navigation + glossary modal styles */

.f1-quick-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.f1-scroll-link {
    background: linear-gradient(145deg, rgba(22, 31, 54, 0.86) 0%, rgba(12, 18, 33, 0.92) 100%);
    border: 1px solid rgba(225, 6, 0, 0.3);
    border-radius: 999px;
    color: #f3f5ff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.52rem 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: none;
}

.f1-scroll-link:hover,
.f1-scroll-link:focus {
    background: linear-gradient(145deg, rgba(22, 31, 54, 0.86) 0%, rgba(12, 18, 33, 0.92) 100%);
    border-color: rgba(225, 6, 0, 0.3);
    color: #f3f5ff;
    text-decoration: none;
}

.f1-scroll-link.active,
.f1-scroll-link[aria-current="true"] {
    background: linear-gradient(145deg, rgba(22, 31, 54, 0.86) 0%, rgba(12, 18, 33, 0.92) 100%);
    border-color: rgba(225, 6, 0, 0.3);
    box-shadow: none;
    color: #f3f5ff;
}

.f1-scroll-link-button {
    appearance: none;
}

.f1-workflow {
    align-items: center;
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 0.85) 100%);
    border: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 12px;
    color: #dbe6ff;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.5rem 0.7rem;
}

.f1-workflow span {
    white-space: nowrap;
}

.f1-workflow .badge {
    background: linear-gradient(130deg, rgba(225, 6, 0, 0.84) 0%, rgba(176, 4, 0, 0.95) 100%);
    border: 1px solid rgba(255, 118, 111, 0.45);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    min-width: 1.45rem;
}

.f1-workflow .workflow-arrow {
    color: #fda4af;
    font-weight: 700;
}

.f1-anchor-target {
    height: 1px;
    margin-top: -0.75rem;
}

.f1-instruction-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.f1-instruction-panel h6 {
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.f1-glossary-modal-content {
    background: linear-gradient(155deg, #0d1424 0%, #0f172a 62%, #101a2f 100%);
    border: 1px solid rgba(225, 6, 0, 0.28);
    color: #e8eefc;
}

.f1-glossary-modal-header {
    background: linear-gradient(120deg, rgba(225, 6, 0, 0.23) 0%, rgba(12, 18, 33, 0.85) 64%);
    border-bottom: 1px solid rgba(225, 6, 0, 0.3);
}

.f1-glossary-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.f1-glossary-term {
    background: linear-gradient(150deg, #10192d 0%, #0f172a 100%);
    border: 1px solid rgba(225, 6, 0, 0.24);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.f1-glossary-term:hover,
.f1-glossary-term:focus-within {
    border-color: rgba(225, 6, 0, 0.65);
    box-shadow: 0 8px 18px rgba(225, 6, 0, 0.15);
}

.f1-glossary-highlight {
    animation: f1GlossaryPulse 1.2s ease;
}

@keyframes f1GlossaryPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
    }
    100% {
        box-shadow: 0 0 0 14px rgba(225, 6, 0, 0);
    }
}

.f1-glossary-term-name {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.f1-glossary-term-short {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.f1-glossary-term-definition {
    color: #aeb9d4;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.f1-glossary-term-links {
    color: #9fb0d6;
    font-size: 0.76rem;
    margin-top: auto;
}

.f1-glossary-link-label {
    color: #d7e2ff;
    font-weight: 600;
}

.f1-glossary-link-sep {
    color: #76839f;
}

.f1-scroll-link-inline {
    color: #8fcdff;
    text-decoration: underline;
}

.f1-scroll-link-inline:hover,
.f1-scroll-link-inline:focus {
    color: #b8e3ff;
}

@media (max-width: 768px) {
    .f1-scroll-link {
        font-size: 0.78rem;
        padding: 0.45rem 0.7rem;
    }

    .f1-workflow {
        width: 100%;
    }

    .f1-glossary-list {
        grid-template-columns: 1fr;
    }
}
