/* Indiott — comparison pages (indiott-compare.php). Namespaced .iott-cmp;
   graphite/paper/signal system, IBM Plex, mono tabular for measured values.

   The table is the page. Everything else is framing, so the table gets the
   strongest treatment: sticky first column so the spec label stays readable
   while a wide comparison scrolls, and dimmed rows where the models agree. */

.iott-cmp__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 26px 0 34px;
  background: var(--steel-300, #c6ccd2);
  border: 1px solid var(--steel-300, #c6ccd2);
}
.iott-cmp__card {
  background: var(--card, #fff);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.iott-cmp__img { display: block; }
.iott-cmp__img img { width: 100%; height: auto; display: block; }
.iott-cmp__name {
  margin: 4px 0 0;
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.iott-cmp__name a { color: var(--ink, #232458); text-decoration: none; }
.iott-cmp__name a:hover { color: var(--signal-press, #b8431a); }
.iott-cmp__sku {
  margin: 0;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel-500, #7c8590);
}
.iott-cmp__pricerow { margin: 2px 0 0; }
.iott-cmp__price {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #232458);
}
.iott-cmp__price .woocommerce-Price-amount { font-family: inherit; }
.iott-cmp__quote {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  color: var(--steel-500, #7c8590);
}
.iott-cmp__decisive {
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--steel-100, #e9ecef);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.iott-cmp__decisive span {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel-500, #7c8590);
}
.iott-cmp__decisive strong {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #232458);
}
.iott-cmp__cta {
  margin-top: auto;
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--steel-300, #c6ccd2);
  border-radius: var(--r, 2px);
  background: var(--card, #fff);
  color: var(--ink, #232458);
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.iott-cmp__cta:hover { border-color: var(--signal, #ee6124); color: var(--signal-press, #b8431a); }

/* --- The table ----------------------------------------------------------- */
.iott-cmp__tablewrap { overflow-x: auto; margin: 0 0 10px; }
.iott-cmp__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--steel-100, #e9ecef);
}
.iott-cmp__table thead th {
  position: sticky;
  top: 0;
  background: var(--paper, #f7f8f9);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--steel-300, #c6ccd2);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #232458);
  white-space: nowrap;
}
.iott-cmp__table tbody th {
  padding: 10px 14px 10px 0;
  text-align: left;
  vertical-align: top;
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-500, #7c8590);
  min-width: 170px;
}
.iott-cmp__table td {
  padding: 10px 14px;
  vertical-align: top;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #232458);
}
.iott-cmp__table tbody tr { border-bottom: 1px solid var(--steel-100, #e9ecef); }
.iott-cmp__table tbody tr:last-child { border-bottom: 0; }
/* Rows where every model agrees are context, not signal. */
.iott-cmp__table tbody tr.is-same th,
.iott-cmp__table tbody tr.is-same td { color: var(--steel-500, #7c8590); }
.iott-cmp__na { color: var(--steel-300, #c6ccd2); }

@media (max-width: 600px) {
  .iott-cmp__table tbody th { min-width: 130px; font-size: 12px; }
  .iott-cmp__table td { font-size: 12px; padding: 9px 10px; }
}

/* Cross-reference from a product page to its comparison. */
.iott-cmp__xref { margin: 14px 0 0; }
.iott-cmp__xref a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--steel-300, #c6ccd2);
  border-radius: var(--r, 2px);
  background: #fff;
  color: var(--ink, #232458);
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.iott-cmp__xref a:hover { border-color: var(--signal, #ee6124); color: var(--signal-press, #b8431a); }

/* Two or three comparisons: a labelled list, not a row of competing buttons. */
.iott-cmp__xref-h {
  margin: 0 0 8px;
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--steel-600, #6b6f80);
}
.iott-cmp__xref ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.iott-cmp__xref li a { width: 100%; justify-content: flex-start; }
