/* ══════════════════════════════════════════════════════════════════════
   RENEWALS PROPERTY CARD (Phase 2)
   Reuses the editorial property-card chrome (.fr-property-card / .fr-pc-* /
   .fr-stat-*). Only the renewal-specific bits live here: the header window
   pill, the 12-month expirations-by-month concentration bars, the renew/turn
   split bar, plus two small value utilities (.fr-trail, coloured values).
   Spec: mockups/renewals_property_card_v1.html
   ══════════════════════════════════════════════════════════════════════ */

/* Small muted trailing text inside a label or value (e.g. "· separate"). */
.fr-trail {
    color: var(--fr-ink-3);
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
}

/* Coloured stat values (loss-to-lease / projected gain). */
.fr-stat-value.fr-pos  { color: var(--fr-positive); }
.fr-stat-value.fr-warn { color: var(--fr-warning-deep); }
.fr-stat-value.fr-pos .fr-trail,
.fr-stat-value.fr-warn .fr-trail { color: inherit; opacity: 0.75; }

/* Header window pill — the card's forward horizon (e.g. "Next 90 days"). */
.fr-window-pill {
    font-size: 12px;
    font-weight: 500;
    color: var(--fr-ink-2);
    background: var(--fr-bg, #F6F5F1);
    border: 1px solid var(--fr-hairline-strong);
    border-radius: 99px;
    padding: 4px 12px;
    margin-right: 14px;
    white-space: nowrap;
}

/* ── Zone 1: expirations-by-month concentration bars ─────────────────── */
.fr-rpc-bars-wrap {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--fr-hairline);
}
.fr-rpc-bars-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    font-weight: 500;
    margin-bottom: 16px;
}
.fr-rpc-bars {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    align-items: end;
    height: 58px;
}
.fr-rpc-bar-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    cursor: default;
}
/* Hover tooltip: month + expiring count, floated above the column. */
.fr-rpc-bar-tip {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--fr-ink);
    color: #FFFFFF;
    padding: 6px 9px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 30;
    box-shadow: 0 3px 10px rgba(20, 24, 29, 0.20);
}
.fr-rpc-bar-tip-month {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}
.fr-rpc-bar-tip-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.fr-rpc-bar-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--fr-ink);
}
.fr-rpc-bar-col:hover .fr-rpc-bar-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.fr-rpc-bar-col:hover .fr-rpc-bar {
    filter: brightness(1.06);
}
.fr-rpc-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    background: var(--fr-hairline-strong);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: frRpcBarGrow 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fr-rpc-bar--in-window {
    background: linear-gradient(180deg, var(--fr-accent-2), var(--fr-accent));
}
@keyframes frRpcBarGrow { to { transform: scaleY(1); } }
.fr-rpc-bar-axis {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    margin-top: 6px;
}
.fr-rpc-bar-axis div {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--fr-ink-3);
    letter-spacing: -0.02em;
}

/* ── Zone 2: historical renew/turn split bar ─────────────────────────── */
.fr-rpc-split-wrap {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--fr-hairline);
}
.fr-rpc-split-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    font-weight: 500;
    margin-bottom: 14px;
}
.fr-rpc-split-bar {
    display: flex;
    height: 12px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--fr-hairline);
}
.fr-rpc-split-renew { background: linear-gradient(90deg, var(--fr-positive), #2c9763); }
.fr-rpc-split-turn  { background: var(--fr-hairline-strong); }
.fr-rpc-split-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.fr-rpc-split-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--fr-ink-2);
}
.fr-rpc-split-dot { width: 9px; height: 9px; border-radius: 50%; }
.fr-rpc-split-dot--renew { background: var(--fr-positive); }
.fr-rpc-split-dot--turn  { background: var(--fr-hairline-strong); }
.fr-rpc-split-n {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--fr-ink);
    margin-left: 2px;
}


