/* CPS course overrides on top of 4700.network / Thulite theme */

@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/vendor/jost/jost-v4-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/vendor/jost/jost-v4-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/vendor/jost/jost-v4-latin-700.woff2") format("woff2");
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

:root,
[data-bs-theme="light"] {
  --bs-link-color: #7b52ab;
  --bs-link-color-rgb: 123, 82, 171;
  --bs-link-hover-color: #634189;
  --bs-link-hover-color-rgb: 99, 65, 137;
  --bs-navbar-hover-color: var(--bs-link-hover-color);
  --bs-navbar-active-color: var(--bs-link-color);
  --bs-navbar-brand-hover-color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] {
  --bs-link-color: #c4a8e8;
  --bs-link-color-rgb: 196, 168, 232;
  --bs-link-hover-color: #dcc8f5;
  --bs-link-hover-color-rgb: 220, 200, 245;
  --bs-navbar-hover-color: var(--bs-link-hover-color);
  --bs-navbar-active-color: var(--bs-link-color);
  --bs-navbar-brand-color: var(--bs-link-color);
  --bs-navbar-brand-hover-color: var(--bs-link-hover-color);
}

[data-bs-theme="light"] .navbar .nav-link.active,
[data-bs-theme="light"] .offcanvas .nav-link.active {
  color: var(--bs-link-color);
}

[data-bs-theme="light"] .navbar .nav-link:hover,
[data-bs-theme="light"] .navbar .nav-link:focus,
[data-bs-theme="light"] .offcanvas .nav-link:hover,
[data-bs-theme="light"] .offcanvas .nav-link:focus {
  color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] .page-links a:hover,
[data-bs-theme="dark"] .page-links .nav-link:hover,
[data-bs-theme="dark"] .page-links .nav-link:focus {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

[data-bs-theme="dark"] .page-links a.active,
[data-bs-theme="dark"] .page-links .nav-link.active,
[data-bs-theme="dark"] #toc a.active {
  color: var(--bs-link-color);
}

