/* CBS Explorer application presentation */

:root {
  --explorer-ink: #111827;
  --explorer-muted: #4b5563;
  --explorer-rule: #d1d5db;
  --explorer-soft-rule: #e5e7eb;
  --explorer-header: #f3f4f6;
  --explorer-sidebar: #1b1919;
  --explorer-active: #0f172a;
  --explorer-accent: #95c0d3;
}

.app-main-content {
  min-width: 0;
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.explorer-intro {
  border-bottom: 1px solid var(--explorer-rule);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.explorer-intro h1 {
  margin: 0 0 0.55rem;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--explorer-ink);
}

.explorer-section {
  padding: 1.5rem 0 2.75rem;
  border-bottom: 1px solid var(--explorer-soft-rule);
  scroll-margin-top: 1rem;
}

.explorer-section:last-child {
  border-bottom: 0;
}

.explorer-section h1 {
  margin: 0 0 0.45rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-lede {
  max-width: 78ch;
  margin: 0 0 1rem;
  color: #374151;
  line-height: 1.58;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--explorer-rule);
  border-radius: 8px;
  background: #fff;
}

.explorer-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.875rem;
  color: var(--explorer-ink);
}

.explorer-table th {
  padding: 0.75rem;
  border-bottom: 1px solid var(--explorer-rule);
  background: var(--explorer-header);
  color: #374151;
  text-align: left;
  vertical-align: bottom;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explorer-table td {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--explorer-soft-rule);
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.explorer-table tbody tr:last-child td {
  border-bottom: 0;
}

.explorer-table tbody tr:hover {
  background: #fafafa;
}

.explorer-table td:first-child {
  font-weight: 500;
}

.provenance,
.table-note,
.see-also {
  max-width: 88ch;
  margin: 0.75rem 0 0;
  color: var(--explorer-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.provenance {
  margin-top: 0.9rem;
}

.compact-cell-list {
  margin: 0;
  padding-left: 1.15rem;
}

.compact-cell-list li {
  margin: 0 0 0.22rem;
}

.compact-cell-list li:last-child {
  margin-bottom: 0;
}

.not-available {
  color: #6b7280;
  font-style: italic;
}

.empty-table {
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

/* Keep generated sidebar labels readable. */
.app-sidebar {
  background: var(--explorer-sidebar);
}

.sidebar-links a {
  line-height: 1.25;
}

.sidebar-links li.active a {
  background: var(--explorer-active);
}

.sidebar-links a:hover .num-badge,
.sidebar-links li.active .num-badge {
  background: var(--explorer-accent);
  color: #0f172a;
}


/* Compact columns: alignment is independent of width.
   Do not force minimum-width columns; that can visually island them. */
.explorer-table th.numeric-column,
.explorer-table td.numeric-column,
.explorer-table th.compact-column,
.explorer-table td.compact-column {
  text-align: center;
  white-space: nowrap;
}

.explorer-table th.measurement-column,
.explorer-table td.measurement-column {
  text-align: right;
  white-space: nowrap;
}

/* More useful widths for common columns. */
#capture-summary .explorer-table th:first-child,
#capture-summary .explorer-table td:first-child {
  width: 20%;
}

#capture-summary .explorer-table th:nth-child(2),
#capture-summary .explorer-table td:nth-child(2) {
  width: 24%;
}

#rssi .explorer-table td:first-child,
#persistence .explorer-table td:first-child,
#network-relationships .explorer-table td:nth-child(2) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .content-container {
    padding: 1rem;
  }

  .explorer-intro h1 {
    font-size: 1.8rem;
  }

  .explorer-section h1 {
    font-size: 1.45rem;
  }

  .explorer-table {
    min-width: 760px;
  }
}
