:root {
  --aorta-red: #e63946;
  --aorta-red-dark: #bd2533;
  --aorta-teal: #2a9d8f;
  --aorta-cyan: #a8dadc;
  --aorta-ink: #243638;
  --aorta-muted: #627375;
  --aorta-border: #dce5e4;
  --aorta-surface: #f3f7f6;
  --bs-body-font-family: "Source Sans 3", "Segoe UI", sans-serif;
  --bs-body-color: var(--aorta-ink);
  --bs-border-color: var(--aorta-border);
  --bs-border-radius: 0.5rem;
  --bs-link-color: #187b73;
  --bs-link-hover-color: #bd2533;
  --bs-tertiary-bg: var(--aorta-surface);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--aorta-surface);
  color: var(--aorta-ink);
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .footer-brand {
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.workspace-main {
  flex: 1 0 auto;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.workspace-main:focus {
  outline: none;
}

.workspace-context {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  color: var(--aorta-muted);
  font-size: 0.85rem;
}

.workspace-context a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #187b73;
  text-decoration: none;
}

.workspace-context > .bi {
  font-size: 0.6rem;
}

.workspace-main h1 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.3;
}

.workspace-main > section > .container {
  padding-right: 0;
  padding-left: 0;
}

.workspace-main :where(h1, h2, h3, p, a, td, th) {
  overflow-wrap: anywhere;
}

.site-navbar {
  z-index: 1030;
  min-height: 80px;
  border-top: 3px solid var(--aorta-red);
  border-bottom: 1px solid var(--aorta-border);
  box-shadow: none;
}

.site-logo img {
  max-height: 53px;
}

.site-navbar .nav-link {
  font-size: 0.94rem;
  font-weight: 600;
}

.site-navbar .nav-link.active:not(.btn) {
  background: #eaf5f3;
  color: #187b73 !important;
}

.site-navbar .nav-link.btn-primary {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.dropdown-menu {
  padding: 0.4rem;
  border-color: var(--aorta-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px #24363812;
}

.dropdown-item {
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
}

.dropdown-item:active {
  background: #187b73;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-sm {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #187b73 !important;
  outline-offset: 3px;
}

.btn-outline-info {
  color: #187b73 !important;
  border-color: #187b73 !important;
}

.btn-outline-warning {
  color: #856217 !important;
}

.form-control, .form-select {
  min-height: 43px;
  border-color: #cbd8d6;
  border-radius: 6px;
  background-color: #fff;
  font-size: 1rem;
}

.form-control::placeholder {
  color: #758581;
}

.form-control:focus, .form-select:focus {
  border-color: var(--aorta-teal);
  box-shadow: 0 0 0 3px #2a9d8f18;
}

.form-label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-check-input:checked {
  border-color: #187b73;
  background-color: #187b73;
}

.workspace-main .card,
.workspace-main .modal-content {
  --bs-card-border-color: var(--aorta-border);
  --bs-card-border-radius: 8px;
  border-radius: 8px !important;
}

.workspace-main .card.shadow-sm {
  border: 1px solid var(--aorta-border) !important;
  box-shadow: 0 3px 12px #24363804 !important;
}

.workspace-main .card-body {
  padding: 1.4rem;
}

.list-group {
  --bs-list-group-border-color: var(--aorta-border);
  --bs-list-group-border-radius: 8px;
}

.list-group-item {
  padding: 1rem 1.2rem;
}

.list-group-item:hover {
  background-color: #fafdFC;
}

.table {
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f7faf9;
  --bs-table-hover-bg: #eef7f5;
  --bs-table-border-color: var(--aorta-border);
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding: 0.85rem 1rem;
}

.table thead th {
  background-color: #eaf1ef;
  color: #506561;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-link {
  color: #187b73;
}

.active > .page-link {
  border-color: #187b73;
  background-color: #187b73;
}

.alert {
  border-radius: 6px;
}

.site-footer {
  padding: 26px 0;
  border-color: var(--aorta-border);
  color: var(--aorta-muted);
}

.footer-brand {
  margin-right: 1.25rem;
  color: var(--aorta-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-brand > span {
  color: var(--aorta-red);
}

.footer-copyright {
  display: inline-block;
  font-size: 0.8rem;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: -100px;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  background: #fff;
  color: #187b73;
}

.skip-link:focus {
  top: 1rem;
}

.signin-panel {
  max-width: 420px;
  margin: 36px auto 64px;
  padding: 32px;
  border: 1px solid var(--aorta-border);
  border-top: 3px solid var(--aorta-red);
  border-radius: 8px;
  background: #fff;
}

.signin-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #e6f4f0;
  color: #187b73;
  font-size: 1.5rem;
}

.signin-eyebrow {
  margin-bottom: 8px;
  color: #187b73;
  font-size: 0.8rem;
  font-weight: 700;
}

.signin-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 24px;
  color: var(--aorta-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-image-placeholder {
  padding: 28px;
  background: #fff;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .workspace-main h1 {
    font-size: 1.5rem;
  }

  .workspace-main {
    padding-top: 0.25rem;
  }

  .workspace-main .list-group-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .workspace-main .btn-toolbar {
    flex-wrap: wrap;
  }

  .signin-panel {
    margin-top: 12px;
    padding: 24px;
  }

  .topic-search, .topic-search > .position-relative {
    width: 100%;
  }

  .site-navbar .navbar-collapse {
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}