[data-bs-theme="dark"] .navbar .nav-link.active,
[data-bs-theme="dark"] .offcanvas .nav-link.active {
  color: var(--bs-link-color);
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus,
[data-bs-theme="dark"] .offcanvas .nav-link:hover,
[data-bs-theme="dark"] .offcanvas .nav-link:focus {
  color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] .navbar .btn-link:hover,
[data-bs-theme="dark"] .navbar .btn-link:focus,
[data-bs-theme="dark"] .navbar .btn-link:active {
  color: var(--bs-link-hover-color);
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not([data-bs-theme-value]):not([data-action="logout"]) {
  color: var(--bs-link-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--bs-link-color) 45%, transparent);
}

a:not(.btn):not(.nav-link):not(.navbar-brand):not([data-bs-theme-value]):not([data-action="logout"]):hover,
a:not(.btn):not(.nav-link):not(.navbar-brand):not([data-bs-theme-value]):not([data-action="logout"]):focus-visible {
  color: var(--bs-link-hover-color);
  text-decoration-color: currentColor;
}

.navbar .nav-link,
.navbar .navbar-brand,
.offcanvas .nav-link {
  text-decoration: none;
}

.wrap,
.content,
.section,
.section-features,
.docs-content,
.container,
.container-lg,
.container-fluid {
  max-width: 100%;
}

.docs-content table {
  width: 100%;
}

.docs-content .table-responsive {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
}

.docs-content .table-responsive > table {
  width: auto;
  max-width: none;
  min-width: max-content;
  table-layout: auto;
  margin-bottom: 0;
}

.docs-content .table-responsive th,
.docs-content .table-responsive td {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.co-po-mapping th,
.co-po-mapping td {
  min-width: 2.25rem;
  text-align: center;
  vertical-align: middle;
}

.co-po-mapping th:first-child,
.co-po-mapping td:first-child {
  min-width: 3rem;
  text-align: left;
}

.docs-content pre {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  max-width: 100%;
}

/* ChatGPT-style code blocks (policies, docs) */
.docs-content pre.highlight {
  position: relative;
  margin: 1.25rem 0 1.5rem;
  padding: 2.75rem 1.15rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
  background: #282828;
  color: #ececec;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.docs-content pre.highlight::before {
  content: "text";
  position: absolute;
  top: 0.7rem;
  left: 1.1rem;
  font-family: var(--bs-body-font-family, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.55;
  pointer-events: none;
}

[data-bs-theme="light"] .docs-content pre.highlight {
  background: #f4f4f4;
  color: #1a1a1a;
  border-color: #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.docs-content pre.highlight code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  white-space: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

.docs-content pre.highlight .copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.docs-content pre.highlight .btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 0.5rem;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.docs-content pre.highlight .btn-copy:hover,
.docs-content pre.highlight .btn-copy:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, currentColor 18%, transparent);
  outline: none;
}

.docs-content pre.highlight .btn-copy div {
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.docs-content p code,
.docs-content li code {
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--bs-body-color) 8%, transparent);
  font-size: 0.875em;
}

.page-links nav ul {
  padding-left: 0;
}

.page-links nav ul ul {
  padding-left: 1rem;
}

.page-links .nav-link {
  padding-left: 0;
  padding-right: 0;
  color: var(--bs-link-color);
  text-decoration: none;
}

.page-links .nav-link:hover,
.page-links .nav-link:focus,
.page-links a:hover,
.page-links a:focus {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

.page-links .nav-link.active,
.page-links a.active,
#toc a.active {
  color: var(--bs-link-color);
}

.docs-toc {
  height: auto !important;
  overflow: visible !important;
}

@media (min-width: 1200px) {
  body.docs .row.flex-xl-nowrap {
    align-items: flex-start;
  }

  body.docs .docs-toc {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.docs .docs-toc .page-links {
    box-sizing: border-box;
  }
}

.docs-content h2 {
  scroll-margin-top: 5rem;
}

.toc-mobile {
  margin-bottom: 1.5rem;
}

.toc-mobile summary {
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
p,
li,
a {
  overflow-wrap: break-word;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100dvh - 4.25rem);
  padding: 2rem 0;
}

.home-hero .wrap.container-lg {
  width: 100%;
}

.home-hero .wrap.container-lg,
.home-hero .content,
.home-hero .section {
  position: relative;
  z-index: 1;
}

.home-hero__content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home-hero__content h1 {
  margin-top: 0;
}

.home-intro {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bs-secondary-color);
}

.home-hero .bg-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  height: 11rem;
  margin-top: 0 !important;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

[data-bs-theme="dark"] .home-hero .bg-dots {
  background-image: radial-gradient(#343a40 15%, transparent 15%);
}

.auth-card {
  padding: 1.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
}

.navbar-utilities {
  gap: 0.5rem;
  flex-shrink: 0;
}

.navbar-utilities .user-menu {
  margin-left: 0.125rem;
}

header.navbar .container-lg {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
  .navbar-utilities {
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  header.navbar .container-lg > .offcanvas {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 1050;
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.625rem 0.75rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.user-menu-panel[hidden] {
  display: none !important;
}

.user-menu-email {
  margin: 0 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.user-menu-logout {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--bs-link-color);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}

.user-menu-logout:hover,
.user-menu-logout:focus-visible {
  background: var(--bs-tertiary-bg);
  color: var(--bs-link-hover-color);
}

.auth-page-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 4.25rem);
  padding: 2rem 1.25rem;
}

.auth-card-login {
  width: 100%;
  max-width: 36rem;
  padding: 2rem 2.25rem;
}

.auth-card-login h1 {
  margin-bottom: 0.5rem;
}

.auth-card-login > .text-muted {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.auth-card-login form .mb-3 {
  margin-bottom: 1.25rem;
}

.auth-card-login form .form-label {
  margin-bottom: 0.375rem;
}

.auth-card-login .form-control {
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  line-height: 1.25;
  font-size: 1rem;
}

.auth-card-login input[type="password"].form-control {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.08em;
  padding-top: 0.6875rem;
  padding-bottom: 0.5625rem;
}

.auth-card-login form button[type="submit"] {
  margin-top: 0.25rem;
}

.auth-card-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color);
}

.auth-card-links p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.auth-card-links p:last-child {
  margin-bottom: 0;
}

.auth-card-login .alert {
  margin-bottom: 1.25rem;
}

.auth-card .form-label {
  font-weight: 500;
}

.section .auth-card {
  margin-bottom: 1rem;
}

.resource-tiles {
  width: 100%;
}

/* Grouped resources page: stack sections; tiles grid lives inside each group */
.resource-tiles-grid:has(> .resource-group) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.resource-tiles-grid:has(> .resource-group) > .resource-group {
  width: 100%;
}

.resource-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.resource-group + .resource-group {
  margin-top: 2.5rem;
}

.resource-group__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.resource-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin-bottom: 0;
  padding: 1.25rem 1.35rem;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.resource-tile:hover {
  border-color: color-mix(in srgb, var(--bs-link-color) 35%, var(--bs-border-color));
  box-shadow: 0 0.2rem 0.75rem rgba(0, 0, 0, 0.06);
}

.resource-tile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-height: 1.45rem;
  margin-bottom: 0.75rem;
}

.resource-tile-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bs-link-color);
  background: color-mix(in srgb, var(--bs-link-color) 12%, transparent);
}

