/* Small overrides layered on top of Bootstrap. Bootstrap's own
   [data-bs-theme] variables handle light/dark; only echtool-specific
   touches live here. */

body {
  padding-bottom: 3rem;
}

.app-container {
  max-width: 640px;
}

.app-container.docs {
  max-width: 860px;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.org-mark {
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: -0.02em;
}

.nav-btn {
  height: 2rem;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-btn.nav-icon-btn {
  width: 2rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}

.docs h2 {
  margin-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1.5rem;
  font-size: 1.15rem;
}

.docs h2:first-of-type {
  margin-top: 1rem;
}

.docs h3 {
  font-size: 1rem;
}

code, pre, textarea#ech_config {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

#result {
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
}

#result-section.status-ok { border-left: 4px solid var(--bs-success) !important; }
#result-section.status-warn { border-left: 4px solid var(--bs-warning) !important; }
#result-section.status-err { border-left: 4px solid var(--bs-danger) !important; }

.advanced-toggle {
  color: var(--bs-body-color);
}

.advanced-chevron {
  color: var(--bs-secondary-color);
  transition: transform 0.15s ease;
  font-size: 0.8rem;
}

.advanced-toggle[aria-expanded="true"] .advanced-chevron {
  transform: rotate(90deg);
}
