﻿/* ============================================================
   filings.css — /filings/{ticker} and /secfilings. Prefix fl-.
   ============================================================ */

.fl-page {
    width: 100%;
    padding: 1.25rem 0 3rem;
    color: var(--text);
}

.fl-market {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.fl-head {
    margin-bottom: 1.25rem;
}

.fl-title {
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    color: var(--text);
    margin: 0 0 .4rem;
    letter-spacing: -.01em;
}

.fl-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    max-width: 80ch;
}

/* ---- filters ---- */
.fl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 1rem;
}

.fl-fbtn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

    .fl-fbtn:hover {
        border-color: var(--ew-gold, #DDB785);
        color: var(--text);
    }

    .fl-fbtn.is-on {
        background: var(--ew-gold, #DDB785);
        border-color: var(--ew-gold, #DDB785);
        color: #23324a;
    }

/* ---- table ---- */
.fl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fl-count {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding-bottom: .4rem;
}

.fl-table th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}

.fl-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.fl-date {
    white-space: nowrap;
    color: var(--text-muted);
    width: 9rem;
}

.fl-tk {
    width: 7.5rem;
    font-weight: 700;
}

.fl-tklink {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text);
    text-decoration: none;
}

    .fl-tklink:hover {
        color: var(--ew-gold, #DDB785);
    }

/* circled logo, same treatment as the ticker chips and the news cards */
.fl-logo {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
}

/* the form number stays quiet; the classified event is the part that reads */
.fl-formno {
    display: inline-block;
    min-width: 5.5rem;
    font-weight: 700;
    color: var(--text);
}

.fl-event {
    color: var(--ew-gold, #DDB785);
    font-weight: 600;
}

.fl-link {
    width: 8rem;
}

    .fl-link a {
        color: var(--ew-gold, #DDB785);
        text-decoration: none;
        font-weight: 600;
    }

        .fl-link a:hover {
            text-decoration: underline;
        }

.fl-muted {
    color: var(--text-muted);
}

.fl-empty {
    color: var(--text-muted);
    padding: 2.5rem 0;
}

.fl-note {
    margin: 1rem 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 82ch;
}

@media (max-width: 640px) {
    .fl-formno {
        display: block;
        min-width: 0;
    }

    .fl-date {
        width: auto;
    }

    .fl-tk {
        width: auto;
    }

    .fl-logo {
        width: 20px;
        height: 20px;
    }

    .fl-table {
        font-size: 13px;
    }
}


/* ---- coverage toggle + pager (market feed) ---- */
.fl-controls {
    margin: 0 0 1rem;
}

.fl-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

    .fl-toggle:hover {
        border-color: var(--ew-gold, #DDB785);
        color: var(--text);
    }

    .fl-toggle.is-on {
        color: var(--text);
        border-color: var(--ew-gold, #DDB785);
    }

.fl-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    color: #23324a;
}

.fl-toggle.is-on .fl-check {
    background: var(--ew-gold, #DDB785);
    border-color: var(--ew-gold, #DDB785);
}

.fl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.fl-pbtn {
    color: var(--ew-gold, #DDB785);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

    .fl-pbtn:hover {
        text-decoration: underline;
    }

    .fl-pbtn.is-off {
        color: var(--text-muted);
        opacity: .45;
        pointer-events: none;
    }

.fl-pnum {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