.resource-tile-badge-muted {
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
}

.resource-tile-title {
  flex: 1 1 auto;
  width: 100%;
  margin: 0 0 1.25rem;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.resource-tile-download {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 575.98px) {
  .resource-tiles-grid:not(:has(> .resource-group)) {
    grid-template-columns: 1fr;
  }

  .resource-group .resource-tiles-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) {
  .resource-tiles-grid:not(:has(> .resource-group)) {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}

@media (min-width: 768px) {
  .resource-tiles-grid:not(:has(> .resource-group)) {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }

  .resource-group .resource-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

@media (min-width: 992px) {
  .resource-tiles-grid:not(:has(> .resource-group)) {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }

  .resource-group .resource-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
}

@media (max-width: 991.98px) {
  .container,
  .container-lg,
  .container-fluid,
  .row {
    --bs-gutter-x: 1.5rem;
  }

  .content,
  .docs-content {
    min-width: 0;
  }

  [class*="col-"] {
    min-width: 0;
  }

  .navbar > .container-lg {
    --bs-gutter-x: 1.5rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .docs-content table {
    font-size: 0.875rem;
    table-layout: fixed;
  }

  .docs-content th,
  .docs-content td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .docs-content .table-responsive > table {
    table-layout: auto;
    width: auto;
    max-width: none;
    min-width: max-content;
  }

  .docs-content .table-responsive th,
  .docs-content .table-responsive td {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
  }

  .offcanvas-body .navbar-nav .nav-link {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 1.05rem;
  }

  .home h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1.25;
  }

  .home #school {
    font-size: clamp(1rem, 4vw, 1.75rem);
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-lg,
  .container-fluid,
  .row {
    --bs-gutter-x: 1.25rem;
  }

  .navbar > .container-lg {
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }

  .section-features .btn {
    display: block;
    width: 100%;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
  }

  .docs-content h1,
  .home h1 {
    font-size: calc(1.35rem + 1vw);
    overflow-wrap: anywhere;
  }
}

/* Faculty admin — manage content page */
.admin-page {
  padding-bottom: 2.5rem;
  max-width: 72rem;
}

.admin-section-label {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.admin-section-picker {
  max-width: 18rem;
  margin-bottom: 0.25rem;
}

.admin-release-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: var(--bs-body-bg);
}

.admin-release-item + .admin-release-item {
  margin-top: 0.65rem;
}

.admin-release-item-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.admin-release-item-status {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

#release-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}

@media (min-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: start;
  }

  .admin-panel--release,
  .admin-panel--upload {
    height: var(--admin-panel-height, auto);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .admin-panel--release .admin-panel__body,
  .admin-panel--upload .admin-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .admin-panel--upload {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-panel--release {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-stack--right {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: var(--admin-right-stack-height, auto);
    min-height: 0;
  }

  .admin-stack--right .admin-panel--links {
    flex: 0 0 auto;
    height: auto;
  }

  .admin-stack--right .admin-panel--files {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .admin-stack--right .admin-panel--files .admin-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  overflow: hidden;
}

.admin-panel__header {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}

.admin-panel__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.admin-panel__desc {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  line-height: 1.4;
}

.admin-panel__body {
  padding: 1rem 1.15rem 1.15rem;
}

.admin-alert {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.admin-alert--error {
  color: var(--bs-danger);
  background: color-mix(in srgb, var(--bs-danger) 10%, transparent);
}

.admin-alert--ok {
  color: var(--bs-success);
  background: color-mix(in srgb, var(--bs-success) 10%, transparent);
}

.admin-links-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-link-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: var(--bs-body-bg);
}

.admin-link-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-link-row__top .form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-link-remove {
  padding: 0;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.discussion-tile-desc {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.admin-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-body-color);
}

.admin-form-optional {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.admin-form-field {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form-field::placeholder {
  color: var(--bs-secondary-color);
}

.admin-form-field:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--bs-link-color) 55%, var(--bs-border-color));
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-link-color) 15%, transparent);
}

.admin-form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
  cursor: pointer;
}

[data-bs-theme="dark"] .admin-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.admin-form-file {
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
}

.admin-form-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  cursor: pointer;
}

.admin-form-file::file-selector-button:hover {
  border-color: color-mix(in srgb, var(--bs-link-color) 35%, var(--bs-border-color));
}

.admin-files-body {
  display: flex;
  flex-direction: column;
}

.admin-files-empty {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.admin-files-list,
#admin-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-files-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.admin-files-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-files-group + .admin-files-group {
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color);
}

.admin-file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: var(--bs-body-bg);
  transition: border-color 0.15s ease;
}

