/* "Encuentra tu cable" / "Find My Cable" (Tool A). Loaded only by templates/xref.html; uses site.css tokens. */
.xref { overflow-wrap: anywhere; }
.xref :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }    /* the site's yellow ring is faint on white panels */
.xref-form { display: flex; flex-direction: column; gap: 10px; }
.xref-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.xref-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.xref-fields input, .xref-fields select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-weight: 400; font-size: 16px; background: #fff; }
.xref-fields input:focus, .xref-fields select:focus { border-color: var(--blue); }
.xref-fields input[aria-invalid="true"] { border-color: var(--red); }
.xref-form .btn { align-self: flex-start; }
.xref-form .btn:disabled { opacity: .6; cursor: progress; }
.xref-form p { margin: 0; }
.xref-disclaimer { background: #fff8e1; border-left: 4px solid var(--yellow-2); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; margin: 12px 0; }
.xref-results { min-height: 1px; min-width: 0; }
.xref-results[aria-busy="true"] { opacity: .6; }
.xref-status { color: var(--muted); margin: 8px 0; min-height: 1em; }
.xref-status:empty { margin: 0; }
.xref-match h2 { font-size: 19px; margin: 18px 0 8px; }
.xref-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 12px 0; }
.xref-card-a { border-top: 4px solid var(--green); }
.xref-card-b { border-top: 4px solid var(--yellow-2); }
.xref-badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.xref-badge-a { background: #e3f4ea; color: #145c33; }
.xref-badge-b { background: #fff1c7; color: #6b4b00; }
.xref-headline { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.xref-sw { display: flex; gap: 12px; align-items: center; }
.xref-sw h3 { font-size: 17px; margin: 0; }
.xref-sw p { margin: 2px 0 0; }
.xref-img { width: 64px; height: 64px; object-fit: contain; flex: none; background: #fff; }
.xref-summary { margin: 10px 0; }
.xref-table-wrap { overflow-x: auto; margin: 10px 0; }
.xref-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.xref-specs caption { text-align: left; font-weight: 700; font-size: 13.5px; padding: 0 0 6px; color: var(--ink); }
.xref-specs th, .xref-specs td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line-2); }
.xref-specs thead th { background: var(--bg); font-size: 13px; }
.xref-specs tbody th { font-weight: 600; width: 34%; }
.xref-col { display: none; }
/* every row says in words whether it matches; a differing row also gets a strong left mark */
.xref-tag { display: inline-block; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.xref-tag-ok { background: #e3f4ea; color: #145c33; }
.xref-tag-ok::before { content: "✓ "; }
.xref-tag-diff { background: #6b4b00; color: #fff; }
.xref-tag-diff::before { content: "≠ "; }
.xref-tag-unk, .xref-tag-ne { background: var(--line-2); color: #3d4652; }
.xref-r-diff th { box-shadow: inset 4px 0 0 var(--yellow-2); }
.xref-r-diff td, .xref-r-diff th { background: #fff4d1; }
.xref-r-unk td, .xref-r-ne td { color: var(--muted); }
.xref-diffs h4, .xref-notes h4, .xref-items h4 { font-size: 15px; margin: 14px 0 6px; }
.xref-diffs ul, .xref-notes ul { margin: 0; padding-left: 0; list-style: none; }
.xref-diffs li { margin: 0 0 10px; padding: 2px 0 2px 10px; border-left: 4px solid var(--line); }
.xref-diffs li.xref-sev-high { border-left-color: #6b4b00; }
.xref-diffs li.xref-sev-medium { border-left-color: var(--yellow-2); }
.xref-diffs li p { margin: 2px 0; }
.xref-sev { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #5c4400; }
.xref-validate { font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.xref-notes ul { padding-left: 20px; list-style: disc; }
.xref-notes li { margin: 0 0 4px; font-size: 14px; }
.xref-cert { background: #eef5fb; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin: 12px 0; }
.xref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xref-items { border-top: 1px solid var(--line-2); margin-top: 14px; }
.xref-items ul { list-style: none; margin: 0; padding: 0; }
.xref-items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.xref-item-name { min-width: 0; flex: 1 1 220px; }
.xref-items p { margin: 6px 0 0; }
.xref-more { margin: 8px 0 0; }
.xref-more > summary { cursor: pointer; font-weight: 700; color: var(--link); padding: 6px 0; }
.xref-none p { margin: 0 0 8px; }
.xref-how ul { padding-left: 0; list-style: none; margin: 0 0 8px; }
.xref-how li { margin: 0 0 8px; }
.xref-how .xref-badge { margin: 0 6px 0 0; }
@media (max-width: 700px) {
  .xref-fields { grid-template-columns: minmax(0, 1fr); }
  .xref-form .btn, .xref-actions .btn { width: 100%; }
  .xref-card { padding: 14px 12px; }
  /* key specifications as stacked rows; the column name is a real (aria-hidden) span, the cells keep their ARIA roles */
  .xref-specs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .xref-specs, .xref-specs caption, .xref-specs tbody, .xref-specs tr, .xref-specs th, .xref-specs td { display: block; width: 100%; }
  .xref-specs tbody th { width: 100%; padding-bottom: 2px; border-bottom: 0; }
  .xref-specs td { padding: 2px 8px; border-bottom: 0; }
  .xref-specs tr { border-bottom: 1px solid var(--line-2); padding: 4px 0; }
  .xref-col { display: inline; font-weight: 600; color: var(--muted); }
}
