/* ============================================================
   FF Disclosures — link bar + modal
   ============================================================ */

/* ---- Link bar ---- */
.ff-disc-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 5px 10px;
    background: transparent;
    font-size: 11px;
    line-height: 1.4;
    color: #888;
    margin-bottom: 8px;
}

.ff-disc-sep {
    color: #ccc;
    user-select: none;
}

.ff-disc-link {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color .15s;
    outline: none !important;
    box-shadow: none !important;
}

.ff-disc-link:hover,
.ff-disc-link:focus,
.ff-disc-link:focus-visible,
.ff-disc-link:active {
    color: #1a3d4d;
    text-decoration-style: solid;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* ---- Backdrop ---- */
.ff-disc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ff-disc-fade-in .18s ease;
}

.ff-disc-backdrop[hidden] {
    display: none;
}

@keyframes ff-disc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal box ---- */
.ff-disc-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .22);
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: ff-disc-slide-in .2s ease;
    overflow: hidden;
}

@keyframes ff-disc-slide-in {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ff-disc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.ff-disc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #456674;
    line-height: 1.2;
}

.ff-disc-close {
    appearance: none;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

.ff-disc-close:hover {
    color: #333;
    background: #f4f4f4;
}

.ff-disc-modal-body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.65;
    color: #444;
}

.ff-disc-modal-body p {
    margin: 0 0 12px;
}

.ff-disc-modal-body p:last-child {
    margin-bottom: 0;
}

/* ---- Body lock when modal open ---- */
body.ff-disc-open {
    overflow: hidden;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .ff-disc-modal {
        max-height: 88vh;
        border-radius: 8px;
    }

    .ff-disc-modal-body {
        font-size: 13px;
    }
}
