:root,
[data-bs-theme="light"] {
  --ht-body-bg: #f4f6f8;
}

[data-bs-theme="dark"] {
  --ht-body-bg: #212529;
  color-scheme: dark;
}

body {
  background-color: var(--ht-body-bg);
  min-height: 100vh;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theme-swatch-chip {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid #6c757d;
}

.theme-swatch-light {
  background-color: #f4f6f8;
}

.theme-swatch-dark {
  background-color: #212529;
}

#theme-toggle .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.5rem;
}

#site-index {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.build-index h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.build-index-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.build-index-list ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.build-index-list a {
  display: block;
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}

.build-index-list a:hover {
  text-decoration: underline;
}

.build-index-list a.is-active {
  font-weight: 600;
  border-left-color: #6c757d;
}

.index-pending {
  color: var(--bs-secondary-color, #6c757d);
}

.post-body > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
}

.ht-carousel {
  margin: 0.75rem 0 1.25rem;
}

.ht-carousel .carousel-inner {
  background-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .ht-carousel .carousel-inner {
  background-color: rgba(0, 0, 0, 0.35);
}

.ht-carousel .carousel-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: 0;
}

.ht-carousel .carousel-control-prev,
.ht-carousel .carousel-control-next {
  width: 3rem;
}

.ht-carousel .carousel-control-prev-icon,
.ht-carousel .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(33, 37, 41, 0.55);
  background-size: 60% 60%;
}

.ht-carousel-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.ht-carousel-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.2rem;
  background: none;
  overflow: hidden;
  cursor: pointer;
}

.ht-carousel-thumb.is-active {
  border-color: #6c757d;
}

.ht-carousel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.post-body ul,
.post-body ol {
  padding-left: 1.25rem;
}
