/* =========================================================
   MARKET REPORTS LISTING — EXECUTIVE / INDEX
   Scope: .phoenix-market-reports
========================================================= */

.phoenix-market-reports {
    background: #ffffff;
}

/* =========================================================
   LAYOUT (MAIN + SIDEBAR)
========================================================= */

.phoenix-market-reports .phoenix-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px;
    overflow: visible;
}

.phoenix-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 44px;
    align-items: start;
    position: relative; /* required for fixed fallback */
}

/* =========================================================
   PAGE CONTEXT + TITLE (COMPRESSED INDEX STYLE)
========================================================= */

.phoenix-listing-eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.phoenix-market-reports .phoenix-listing-title {
    font-size: 22px;        /* compressed one more step */
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #020617;
    margin-bottom: 22px;
}

/* =========================================================
   SINGLE VERTICAL TILE — COMPACT (˜ 7:2–2.3)
========================================================= */

.phoenix-market-reports .phoenix-listing-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 16px 22px;
    margin-bottom: 16px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.phoenix-market-reports .phoenix-listing-item:hover {
    border-color: rgba(11, 92, 255, 0.28);
    box-shadow: 0 6px 20px rgba(11, 92, 255, 0.07);
}

/* =========================================================
   REPORT TITLE (PRIMARY VISUAL WEIGHT)
========================================================= */

.phoenix-market-reports .phoenix-listing-link {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.42;
    color: #020617;
    text-decoration: none;
    max-width: 92%;
}

.phoenix-market-reports .phoenix-listing-link:hover {
    color: #0b5cff;
    text-decoration: underline;
}

/* =========================================================
   META INFORMATION
========================================================= */

.phoenix-market-reports .phoenix-listing-meta {
    font-size: 12.8px;
    line-height: 1.4;
    color: #64748b;

    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.phoenix-market-reports .phoenix-meta-date {
    font-weight: 500;
    color: #475569;
}

/* =========================================================
   TILE ACTIONS
========================================================= */

.phoenix-report-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.phoenix-btn {
    padding: 6px 12px;
    font-size: 12.8px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
}

/* Primary */
.phoenix-btn-primary {
    background: #0b5cff;
    color: #ffffff;
}

.phoenix-btn-primary:hover {
    background: #0846c7;
}

/* Secondary */
.phoenix-btn-secondary {
    background: transparent;
    color: #0f172a;
    border-color: #d1d5db;
}

.phoenix-btn-secondary:hover {
    background: #f1f5f9;
}

/* =========================================================
   PAGINATION
========================================================= */

.phoenix-market-reports .phoenix-pagination {
    margin-top: 44px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   RIGHT SIDEBAR — INDUSTRY FILTER (AUTHORITATIVE)
========================================================= */

.phoenix-listing-sidebar {
    padding-left: 18px;
    border-left: 1px solid #e5e7eb;

    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* subtle scrollbar */
.phoenix-listing-sidebar::-webkit-scrollbar {
    width: 6px;
}

.phoenix-listing-sidebar::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 6px;
}

/* =========================================================
   FILTER TYPOGRAPHY & STRUCTURE
========================================================= */

.phoenix-filter-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #020617;
    margin-bottom: 16px;
}

.phoenix-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 9px;
}

.phoenix-filter-list a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;

    color: #475569;
    text-decoration: none;

    padding-left: 10px;
    border-left: 2px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.phoenix-filter-list a.is-active {
    color: #020617;
    font-weight: 600;
    border-left-color: #0b5cff;
}

.phoenix-filter-list a:hover {
    color: #0b5cff;
}

/* reset / all industries */
.phoenix-filter-reset {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.phoenix-filter-reset a {
    font-size: 14px;
    font-weight: 600;
    color: #020617;
}

/* =========================================================
   STICKY HARDENING + FIXED FALLBACK (FINAL)
========================================================= */

.phoenix-market-reports,
.phoenix-market-reports .phoenix-container,
.phoenix-listing-layout,
.phoenix-listing-main {
    overflow: visible !important;
    transform: none !important;
}

body {
    transform: none !important;
}

@media (min-width: 1025px) {

    .phoenix-listing-sidebar {
        position: fixed;
        top: 96px;

        right: max(
            24px,
            calc((100vw - 1180px) / 2)
        );

        width: 260px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1024px) {
    .phoenix-listing-layout {
        grid-template-columns: 1fr;
    }

    .phoenix-listing-sidebar {
        position: relative;
        width: auto;
        border-left: none;
        padding-left: 0;
        max-height: none;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .phoenix-market-reports .phoenix-container {
        padding: 36px 16px;
    }

    .phoenix-market-reports .phoenix-listing-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}
