/* ============================================================================
   IPC Product Lifecycle — scoped under .ipc-lc
   Matches the IPC system: clean white cards, IPC blue (#185E8C), restrained.
   Current node is emphasized; older/newer recede slightly.
   ============================================================================ */

.ipc-lc {
    --lc-blue: #185E8C;
    --lc-blue-dark: #134d73;
    --lc-cyan: #00a5e5;
    --lc-ink: #0a2540;
    --lc-muted: #6b7a90;
    --lc-line: #e2e8f0;
    --lc-surface: #f8fafc;
    --lc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    font-family: var(--lc-font);
    color: var(--lc-ink);
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 4px;
}

.ipc-lc-intro {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lc-blue);
    margin-bottom: 22px;
}

/* The rail: three nodes + two connectors */
.ipc-lc-rail {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

/* ---- Node ---- */
.ipc-lc-node {
    position: relative;
    flex: 1 1 0;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.ipc-lc-card {
    background: #fff;
    border: 1.5px solid var(--lc-line);
    border-radius: 14px;
    padding: 20px 16px 18px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Older / newer recede a touch */
.ipc-lc-older .ipc-lc-card,
.ipc-lc-newer .ipc-lc-card {
    background: var(--lc-surface);
    opacity: 0.94;
}

/* Current node — emphasized */
.ipc-lc-node.is-current {
    transform: translateY(-6px);
}
.ipc-lc-node.is-current .ipc-lc-card {
    border-color: var(--lc-blue);
    border-width: 2px;
    box-shadow: 0 18px 40px -18px rgba(24, 94, 140, 0.45);
}

/* "You are here" tag above the current card */
.ipc-lc-youarehere {
    display: inline-block;
    align-self: center;
    background: var(--lc-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 6px 14px -6px rgba(24, 94, 140, 0.6);
}

/* Image */
.ipc-lc-imgwrap {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.ipc-lc-imgwrap img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Status badge */
.ipc-lc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.ipc-lc-badge.is-active  { background: #e7f4ec; color: #1a7f4b; }
.ipc-lc-badge.is-latest  { background: #e6f6ff; color: #0277a8; }
.ipc-lc-badge.is-mature  { background: #fef3e8; color: #b5641f; }
.ipc-lc-badge.is-eol     { background: #fdecec; color: #c23b3b; }

/* Name */
.ipc-lc-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--lc-ink);
    line-height: 1.2;
}
.ipc-lc-node.is-current .ipc-lc-name {
    color: var(--lc-blue);
}

/* Spec / tagline */
.ipc-lc-spec {
    font-size: 12.5px;
    color: var(--lc-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Year line */
.ipc-lc-year {
    font-size: 12px;
    color: var(--lc-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--lc-line);
    width: 100%;
}
.ipc-lc-year strong {
    color: var(--lc-ink);
    font-weight: 800;
}

/* Link (older / newer) */
.ipc-lc-link {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lc-blue);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.ipc-lc-link:hover {
    color: var(--lc-blue-dark);
    border-bottom-color: var(--lc-blue-dark);
}

/* Hover lift on linked (non-current) cards */
.ipc-lc-older .ipc-lc-card:hover,
.ipc-lc-newer .ipc-lc-card:hover {
    transform: translateY(-3px);
    border-color: #c3d2df;
    box-shadow: 0 12px 26px -16px rgba(10, 37, 64, 0.4);
}

/* ---- Connector between nodes ---- */
.ipc-lc-connector {
    flex: 0 0 156px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #c3d2df;
}
.ipc-lc-line {
    position: absolute;
    left: 4px; right: 4px;
    height: 0;
    border-top: 2px dashed #c3d2df;
}
.ipc-lc-arrow {
    position: relative;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    z-index: 1;
    color: var(--lc-blue);
}

/* ---- Responsive: stack vertically on narrow screens ---- */
@media (max-width: 820px) {
    .ipc-lc-rail {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: 420px;
        margin: 0 auto;
    }
    .ipc-lc-node.is-current {
        transform: none;
    }
    .ipc-lc-node.is-current .ipc-lc-card {
        box-shadow: 0 10px 28px -14px rgba(24, 94, 140, 0.4);
    }
    /* connectors become vertical */
    .ipc-lc-connector {
        flex: 0 0 36px;
        height: 36px;
    }
    .ipc-lc-line {
        left: 50%; top: 4px; bottom: 4px; right: auto;
        width: 0; height: auto;
        border-top: none;
        border-left: 2px dashed #c3d2df;
        transform: translateX(-50%);
    }
    .ipc-lc-arrow {
        transform: rotate(90deg);
    }
    .ipc-lc-imgwrap { height: 90px; }
    .ipc-lc-imgwrap img { max-height: 90px; }
}
