/* ================================================================
   Overview (dashboard landing page) — page styles
   Layered on top of rbi.css + design system tokens.

   The page shell (rbi-body, rbi-greeting, rbi-cp-*, rbi-score-*,
   rbi-anomaly*, rbi-narrative-*) all reuse the shared classes already
   defined in rbi.css — this file only adds what's new: the industry
   switcher and the ov2-* classes for the insights strip and the
   funding next-step banner, ported from the approved Overview 2 mock.
   ================================================================ */

/* ── Industry switcher (Your Insights strip) ─────────────────────── */

.ov-select {
    position: relative;
    flex: 0 0 auto;
    max-width: 62%;
}

.ov-select select {
    appearance: none;
    width: 100%;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-1);
    background: var(--bg-2);
    border: 1px solid var(--tt-20);
    border-radius: var(--r-md);
    padding: 7px 26px 7px 11px;
    cursor: pointer;
}

.ov-select::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--tt-40);
    font-size: 10px;
}

/* ── Ported from the Overview 2 mock (funding banner + insights KPIs) ── */

/* Overview 2 — upgraded post-login overview. Extends rbi.css. */
.ov2-partner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-card);
    border: 1px solid var(--tt-10);
    background: var(--infinity);
    box-shadow: var(--shadow-sm);
    margin-top: var(--sp-8)
}

.ov2-partner-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--sp-10);
    padding: var(--sp-10) var(--sp-8)
}

.ov2-partner.fl .ov2-partner-top {
    background: linear-gradient(180deg, var(--gg-5), transparent 70%)
}

.ov2-eb {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--growth-galaxy);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 9px
}

.ov2-eb i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--funding-pool);
    display: inline-block
}

.ov2-partner h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.015em;
    margin: 0;
    color: var(--trust-tech);
    max-width: 20ch;
    text-wrap: pretty
}

.ov2-partner h2.serif {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 31px
}

.ov2-partner h2 em {
    font-style: italic;
    color: var(--growth-galaxy)
}

.ov2-partner p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-2);
    margin: 14px 0 0;
    max-width: 56ch
}

.ov2-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
    flex-wrap: wrap
}

.ov2-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-md);
    padding: 13px 22px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px
}

.ov2-btn.primary {
    background: var(--growth-galaxy);
    color: #fff
}

.ov2-btn.primary:hover {
    background: #0035A0
}

.ov2-btn.ghost {
    background: var(--infinity);
    color: var(--growth-galaxy);
    border-color: var(--gg-20)
}

.ov2-btn.ghost:hover {
    border-color: var(--gg-40)
}

.ov2-points {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    background: var(--infinity);
    align-self: start
}

.ov2-point {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    padding: var(--sp-5);
    border-bottom: 1px solid var(--tt-5)
}

.ov2-point:last-child {
    border-bottom: none
}

.ov2-point-ic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gg-10);
    color: var(--growth-galaxy);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700
}

.ov2-point.teal .ov2-point-ic {
    background: var(--fp-10);
    color: #0A7D67
}

.ov2-point b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1)
}

.ov2-point span {
    display: block;
    font-size: 12.5px;
    color: var(--fg-2);
    line-height: 1.5;
    margin-top: 4px
}

.ov2-point-truncated-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    /* Limits the text to exactly 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hides the text that goes past 3 lines */
    text-overflow: ellipsis;
    /* Adds the '...' at the end */
}

.ov2-partner-foot {
    border-top: 1px solid var(--tt-10);
    background: var(--bg-2);
    padding: 14px var(--sp-8);
    font-size: 11.5px;
    color: var(--fg-3);
    line-height: 1.5
}

.ov2-partner-foot b {
    color: var(--fg-2);
    font-weight: 600
}

/* Empty / anonymous states */
.ov2-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--sp-6) 0
}

.ov2-empty-ic {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--gg-10);
    color: var(--growth-galaxy)
}

.ov2-empty h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: var(--trust-tech)
}

.ov2-empty p {
    font-size: 13.5px;
    color: var(--fg-2);
    line-height: 1.6;
    margin: 0;
    max-width: 44ch
}

.ov2-locked-num {
    display: flex;
    align-items: baseline;
    gap: 12px
}

.ov2-locked-num b {
    font-size: 72px;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--tt-20);
    line-height: 1
}

.ov2-locked-num span {
    font-size: 12px;
    color: var(--fg-3);
    font-weight: 600
}

.ov2-checks {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 6px
}

.ov2-check {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.45
}

.ov2-check i {
    color: var(--funding-pool);
    font-style: normal;
    font-weight: 700;
    flex: 0 0 auto
}

.ov2-duns {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--fg-2);
    background: var(--bg-2);
    border: 1px solid var(--tt-10);
    border-radius: var(--r-pill);
    padding: 6px 12px;
    margin-top: 4px
}

.ov2-duns b {
    font-weight: 700;
    color: var(--fg-1);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em
}

/* Your Insights — 3-column number cards (same figures as Industry Insights) */
.ov2-ins {
    margin-top: var(--sp-8)
}

.ov2-ins-hd {
    margin-bottom: var(--sp-5);
    /* max-width: 70ch; */
    max-width: 100%;
}

.ov2-ins-hd h2 {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.01em;
    color: var(--trust-tech)
}

.ov2-ins-hd h2.serif {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 26px
}

.ov2-ins-hd p {
    font-size: 13.5px;
    color: var(--fg-2);
    margin: 8px 0 0;
    line-height: 1.5
}

.ov2-ins-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-4)
}

.ov2-kpi {
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    background: var(--infinity);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0
}

.ov2-kpi-lab {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3)
}

.ov2-kpi-val {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--trust-tech)
}

.ov2-kpi-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    font-size: 12.5px;
    color: var(--fg-2);
    border-top: 1px dashed var(--tt-10);
    padding-top: 9px
}

.ov2-kpi-row b {
    font-weight: 600;
    color: var(--fg-1);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.ov2-kpi-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    flex-wrap: wrap
}

.ov2-kpi-note {
    font-size: 11.5px;
    color: var(--fg-3);
    line-height: 1.45;
    margin: 0
}

.ov2-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: var(--r-pill);
    padding: 4px 9px;
    white-space: nowrap
}

.ov2-badge.above {
    color: #0A7D67;
    background: var(--fp-10)
}

.ov2-badge.near {
    color: var(--growth-galaxy);
    background: var(--gg-10)
}

.ov2-badge.below {
    color: #B85C1E;
    background: #FDF1E7
}

.ov2-delta {
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.ov2-delta.up {
    color: #0A7D67
}

.ov2-delta.down {
    color: #B85C1E
}

/* @media (min-width: 966px) and (max-width:980px) {
    .ov2-partner-top .ov2-point-cta {
        display: none;
    }
} */

@media (min-width:981px) {
    .ov2-partner-top {
        max-height: 576px;
        overflow: hidden;
    }

    .ov2-partner-top .ov2-points {
        max-height: 496px;
        overflow-y: auto;
    }
}

@media (max-width:980px) {
    .ov2-partner-top {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
        padding: var(--sp-6) var(--sp-5)
    }

    .ov2-partner h2,
    .ov2-partner h2.serif {
        font-size: 25px
    }

    .ov2-ins-grid {
        grid-template-columns: 1fr
    }
}