/* ============================================================
   jrats-companies-explorer.css — [jr_companies_explorer]
   Public Companies Explorer. Brand: #5277ba
   ============================================================ */

.jrats-cex {
    max-width: 1140px;
    margin: 0 auto;
    font-family: inherit;
    color: #26314b;
}

.jrats-cex-section {
    margin-top: 34px;
}

.jrats-cex-h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 700;
    color: #26314b;
}
.jrats-cex-h2 .ic {
    font-size: 20px;
}

/* ---------------- Hero ---------------- */
.jrats-cex-hero {
    text-align: center;
    padding: 46px 24px 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, #40639f 0%, #5277ba 55%, #6b8cc9 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(82, 119, 186, 0.28);
}
.jrats-cex-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}
.jrats-cex-tagline {
    margin: 0 auto 22px;
    max-width: 640px;
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.jrats-cex-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
    padding: 4px 16px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(20, 35, 65, 0.22);
}
.jrats-cex-search-ic {
    flex: 0 0 auto;
    font-size: 16px;
    color: #5a6785;
}
.jrats-cex-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 0;
    font-size: 15.5px;
    color: #26314b;
    font-family: inherit;
}
.jrats-cex-search-input::placeholder {
    color: #93a1bd;
}

.jrats-cex-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 26px;
}
.jrats-cex-stat .vl {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.jrats-cex-stat .lb {
    display: block;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------------- Tabs ---------------- */
.jrats-cex-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #e1e8f5;
    padding-bottom: 0;
    margin-bottom: 18px;
}
.jrats-cex-tab {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #5a6785;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.jrats-cex-tab:hover {
    color: #5277ba;
}
.jrats-cex-tab.is-active {
    color: #5277ba;
    border-bottom-color: #5277ba;
}

.jrats-cex-panel {
    display: none;
}
.jrats-cex-panel.is-active {
    display: block;
}

/* ---------------- Chips (country / industry / city) ---------------- */
.jrats-cex-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.jrats-cex-chip {
    appearance: none;
    text-align: left;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.jrats-cex-chip:hover {
    border-color: #5277ba;
    box-shadow: 0 6px 16px rgba(82, 119, 186, 0.16);
    transform: translateY(-2px);
}
.jrats-cex-chip-name {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: #26314b;
    margin-bottom: 3px;
}
.jrats-cex-chip-meta {
    display: block;
    font-size: 13px;
    color: #5277ba;
    font-weight: 600;
}

/* ---------------- A-Z letters ---------------- */
.jrats-cex-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jrats-cex-letter {
    appearance: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #26314b;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.jrats-cex-letter:hover {
    background: #5277ba;
    border-color: #5277ba;
    color: #fff;
}

/* ---------------- Results head ---------------- */
.jrats-cex-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.jrats-cex-reset {
    appearance: none;
    cursor: pointer;
    border: 1px solid #c9d6ec;
    background: #f4f7fc;
    color: #5277ba;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    transition: background-color 0.15s ease;
}
.jrats-cex-reset:hover {
    background: #e7eefa;
}

/* ---------------- Cards grid ---------------- */
.jrats-cex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.jrats-cex-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    padding: 18px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.jrats-cex-card:hover {
    border-color: #b9c9e8;
    box-shadow: 0 8px 22px rgba(82, 119, 186, 0.16);
    transform: translateY(-2px);
}

.jrats-cex-card.is-trending {
    border-color: #d7e2f6;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 46%);
}

.jrats-cex-badge {
    position: absolute;
    top: -11px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5277ba 0%, #40639f 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(82, 119, 186, 0.4);
}
.jrats-cex-badge-ic {
    font-size: 12px;
}

.jrats-cex-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.jrats-cex-logo {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid #e1e8f5;
    background: #f4f7fc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jrats-cex-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jrats-cex-logo-ph {
    font-size: 21px;
    font-weight: 800;
    color: #5277ba;
}

.jrats-cex-idbox {
    min-width: 0;
}
.jrats-cex-name {
    margin: 0 0 2px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.jrats-cex-name a {
    color: #26314b;
    text-decoration: none;
}
.jrats-cex-name a:hover,
.jrats-cex-name a:focus {
    color: #5277ba;
    text-decoration: underline;
}
.jrats-cex-industry {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5277ba;
}

.jrats-cex-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13.5px;
    color: #445070;
}
.jrats-cex-meta li {
    margin: 0;
}

.jrats-cex-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.jrats-cex-view {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    background: #5277ba;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.jrats-cex-view:hover,
.jrats-cex-view:focus {
    background: #40639f;
    color: #fff;
    box-shadow: 0 3px 10px rgba(82, 119, 186, 0.35);
    text-decoration: none;
}

.jrats-cex-followform {
    display: inline-block;
    margin: 0;
}
.jrats-cex-follow {
    appearance: none;
    display: inline-block;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #5277ba;
    background: #fff;
    color: #5277ba;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.jrats-cex-follow:hover,
.jrats-cex-follow:focus {
    background: #eef3fb;
    color: #40639f;
    text-decoration: none;
}
.jrats-cex-follow.is-on {
    background: #5277ba;
    color: #fff;
}
.jrats-cex-follow.is-on:hover {
    background: #40639f;
}

/* ---------------- Load more / loading / empty ---------------- */
.jrats-cex-more {
    text-align: center;
    margin-top: 22px;
}
.jrats-cex-loadmore {
    appearance: none;
    cursor: pointer;
    padding: 11px 30px;
    border-radius: 999px;
    border: 1px solid #5277ba;
    background: #fff;
    color: #5277ba;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.jrats-cex-loadmore:hover:not(:disabled) {
    background: #5277ba;
    color: #fff;
}
.jrats-cex-loadmore:disabled {
    opacity: 0.6;
    cursor: default;
}

.jrats-cex-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f7f9fd;
    border: 1px dashed #c9d6ec;
    border-radius: 12px;
}
.jrats-cex-empty p {
    margin: 0;
    font-size: 15px;
    color: #5a6785;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
    .jrats-cex-hero {
        padding: 34px 16px 30px;
    }
    .jrats-cex-title {
        font-size: 25px;
    }
    .jrats-cex-stats {
        gap: 24px;
    }
    .jrats-cex-grid,
    .jrats-cex-chips {
        grid-template-columns: 1fr;
    }
    .jrats-cex-tab {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ---------------- Featured variant ---------------- */
.jrats-cex-card.is-featured {
    border-color: #d7c78a;
    background: linear-gradient(180deg, #fffdf4 0%, #ffffff 46%);
}
.jrats-cex-badge.is-featured {
    background: linear-gradient(135deg, #b98e2f 0%, #d9b654 100%);
    box-shadow: 0 4px 12px rgba(185, 142, 47, 0.35);
}

/* ---------------- Client-side filter states ---------------- */
.jrats-cex-card.is-hidden,
.jrats-cex-card.is-paged {
    display: none;
}

/* ---------------- Theme-proof [hidden] ----------------
   The theme assigns display to buttons/spans/divs, overriding the UA
   [hidden] rule. JS state toggling relies on the hidden attribute, so
   enforce it for every element we control. */
.jrats-cex-loadmore[hidden],
.jrats-cex-reset[hidden],
.jrats-cex-noresults[hidden],
.jrats-cex [hidden] {
    display: none !important;
}
