/* ════════════════════════════════════════════════════════════
   PRS — Firms Grid Shortcode  (prs-firms-grid-sc.css)
   Dark theme matching the site's #0d1117 / #111722 palette.
════════════════════════════════════════════════════════════ */

/* ── Grid wrapper ─────────────────────────────────────────── */
.prs-fgsc {
    display: grid;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.prs-fgsc--cols-1 { grid-template-columns: 1fr; }
.prs-fgsc--cols-2 { grid-template-columns: repeat(2, 1fr); }
.prs-fgsc--cols-3 { grid-template-columns: repeat(3, 1fr); }
.prs-fgsc--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card shell ───────────────────────────────────────────── */
.prs-fgsc__card {
    position: relative;
    background: #111722;
    border: 1px solid #1e2840;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, transform .12s ease;
}

.prs-fgsc__card:hover {
    border-color: #2e4060;
    transform: translateY(-2px);
}

/* ── Featured badge ───────────────────────────────────────── */
.prs-fgsc__featured-badge {
    background: #1a3a20;
    border-bottom: 1px solid #2a5c34;
    color: #4ade80;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 10px;
}

/* ── Card header ──────────────────────────────────────────── */
.prs-fgsc__head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #181f2e;
}

.prs-fgsc__logo-wrap {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 9px;
    background: #1a2030;
    border: 1px solid #232d3f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prs-fgsc__logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.prs-fgsc__initials {
    font-size: 14px;
    font-weight: 600;
    color: #6a90c0;
    letter-spacing: .04em;
}

.prs-fgsc__head-meta {
    flex: 1;
    min-width: 0;
}

.prs-fgsc__firm-name {
    font-size: 14px;
    font-weight: 600;
    color: #d8e4f8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.prs-fgsc__tagline {
    font-size: 11px;
    color: #4e6080;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating block (top-right of header) */
.prs-fgsc__rating {
    flex-shrink: 0;
    text-align: right;
}

.prs-fgsc__rating-num {
    font-size: 20px;
    font-weight: 700;
    color: #f0c040;
    line-height: 1;
}

.prs-fgsc__stars {
    font-size: 11px;
    letter-spacing: -1px;
    margin-top: 1px;
}

.prs-fgsc__star--full,
.prs-fgsc__star--half  { color: #d4a030; }
.prs-fgsc__star--empty { color: #2e3d55; }

.prs-fgsc__rating-ct {
    font-size: 10px;
    color: #3e5070;
    margin-top: 2px;
    white-space: nowrap;
}

/* ── Stats row ────────────────────────────────────────────── */
.prs-fgsc__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    border-bottom: 1px solid #181f2e;
}

.prs-fgsc__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    text-align: center;
    gap: 3px;
}

.prs-fgsc__stat + .prs-fgsc__stat {
    border-left: 1px solid #181f2e;
}

.prs-fgsc__stat-val {
    font-size: 13px;
    font-weight: 600;
    color: #c8d4e8;
    line-height: 1;
    white-space: nowrap;
}

.prs-fgsc__stat-val--green { color: #4ade80; }
.prs-fgsc__stat-val--amber { color: #e8a840; }
.prs-fgsc__stat-val--blue  { color: #60a8e0; }

.prs-fgsc__stat-lbl {
    font-size: 10px;
    color: #3e5070;
    white-space: nowrap;
}

/* ── Meta pills row ───────────────────────────────────────── */
.prs-fgsc__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 12px;
    border-bottom: 1px solid #181f2e;
    min-height: 36px;
}

.prs-fgsc__pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.prs-fgsc__pill--green  { background: #0f2518; color: #4ade80; border: 1px solid #1a4030; }
.prs-fgsc__pill--amber  { background: #1e1608; color: #e8a840; border: 1px solid #3a2e10; }
.prs-fgsc__pill--blue   { background: #0a1a2e; color: #60a8e0; border: 1px solid #142840; }
.prs-fgsc__pill--purple { background: #180f2e; color: #a080e0; border: 1px solid #2a1a50; }

/* ── Optional pros list ───────────────────────────────────── */
.prs-fgsc__pros {
    list-style: none;
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #181f2e;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prs-fgsc__pros li {
    font-size: 11px;
    color: #6a8a70;
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
}

.prs-fgsc__pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 10px;
}

/* ── Card footer / CTA ────────────────────────────────────── */
.prs-fgsc__foot {
    display: flex;
    gap: 7px;
    padding: 11px 12px;
    margin-top: auto;
}

.prs-fgsc__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    text-align: center;
    transition: background .15s ease, border-color .15s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.prs-fgsc__btn--primary {
    background: #1a3a20;
    border-color: #2a5c34;
    color: #4ade80;
}

.prs-fgsc__btn--primary:hover {
    background: #22481f;
    border-color: #3a7040;
    color: #6aee90;
    text-decoration: none;
}

.prs-fgsc__btn--outline {
    background: transparent;
    border-color: #243058;
    color: #6a90c0;
}

.prs-fgsc__btn--outline:hover {
    background: #111e30;
    border-color: #3a5080;
    color: #90b8e8;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   Responsive breakpoints
══════════════════════════════════════════════════════════ */
@media ( max-width: 1100px ) {
    .prs-fgsc--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 780px ) {
    .prs-fgsc--cols-3,
    .prs-fgsc--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 520px ) {
    .prs-fgsc--cols-2,
    .prs-fgsc--cols-3,
    .prs-fgsc--cols-4 { grid-template-columns: 1fr; }
}
