/* Tag/pill styling for clickable elements */
.quarto-category {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  font-size: 0.8em;
  color: #505050;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quarto-category:hover {
  background-color: #f5f5f5;
  color: #333;
  border-color: #ccc;
}

/* Improved overall spacing and layout */
body {
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Typography improvements */
h1, h2, h3, h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Author and metadata styling */
.quarto-title-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.quarto-title-meta-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #666;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.quarto-title-meta-contents {
  margin-bottom: 1rem;
}

.quarto-title-meta-contents a {
  color: #0366d6;
  text-decoration: none;
}

.quarto-title-meta-contents a:hover {
  text-decoration: underline;
}

/* Table of contents styling */
#toc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #505050;
  margin-bottom: 1rem;
}

.sidebar-navigation .active {
  font-weight: bold;
  border-left: 3px solid #0d6efd;
  padding-left: 7px;
}

.sidebar-navigation nav[role=doc-toc]>ul li a {
  color: #505050;
  text-decoration: none;
  padding: 0.25rem 0;
  display: inline-block;
}

.sidebar-navigation nav[role=doc-toc]>ul li a:hover {
  color: #0d6efd;
}

/* Content layout improvements */
.page-columns {
  gap: 3rem;
}

.column-page {
  padding: 0 2rem;
}

/* Code block styling */
pre {
  padding: 1rem;
  background-color: #f6f8fa;
  border-radius: 4px;
  overflow-x: auto;
}

code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  padding: 0.2em 0.4em;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Link styling */
a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .quarto-title-meta {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .page-columns {
    display: block;
  }
}