/* Find My Fan Drive page (Horton): the finder results and the full cross-reference table (#hortonTable).
   Loaded by header.php on pages showing that table (ngc_has_xref_table() in functions.php). Moved out of the page
   content in Oct 2026; the cards and lists are drawn by js/ngc-xref-finder.js. */

/* Full cross-reference table (DataTables) */
.table-container table.dataTable { width: 100% !important; }
.table-container th, .table-container td { white-space: nowrap; }
.table-container div.dataTables_wrapper { overflow-x: auto; }
.table-container thead select { width: 100%; box-sizing: border-box; }

/* Finder results */
.ngc-xref { --x-rule: #dedcd6; --x-soft: #f3f3f1; --x-blue: #0061ff; --x-ink: #17181c; --x-muted: #5d5f68; margin: 0 0 2rem; }
.ngc-xref__status { margin: 1.25rem 0 0.75rem; font-size: 0.95rem; color: var(--x-muted); min-height: 1.4em; }
.ngc-xref__status b { color: var(--x-ink); }
.ngc-xref__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.ngc-xref-card { border: 1px solid var(--x-rule); border-top: 3px solid var(--x-ink); background: #fff; padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.ngc-xref-card.has-photo { position: relative; }
/* HT/S grade colours, matching the F3 kit boxes and friction discs: HD/XD grey, SD orange, OB red, SOB green */
.ngc-xref-card--hd { --x-grade: #68707f; } .ngc-xref-card--sd { --x-grade: #ee7623; }
.ngc-xref-card--ob { --x-grade: #c8151d; } .ngc-xref-card--sob { --x-grade: #006e3e; }
.ngc-xref-card[class*="ngc-xref-card--"] { border-top-color: var(--x-grade); }
.ngc-xref-card .ngc-xref-card__tag.ngc-xref-card__grade { background: var(--x-grade); color: #fff; }

.ngc-xref-card__photo { float: right; width: 120px; height: auto; margin: -0.25rem -0.35rem 0.25rem 0.75rem; }
.ngc-xref-card__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.ngc-xref-card__part { font-family: var(--ngc-mono, monospace); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.04em; margin: 0; line-height: 1.1; color: var(--x-ink); }
.ngc-xref-card__tag { font-family: var(--ngc-mono, monospace); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--x-soft); padding: 2px 6px; border-radius: 2px; }
.ngc-xref-card__more { clear: both; margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid #eeede9; font-size: 0.9rem; }
.ngc-xref-card__more a { text-decoration: none; }
.ngc-xref-card__more a:hover { text-decoration: underline; }
.ngc-xref-card__match { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--x-muted); }
.ngc-xref-card__match mark { background: #e6efff; color: inherit; padding: 0 2px; font-family: var(--ngc-mono, monospace); font-size: 0.8rem; }
.ngc-xref-card h4 { font-family: var(--ngc-mono, monospace); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--x-muted); margin: 1rem 0 0.4rem; font-stretch: 100%; }
.ngc-xref-fits, .entry-content .ngc-xref-fits { list-style: none; margin: 0; padding: 0; }
.ngc-xref-fits li { list-style: none; margin: 0; padding: 0.3rem 0; border-bottom: 1px solid #eeede9; font-size: 0.92rem; line-height: 1.3; }
.ngc-xref-fits li::before, .ngc-xref-fits li::marker { content: none; }
.ngc-xref-fits li:last-child { border-bottom: 0; }
.ngc-xref-fits b { font-weight: 600; }
.ngc-xref-fits small { display: block; color: var(--x-muted); font-size: 0.82rem; }
.ngc-xref-fits__more { color: var(--x-blue); cursor: pointer; background: none; border: 0; padding: 0.3rem 0 0; font: inherit; font-size: 0.85rem; }
.ngc-xref-parts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0; font-size: 0.9rem; }
.ngc-xref-parts dt { color: var(--x-muted); margin: 0; }
.ngc-xref-parts dd { margin: 0; font-family: var(--ngc-mono, monospace); font-size: 0.82rem; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.ngc-xref-oem { font-family: var(--ngc-mono, monospace); font-size: 0.78rem; letter-spacing: 0.04em; line-height: 1.6; color: var(--x-ink); margin: 0; overflow-wrap: anywhere; }
.ngc-xref__more-wrap, .ngc-xref__table-toggle { margin: 1.25rem 0 0; }
.ngc-xref__more, .ngc-xref__table-toggle button { font: inherit; font-size: 0.95rem; background: #fff; border: 1px solid var(--x-ink); border-radius: 2px; padding: 0.55rem 1rem; cursor: pointer; }
.ngc-xref__more:hover, .ngc-xref__table-toggle button:hover { background: var(--x-ink); color: #fff; }
.ngc-xref-hide { display: none !important; }
@media (max-width: 860px) {
  .ngc-xref__results { grid-template-columns: minmax(0, 1fr); }
}
