/* LLP Matrix & Cross-reference styles */

.llp-matrix-wrap {
    margin: 24px 0;
}

/* View switcher */
.llp-view-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.llp-view-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.15s;
}
.llp-view-btn:hover {
    border-color: #00838f;
    color: #00838f;
    text-decoration: none;
}
.llp-view-btn.active {
    background: #00838f;
    color: #fff;
    border-color: #00838f;
}

/* Matrix table */
.llp-matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.llp-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}
.llp-matrix th {
    background: #f5f7fa;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    border: 1px solid #eaeaea;
    white-space: nowrap;
}
.llp-matrix td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #eaeaea;
    font-variant-numeric: tabular-nums;
}
.llp-row-label {
    text-align: left !important;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    padding-left: 12px !important;
    background: #fafafa;
}

/* Heat map cells */
.llp-cell a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s;
}
.llp-cell a:hover {
    transform: scale(1.2);
    text-decoration: none;
}
.llp-heat-empty { background: #fafafa; }
.llp-heat-low a { background: #e0f7fa; color: #00838f; }
.llp-heat-mid a { background: #80deea; color: #004d40; }
.llp-heat-high a { background: #00838f; color: #fff; }
.llp-zero { color: #ddd; font-size: 11px; }

.llp-matrix-note {
    margin: 8px 0 0;
    color: #999;
    font-size: 12px;
}

/* Roadmap coverage bar */
.llp-roadmap-bar {
    background: #f8fffe;
    border: 1px solid #b2ebf2;
    border-left: 4px solid #00838f;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 24px 0;
}
.llp-roadmap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.llp-roadmap-chip {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f0f0;
    color: #999;
    border: 1px solid #e0e0e0;
}
.llp-roadmap-chip.active {
    background: #00838f;
    color: #fff;
    border-color: #00838f;
}

/* Cross-reference blocks */
.llp-crossref {
    background: #fafbfc;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
}
.llp-crossref-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.llp-crossref-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.llp-crossref-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.llp-crossref-type {
    font-size: 18px;
    flex-shrink: 0;
}
.llp-crossref-link {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #00838f;
    text-decoration: none;
    transition: all 0.12s;
}
.llp-crossref-link:hover {
    border-color: #00838f;
    background: #e0f7fa;
    text-decoration: none;
}

.llp-empty {
    padding: 24px;
    text-align: center;
    color: #888;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Mobile */
@media (max-width: 640px) {
    .llp-matrix { font-size: 11px; }
    .llp-matrix th, .llp-matrix td { padding: 6px 4px; }
    .llp-cell a { width: 24px; height: 24px; line-height: 24px; font-size: 11px; }
}
