:root {
  --site-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --site-body-size: 1rem;
  --site-small-size: 0.875rem;
  --site-control-size: 0.95rem;
}

html {
  font-size: 16px;
}

body,
button,
input,
select,
textarea {
  font-family: var(--site-font-family);
}

body {
  font-size: var(--site-body-size);
  line-height: 1.5;
}

/* Keep site navigation stationary while only the page content scrolls. */
html,
body.site-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body.site-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-shell > .navbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
}

.site-scroll-region {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.site-scroll-region .admin-quick-links {
  top: 0.5rem;
}

.page-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  line-height: 1.25;
}

h3,
h4,
h5,
h6,
.h3,
.h4,
.h5,
.h6,
.card-title {
  line-height: 1.3;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.5;
}

.form-label,
.form-control,
.form-select,
.btn,
.dropdown-item,
.table {
  font-size: var(--site-control-size);
}

.form-label,
.table th {
  font-weight: 600;
}

.form-text,
small,
.small {
  font-size: var(--site-small-size);
  line-height: 1.4;
}

.card-text,
.text-muted {
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .page-title {
    font-size: 1.75rem !important;
  }
}
