/* DatasheetHub Pro — part-number search results (templates/search.php).
   Uses the theme's design tokens (--dsh-*), so Customizer colours and fonts apply. */

.dsp-search { max-width: 760px; margin: 0 0 14px; }

/* tabs */
.dsp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dsh-line); margin: 0 0 14px; overflow-x: auto; }
.dsp-tabs a { padding: 9px 16px; color: var(--dsh-muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dsp-tabs a small { font-weight: 500; color: var(--dsh-faint); margin-left: 4px; }
.dsp-tabs a:hover { color: var(--dsh-ink); }
.dsp-tabs a.is-on { color: var(--dsh-accent); border-bottom-color: var(--dsh-accent); }

/* summary grid */
.dsp-summary { background: var(--dsh-surface); border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius); overflow: hidden; margin: 0 0 22px; }
.dsp-summary__row { display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--dsh-line); }
.dsp-summary__row:first-child { border-top: 0; }
.dsp-summary__label { background: var(--dsh-line-2); color: var(--dsh-muted); font-size: .92em; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; border-right: 1px solid var(--dsh-line); }
.dsp-summary__label.is-hot { color: var(--dsh-danger); }
.dsp-summary__label.is-strong { color: var(--dsh-ink); font-weight: 700; }
.dsp-summary__vals { padding: 9px 12px; line-height: 1.75; font-size: .95em; }
.dsp-pn { font-family: var(--dsh-mono); color: var(--dsh-link); text-decoration: none; white-space: nowrap; }
.dsp-pn b { color: var(--dsh-danger); font-weight: 600; }
.dsp-pn:hover { text-decoration: underline; }
.dsp-n { color: var(--dsh-muted); font-size: .9em; margin: 0 9px 0 1px; white-space: nowrap; }
.dsp-mf { color: var(--dsh-link); text-decoration: none; white-space: nowrap; }
.dsp-mf:hover { text-decoration: underline; }
.dsp-mf.is-on { color: var(--dsh-ink); font-weight: 700; }
.dsp-more { color: var(--dsh-muted); font-style: italic; }

/* heading */
.dsp-head { margin: 4px 0 8px; }
.dsp-head h1 { font-family: var(--dsh-font-h); font-size: 26px; line-height: 1.2; color: var(--dsh-ink); margin: 0 0 4px; font-weight: var(--dsh-h-weight); }
.dsp-head__meta { margin: 0; color: var(--dsh-muted); font-size: .95em; }
.dsp-head__meta b { color: var(--dsh-ink); }
.dsp-total { color: var(--dsh-danger) !important; }

/* results table */
.dsp-tablewrap { background: var(--dsh-surface); border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius); overflow: hidden; }
.dsp-table { width: 100%; border-collapse: collapse; }
.dsp-table thead th { background: var(--dsh-line-2); color: var(--dsh-ink); font-weight: 700; font-size: .92em; text-align: center; padding: 9px 10px; border-bottom: 1px solid var(--dsh-line); }
.dsp-table td { padding: 10px; border-top: 1px solid var(--dsh-line); text-align: center; vertical-align: middle; }
.dsp-table tbody tr:first-child td { border-top: 0; }
.dsp-table tbody tr:hover td { background: var(--dsh-tint); }
.dsp-col-mf { width: 200px; }
.dsp-col-pn { width: 190px; }
.dsp-col-ds { width: 120px; }

.dsp-mfcell { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--dsh-body); }
.dsp-logo { --h: 210; display: grid; place-items: center; width: 52px; height: 34px; border-radius: 6px; font-weight: 800; letter-spacing: .02em; font-size: 15px; color: hsl(var(--h) 60% 30%); background: hsl(var(--h) 70% 94%); border: 1px solid hsl(var(--h) 45% 82%); }
.dsp-mfname { font-size: .88em; line-height: 1.25; }
.dsp-mfcell:hover .dsp-mfname { color: var(--dsh-link); text-decoration: underline; }

.dsp-pnlink { font-family: var(--dsh-mono); font-weight: 700; font-size: 1.02em; color: var(--dsh-link); text-decoration: none; word-break: break-word; }
.dsp-pnlink b { color: var(--dsh-danger); font-weight: 700; }
.dsp-pnlink:hover { text-decoration: underline; }
.dsp-titlelink { color: var(--dsh-link); font-weight: 600; text-decoration: none; }

.dsp-pdf { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--dsh-muted); font-size: .85em; }
.dsp-pdf__ico { width: 26px; height: 30px; color: #94a3b8; transition: transform .12s; }
.dsp-pdf:hover .dsp-pdf__ico { transform: translateY(-1px) scale(1.05); }
.dsp-pdf:hover span { color: var(--dsh-link); }
.dsp-viewpage { font-size: .88em; color: var(--dsh-link); }

.dsp-desc { color: var(--dsh-body); text-decoration: none; }
.dsp-desc:hover { color: var(--dsh-link); text-decoration: underline; }
.dsp-cat { display: block; margin-top: 2px; font-size: .82em; color: var(--dsh-faint); }
.dsp-muted { color: var(--dsh-faint); }

/* phones: each row becomes a small card */
@media (max-width: 720px) {
  .dsp-summary__row { grid-template-columns: 1fr; }
  .dsp-summary__label { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--dsh-line); padding: 6px 12px; }
  .dsp-head h1 { font-size: 21px; }
  .dsp-table thead { display: none; }
  .dsp-table, .dsp-table tbody, .dsp-table tr, .dsp-table td { display: block; width: auto; }
  .dsp-table tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 2px 10px; padding: 10px 12px; border-top: 1px solid var(--dsh-line); align-items: center; }
  .dsp-table tbody tr:first-child { border-top: 0; }
  .dsp-table td { border: 0; padding: 0; text-align: left; }
  .dsp-col-mf { grid-row: 1 / span 2; }
  .dsp-mfname { display: none; }
  .dsp-col-pn { grid-column: 2; }
  .dsp-col-ds { grid-column: 3; grid-row: 1 / span 2; }
  .dsp-col-desc { grid-column: 2; font-size: .92em; }
}
