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;
}

.documentation-card {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.documentation-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.documentation-navigation {
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.documentation-navigation .nav-link.active {
  color: var(--bs-primary);
}

.documentation-content {
  max-width: 920px;
  line-height: 1.65;
}

.documentation-content h1,
.documentation-content h2,
.documentation-content h3 {
  scroll-margin-top: 1rem;
}

.documentation-content h2 {
  margin-top: 2.5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.documentation-content h3 {
  margin-top: 2rem;
}

.documentation-content pre {
  padding: 1rem;
  overflow-x: auto;
  color: #f8f9fa;
  background: #212529;
  border-radius: .5rem;
}

.documentation-content :not(pre) > code {
  padding: .1rem .3rem;
  color: #b02a37;
  background: #f8f9fa;
  border-radius: .25rem;
}

.documentation-content table {
  width: 100%;
  margin-bottom: 1rem;
}

.documentation-content th,
.documentation-content td {
  padding: .5rem;
  border: 1px solid var(--bs-border-color);
  vertical-align: top;
}

.documentation-content blockquote {
  padding-left: 1rem;
  color: var(--bs-secondary-color);
  border-left: .25rem solid var(--bs-border-color);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.handout-card {
  border-top: .3rem solid var(--bs-primary);
}

.handout-card h3 {
  min-height: 3.5rem;
}

.runtime-snapshot-panel {
  color: #f8f9fa;
  background:
    radial-gradient(circle at 90% 10%, rgba(13, 202, 240, .22), transparent 35%),
    linear-gradient(145deg, #172033, #212529);
}

.runtime-value {
  display: flex;
  flex-direction: column;
  min-height: 5.25rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .06);
}

.runtime-value span {
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
}

.runtime-value strong {
  margin-top: auto;
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .handout-card h3 {
    min-height: auto;
  }
}

.event-chart-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) 3fr 4rem;
  gap: .75rem;
  align-items: center;
  margin-top: .8rem;
}

.event-chart-row .progress {
  height: 1rem;
}

.event-chart-row strong {
  text-align: right;
}

.resource-tile {
  display: flex;
  flex-direction: column;
  min-height: 7rem;
  padding: .85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-tertiary-bg);
}

.resource-tile strong {
  margin: auto 0;
  font-size: 1.35rem;
}

.resource-tile small {
  color: var(--bs-secondary-color);
}

.event-table .event-group td {
  padding-top: 1rem;
  font-weight: 700;
  border-bottom-width: 2px;
}

.project-overview-card {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.project-overview-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.project-stat {
  display: flex;
  flex-direction: column;
  padding: .65rem .25rem;
  background: var(--bs-tertiary-bg);
  border-radius: .4rem;
}

.project-stat strong {
  font-size: 1.2rem;
}

.project-stat span {
  font-size: .75rem;
  color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
  .event-chart-row {
    grid-template-columns: 1fr 3rem;
  }

  .event-chart-row .progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
