/* Adapted from https://github.com/dkapitan/dkapitan.github.io (Mozilla Public License 2.0) */

.text-muted {
  --bs-text-opacity: 1;
  color: #e7e5e2 !important;
}

.text-muted-darker {
  --bs-text-opacity: 1;
  color: #959595 !important;
}

.text-hero {
  --bs-text-opacity: 1;
  color: #959595 !important;
}

.navbar-brand-container .navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand .navbar-logo {
  max-height: 6rem;
  width: auto;
}

.linkedin-share-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: #0a66c2;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.linkedin-share-fab:hover {
  background: #004182;
  color: #fff;
}

.post-views-meta .post-view-count {
  margin-bottom: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.post-views-meta .post-view-count.is-loading {
  color: #6c757d;
  font-weight: 500;
}

.quarto-listing .quarto-post .listing-description {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.6;
  max-height: calc(1.6em * 5);
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.quarto-listing .quarto-post .listing-description > :last-child {
  margin-bottom: 0;
}

.quarto-listing .quarto-post .listing-description ul,
.quarto-listing .quarto-post .listing-description ol {
  margin-bottom: 0;
}

.quarto-listing .quarto-post .listing-description li:empty,
.quarto-listing .quarto-post .listing-description p:empty {
  display: none;
}

@media (max-width: 767.98px) {
  .navbar-brand .navbar-logo {
    max-height: 5rem;
  }

  /* Keep wide post tables usable on phones without crushing columns. */
  main.content table.table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  main.content table.table th,
  main.content table.table td {
    white-space: nowrap;
  }

  /* Wrap long preformatted blocks so they stay inside the viewport. */
  main.content pre,
  main.content pre code,
  main.content .sourceCode,
  main.content .sourceCode pre {
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  main.content pre {
    font-size: 0.85rem;
    padding: 0.875rem;
  }

  main.content :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
