/* cross-reference.css — JP Spare Parts Plugin
 * The brand hub and the part-family pages (1.2.50).
 * Loaded only on a page whose body holds [jps_cross_reference…],
 * via class-assets.php (handle: jps-cross-reference).
 *
 * Palette is the site's own: #011627 ink, #ff6b35 accent, #eaf0f8 rules.
 * The table is deliberately plain — it is read by someone holding a part
 * number, not by someone browsing a shop — so no cards, no hover chrome on
 * the row, and the number column is monospace so a 13-digit number lines up
 * digit for digit with the next one.
 */

/* ---------- intro ---------- */
.jps-xref-intro {
    max-width: 860px;
    margin: 0 0 32px;
}
.jps-xref-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 14px;
}
.jps-xref-intro a {
    color: #e55a2b;
    text-decoration: underline;
}

/* ---------- hub cards ---------- */
.jps-xref-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 0 0 40px;
}
.jps-xref-card {
    border: 1px solid #e5e7eb;
    border-top: 3px solid #ff6b35;
    border-radius: 6px;
    background: #fff;
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
}
.jps-xref-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 700;
}
.jps-xref-card-title a {
    color: #011627;
    text-decoration: none;
}
.jps-xref-card-title a:hover,
.jps-xref-card-title a:focus {
    color: #ff6b35;
    text-decoration: underline;
}
.jps-xref-card-count {
    margin: 0 0 10px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #666;
}
.jps-xref-card-copy {
    margin: 0 0 10px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #333;
    flex: 1 1 auto;
}
.jps-xref-card-samples {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #666;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-word;
}
.jps-xref-card-more {
    margin: 0;
    font-size: 0.9rem;
}
.jps-xref-card-more a {
    color: #e55a2b;
    font-weight: 600;
    text-decoration: none;
}
.jps-xref-card-more a:hover,
.jps-xref-card-more a:focus {
    text-decoration: underline;
}

/* ---------- family lede ---------- */
.jps-xref-lede {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 20px;
    max-width: 860px;
}

/* ---------- the table ---------- */
.jps-xref-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    font-size: 0.92rem;
}
.jps-xref-table thead th {
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #011627;
    padding: 8px 10px;
    white-space: nowrap;
}
.jps-xref-table tbody td {
    border-bottom: 1px solid #eaf0f8;
    padding: 8px 10px;
    vertical-align: top;
    line-height: 1.45;
}
.jps-xref-table tbody tr:nth-child(even) td {
    background: #f8f9fa;
}
.jps-xref-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
}
.jps-xref-no a {
    color: #011627;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.45);
}
.jps-xref-no a:hover,
.jps-xref-no a:focus {
    color: #e55a2b;
    border-bottom-color: #ff6b35;
}
.jps-xref-name {
    color: #333;
}

/* ---------- section headings (brands that are not split) ---------- */
.jps-xref-heading {
    font-size: 1.2rem;
    margin: 34px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #011627;
}
.jps-xref-heading-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
}

/* ---------- notes + siblings ---------- */
.jps-xref-notes {
    max-width: 860px;
    background: #f8f9fa;
    border-left: 3px solid #ff6b35;
    padding: 16px 20px;
    margin: 0 0 32px;
}
.jps-xref-notes-title {
    font-size: 0.95rem;
    margin: 0 0 10px;
    color: #011627;
}
.jps-xref-notes ul {
    margin: 0 0 12px;
    padding-left: 20px;
}
.jps-xref-notes li {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 6px;
}
.jps-xref-notes p {
    margin: 0;
    font-size: 0.92rem;
    color: #333;
}
.jps-xref-notes a {
    color: #e55a2b;
    text-decoration: underline;
}

.jps-xref-siblings {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin: 8px 0 0;
}
.jps-xref-siblings ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.jps-xref-siblings li {
    font-size: 0.9rem;
    margin: 0;
}
.jps-xref-siblings a {
    color: #e55a2b;
    text-decoration: none;
}
.jps-xref-siblings a:hover,
.jps-xref-siblings a:focus {
    text-decoration: underline;
}
.jps-xref-here {
    color: #666;
    font-weight: 600;
}
.jps-xref-siblings p {
    margin: 0;
    font-size: 0.9rem;
}
.jps-xref-siblings p a {
    color: #011627;
    font-weight: 600;
}

/* ---------- narrow screens ---------- */
@media (max-width: 544px) {
    .jps-xref-cards {
        grid-template-columns: 1fr;
    }
    .jps-xref-table {
        font-size: 0.86rem;
    }
    .jps-xref-table thead th,
    .jps-xref-table tbody td {
        padding: 7px 6px;
    }
    .jps-xref-name {
        word-break: break-word;
    }
}
