/* Data explorer page styles. Tabs + saved-view chips + viewer sizing.
 * The explore-shell is rendered as <figure> in markdown so marked
 * leaves its custom-element children alone — reset figure's default
 * margin and centering. */

figure.explore-shell {
  margin: 0;
  padding: 0;
}

.explore-mobile-banner {
  display: none;
  padding: 1.5rem 1rem;
  background: #fff8e1;
  border: 1px solid #f0d977;
  border-radius: 4px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .explore-mobile-banner { display: block; }
  .explore-shell { display: none; }
}

.explore-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.explore-tabs button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: #555;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}

.explore-tabs button:hover { color: #000; }
.explore-tabs button.active {
  color: #000;
  border-bottom-color: #000;
  font-weight: 500;
}

.explore-saved-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.explore-saved-views button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
}

.explore-saved-views button:hover {
  background: #ebebeb;
  border-color: #c5c5c5;
}

.explore-saved-views .reset {
  background: transparent;
  border-style: dashed;
}

.explore-saved-views .configure {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
  font-weight: 500;
}

.explore-saved-views .configure:hover {
  background: #111827;
  border-color: #111827;
}

.explore-hint {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0.25rem 0 1rem;
  max-width: 75ch;
}

.explore-hint strong {
  color: #1f2937;
  font-weight: 600;
}

.explore-hint em {
  font-style: normal;
  background: #f0f0f0;
  padding: 0 0.3em;
  border-radius: 3px;
  font-size: 0.95em;
}

perspective-viewer {
  height: 720px;
  width: 100%;
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
