/* ═══════════════════════════════════════════════════════════════
   shared-controls.css
   Unified design tokens used on Law Library, Minimum Wages, and
   any other page that uses _LibraryControls or _PageBanner.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Banner ───────────────────────────────────────────────── */
.page-banner {
    background: linear-gradient(135deg, #0B1F3A 0%, #1A3358 60%, #2A4A7F 100%);
    padding: 16px 0 32px;
    /* Extremely compact, just enough bottom padding to clear the floating pill */
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-banner__inner {
    max-width: 1320px;
    /* Aligns with standard bootstrap/container width */
    margin: 0 auto;
    padding: 0 15px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: rgba(245, 135, 50, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.page-banner__title {
    color: #fff;
    font-size: 22px;
    /* Much smaller title */
    font-weight: 500;
    /* Less bold, matching legacy */
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-banner__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    /* Smaller subtitle */
    margin-top: 4px;
    /* Tighter margin */
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ── Controls pill bar ─────────────────────────────────────────── */
.lc-bar {
    display: flex;
    justify-content: center;
    margin-top: -28px;
    /* overlap the banner */
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.lc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(11, 31, 58, 0.13);
    padding: 6px 10px;
    flex-wrap: wrap;
}

/* ── Divider sections inside the pill ─────────────────────────── */
.lc-divider {
    display: flex;
    align-items: center;
    padding: 0 6px;
    position: relative;
}

.lc-divider+.lc-divider::before,
.lc-divider+.lc-search-wrap::before {
    content: '';
    display: block;
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    position: absolute;
    left: 0;
}

/* ── State select ──────────────────────────────────────────────── */
.lc-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #0B1F3A;
    padding: 6px 8px 6px 4px;
    outline: none;
    cursor: pointer;
    min-width: 130px;
    max-width: 220px;
    -webkit-appearance: auto;
    appearance: auto;
}

.lc-select:focus {
    color: #F58732;
}

/* ── Date group ─────────────────────────────────────────────────── */
.lc-date-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 4px 10px;
}

.lc-date-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A5568;
    line-height: 1;
}

.lc-select--date {
    font-size: 12px;
    min-width: 180px;
    max-width: 260px;
    padding: 2px 4px 2px 0;
}

/* ── Search input ──────────────────────────────────────────────── */
.lc-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 10px;
    position: relative;
}

.lc-search-icon {
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.lc-search {
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #0B1F3A;
    padding: 6px 4px;
    outline: none;
    width: 220px;
    min-width: 0;
    transition: width 0.3s ease;
}

.lc-search::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.lc-search:focus {
    width: 270px;
}

.lc-form {
    display: contents;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .lc-pill {
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
        gap: 8px;
    }

    .lc-divider+.lc-divider::before,
    .lc-divider+.lc-search-wrap::before {
        display: none;
    }

    .lc-select,
    .lc-select--date,
    .lc-search {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    .lc-search:focus {
        width: 100%;
    }

    .lc-date-group {
        padding: 4px 0;
    }

    .lc-bar {
        margin-top: -20px;
    }
}

/* ── Filter Pills (Shared) ─────────────────────────────────────── */
.docs-filter-pill-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(11, 31, 58, 0.10);
    padding: 5px 7px;
}

.docs-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #1a3358;
    background: transparent;
    border: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}

.docs-filter-pill:hover {
    background: rgba(11, 31, 58, 0.07);
    color: #0b1f3a;
    text-decoration: none;
}

.docs-filter-pill.docs-filter-active {
    background: #1a3358;
    color: #fff;
    box-shadow: 0 2px 10px rgba(26, 51, 88, 0.35);
}

.docs-filter-pill.docs-filter-active:hover {
    background: #0b1f3a;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .docs-filter-pill {
        font-size: 0.74rem;
        padding: 6px 12px;
    }
}