/* Scoped styles for modules with class .sx-secm-probe-family */

.sx-secm-probe-family {
  --brand: var(--color-brand-blue, #2d84cd);
  --brand-gray: var(--color-brand-gray, #6c757d);
  --bg-soft: var(--color-bg-blue-tint, #f4f8fb);
  --bg-hover: var(--color-bg-light-gray, #f8f9fa);
  --text: var(--color-text-dark, #212529);
  --text-muted: var(--color-text-light, #666666);
  --radius: 10px;

  /* refined depth: softer and more premium */
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-flat: 0 2px 10px rgba(0, 0, 0, 0.04);

  /* hairline borders */
  --border: 1px solid rgba(0,0,0,0.06);
  --border-soft: 1px solid rgba(0,0,0,0.04);
}

section.sx-secm-probe-family {
  display: block;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px; /* prevents edge-to-edge on large screens */
  font-family: var(--font-primary, system-ui, sans-serif);
  color: var(--text);
}

/* MAIN LAYOUT: Slightly asymmetric for hierarchy (table lighter, specs heavier) */
.sx-secm-probe-family .sx-family-main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 980px) {
  .sx-secm-probe-family .sx-family-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================
   LEFT SIDE: THE TABLE (lighter, more precise)
   ========================================= */
.sx-secm-probe-family .sx-table-responsive {
  background: transparent;              /* kill the "card" feel */
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  border: none;
}

/* Add a subtle container line + rounded corners to the table itself */
.sx-secm-probe-family .sx-variant-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Crisp, uppercase headers but quieter */
.sx-secm-probe-family .sx-variant-table thead th {
  padding: 14px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-gray);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
}

/* rows: slightly tighter and cleaner */
.sx-secm-probe-family .sx-variant-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: var(--text);
}

/* Smooth row hover & selection */
.sx-secm-probe-family .sx-variant-row {
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  border-left: 4px solid transparent; /* thicker selection bar, more "instrument" */
}

.sx-secm-probe-family .sx-variant-row:hover,
.sx-secm-probe-family .sx-variant-row:focus {
  background: rgba(45, 132, 205, 0.05); /* subtle brand tint */
  outline: none;
}

/* Selected row: keep the text mostly neutral; use brand as accent, not full recolor */
.sx-secm-probe-family .sx-variant-row[aria-selected="true"] {
  background: rgba(45, 132, 205, 0.08);
  border-left-color: var(--brand);
}

.sx-secm-probe-family .sx-variant-row[aria-selected="true"] td {
  color: var(--text);
  font-weight: 600;
}

/* Make the first column pop slightly (model), without shouting */
.sx-secm-probe-family .sx-variant-table tbody td:first-child {
  font-weight: 600;
  color: var(--brand);
}

/* =========================================
   RIGHT SIDE: THE SPECS PANEL (the anchor)
   ========================================= */
.sx-secm-probe-family .sx-family-selected {
  background: #ffffff;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: none;
  padding: 44px 44px;
  min-height: 280px;
  position: relative;
}

/* Brand bar on top of the panel (quiet premium cue) */
.sx-secm-probe-family .sx-family-selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
  border-top-left-radius: calc(var(--radius) + 2px);
  border-top-right-radius: calc(var(--radius) + 2px);
}

/* Mobile: reduce padding so it doesn't feel like a giant empty card */
@media (max-width: 980px) {
  .sx-secm-probe-family .sx-family-selected {
    padding: 28px 22px;
  }
}

.sx-secm-probe-family .sx-selected-empty {
  color: var(--text-muted);
  text-align: left;
  font-style: normal;
  padding: 24px 0 8px 0;
}

/* Keep existing behavior */
.sx-secm-probe-family .sx-selected-panel {
  display: none;
}

/* Stronger title with better hierarchy */
.sx-secm-probe-family .sx-selected-model {
  margin: 0 0 18px 0;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  letter-spacing: -0.2px;
}

/* Subtitle below the title separation line */
.sx-secm-probe-family .sx-selected-spec-label {
  display: block;
  margin: -20px 0 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  text-align: left;
  letter-spacing: 0.01em;
}

/* OPTIONAL: if you add a subline under the model title */
.sx-secm-probe-family .sx-selected-subline {
  margin: -10px 0 18px 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
}

/* Specs: make it feel like a datasheet grid */
.sx-secm-probe-family .sx-selected-specs {
  margin: 0 0 28px 0;
}


.sx-secm-probe-family .spec-row {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.sx-secm-probe-family .spec-label{
  white-space: nowrap !important;
}

/*
.sx-secm-probe-family .spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
}
*/
.sx-secm-probe-family .spec-row:last-child {
  border-bottom: none;
}

.sx-secm-probe-family .spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.sx-secm-probe-family .spec-value {
  color: var(--text);
  font-weight: 650;
  text-align: left !important;
  max-width: 560px;
  line-height: 1.35;
  white-space: nowrap !important;
}

/* On very small screens allow wrapping values */
@media (max-width: 520px) {
  .sx-secm-probe-family .spec-value {
    white-space: normal;
    max-width: 100%;
  }
}

/* =========================================
   BUTTONS (CTAS) – slightly more premium
   ========================================= */
.sx-secm-probe-family .sx-selected-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.sx-secm-probe-family .sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

/* Primary: subtle lift on hover */
.sx-secm-probe-family .sx-btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-flat);
}

.sx-secm-probe-family .sx-btn-primary:hover {
  background: #236a9f;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline: cleaner, less "buttony" */
.sx-secm-probe-family .sx-btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: rgba(45,132,205,0.65);
}

.sx-secm-probe-family .sx-btn-outline:hover {
  background: rgba(45, 132, 205, 0.06);
  border-color: var(--brand);
  transform: translateY(-1px);
}

