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%;
}

/* Ограничение ширины сайта */
.container-fluid {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}

body {
  margin-bottom: 60px;
}

.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;
}

/* --- Псевдоразметка контента --- */
.st-spoiler {
  margin: 0.5rem 0;
}

.st-spoiler > summary {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: underline;
  width: fit-content;
}

.st-spoiler > .st-spoiler-body {
  border-left: 3px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  background: #f8f9fa;
}

.st-codeblock {
  background: #f6f8fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  overflow-x: auto;
}

/* --- Левое меню курса --- */
.st-course-menu {
  font-size: 0.95rem;
  line-height: 1.9;
}

.st-course-menu a {
  text-decoration: none;
  color: #212529;
}

.st-course-menu a:hover {
  text-decoration: underline;
}

.st-menu-course {
  margin-bottom: 0.5rem;
}

.st-course-menu summary {
  cursor: pointer;
  list-style-position: outside;
}

.st-menu-children {
  padding-left: 1.1rem;
}

/* Модули с тем же шагом отступа, что и дни относительно недели */
.st-menu-modules {
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.st-menu-modules li,
.st-course-menu summary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-menu-item.st-menu-active a,
.st-menu-course.st-menu-active a {
  font-weight: 600;
  color: #0d6efd;
}