html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Per-tenant branding (Phase 8.5). The layout overrides these :root values
   with the resolved tenant colors; these are the platform defaults. */
:root {
  --brand-primary: #0d6efd;
  --brand-accent: #6c757d;
}

header nav {
  border-top: 3px solid var(--brand-primary);
}

.navbar-brand {
  color: var(--brand-primary) !important;
  font-weight: 600;
}

a {
  color: var(--brand-primary);
}

/* Bootstrap 5.1 themes buttons with direct properties (no --bs-btn-* vars,
   those arrived in 5.3). site.css loads after bootstrap.min.css, so equal-
   specificity rules win by order. */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* In-app /Help wiki (Phase 8.10). Markdig emits plain HTML with no Bootstrap
   classes, so style the rendered article here for readability. */
.wiki-content {
  line-height: 1.6;
}

.wiki-content h1 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.wiki-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid #e9ecef;
}

.wiki-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.wiki-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.wiki-content th,
.wiki-content td {
  border: 1px solid #dee2e6;
  padding: .5rem .75rem;
  vertical-align: top;
}

.wiki-content thead th {
  background-color: #f8f9fa;
}

.wiki-content blockquote {
  border-left: 4px solid var(--brand-accent);
  background-color: #f8f9fa;
  padding: .5rem 1rem;
  margin: 1rem 0;
  color: #495057;
}

.wiki-content pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: .25rem;
  padding: .75rem 1rem;
  overflow-x: auto;
}

.wiki-content code {
  background-color: #f1f3f5;
  padding: .1rem .3rem;
  border-radius: .2rem;
}

.wiki-content pre code {
  background-color: transparent;
  padding: 0;
}