/* Réplica visual del comparador normativo: barra, superficies y navegación. */
:root {
  --juris-ink: #18222b;
  --juris-muted: #66737f;
  --juris-line: #dce2e7;
  --juris-paper: #ffffff;
  --juris-blue: #315f8d;
  --juris-teal: #087f75;
  --juris-amber: #ad6a00;
  --juris-red: #a9342f;
}

body {
  min-height: 100vh;
  color: var(--juris-ink);
  background: #f4f6f7;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.juris-topbar {
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 3px solid #d4a72c;
  background: #101820;
}

.juris-brand small {
  color: #aab5bd;
  letter-spacing: 0;
  text-transform: none;
}

.juris-brand strong {
  font-size: 14px;
}

.juris-topbar-button {
  min-height: 34px;
  border-color: #4d5861;
  border-radius: 4px;
  font-size: 11px;
}

.juris-topbar-button:hover,
.juris-topbar-button[aria-expanded="true"] {
  color: #172127;
  background: #f0c85a;
  border-color: #f0c85a;
}

.juris-shell {
  display: block;
  max-width: none;
  min-height: 0;
}

.juris-sidebar {
  width: 100%;
  padding: 22px 20px 18px;
  border-right: 0;
  border-bottom: 1px solid var(--juris-line);
  background: #fbfcfc;
}

.juris-sidebar h1,
.juris-workspace-header h2,
.juris-context h3,
.juris-cases h3,
.juris-context-card p,
.juris-case-card h4,
.juris-case-section-title {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.juris-sidebar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.juris-stats {
  display: flex;
  gap: 13px;
  margin: 15px 0 14px;
}

.juris-stats div {
  padding: 0;
  border: 0;
  background: transparent;
}

.juris-stats strong {
  color: var(--juris-ink);
  font-size: 14px;
}

.juris-stats span {
  color: var(--juris-muted);
  font-size: 11px;
}

.juris-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--juris-line);
  border-radius: 5px;
  background: white;
}

.juris-search span {
  flex: 0 0 auto;
  margin: 0;
  color: var(--juris-muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.juris-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.juris-topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px 24px;
  max-height: none;
  overflow: visible;
  padding: 0 8px 20px;
}

.juris-topic-group {
  min-width: 0;
}

.juris-topic-group > h3 {
  margin: 6px 8px 2px;
  color: #60737a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.juris-topic-button {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 9px 28px 9px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.juris-topic-button:hover {
  background: #f0f4f4;
  border-color: transparent;
}

.juris-topic-button.active {
  background: #e8f5f3;
  border-left-color: var(--juris-teal);
}

.juris-topic-button span {
  font-size: 12px;
  font-weight: 650;
}

.juris-topic-button small {
  margin-top: 4px;
  color: var(--juris-muted);
  font-size: 10px;
}

.juris-workspace {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px clamp(24px, 4vw, 62px) 70px;
  background: var(--juris-paper);
}

@media (max-width: 760px) {
  .juris-topbar {
    padding: 0 14px;
  }

  .juris-sidebar {
    max-height: none;
    overflow: visible;
    padding: 18px 14px 12px;
  }

  .juris-topic-list {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 0;
  }
}