.admin-file-item:hover {
  border-color: color-mix(in srgb, var(--bs-link-color) 30%, var(--bs-border-color));
}

.admin-file-item-main {
  min-width: 0;
}

.admin-file-item-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-file-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.admin-file-item-meta .resource-tile-badge {
  font-size: 0.6875rem;
  padding: 0.12rem 0.45rem;
}

.admin-file-delete {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .admin-section-picker {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .admin-file-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-file-delete {
    justify-self: start;
  }
}

/* General page — section schedule picker */
.schedule-picker {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.schedule-picker__btn {
  flex: 0 0 auto;
  min-width: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.schedule-picker__btn:hover,
.schedule-picker__btn:focus-visible {
  border-color: var(--bs-link-color);
  color: var(--bs-link-color);
  outline: none;
}

.schedule-picker__btn--active {
  background: var(--bs-link-color);
  border-color: var(--bs-link-color);
  color: #fff;
}

.schedule-picker__btn--yours:not(.schedule-picker__btn--active) {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bs-link-color) 35%, transparent);
}

.schedule-hint {
  font-size: 0.925rem;
  margin-bottom: 1rem;
}

.schedule-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}

.schedule-card__header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.schedule-card__instructor {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.schedule-card__block + .schedule-card__block {
  margin-top: 1.25rem;
}

.schedule-card__label {
  margin-bottom: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
}

.schedule-card__table {
  width: 100%;
  margin-bottom: 0;
}

.schedule-card__table th,
.schedule-card__table td {
  vertical-align: top;
}

.schedule-card__lab {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.schedule-card__lab-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.schedule-card__lab-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.schedule-card__lab-row dd {
  margin: 0;
}

.schedule-card__note {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.9rem;
}

.schedule-card__empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
}

@media (max-width: 575.98px) {
  .schedule-card__lab-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
