/* =================================
   Global styles
   ================================= */

body {
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  font-weight: 400;
}


/* =================================
   Nav Section
   ================================= */

.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #eeeeee;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #333333 !important;
}

.aa-DetachedSearchButton {
  color: #333333 !important;
}


/* =================================
   Listing
   ================================= */

.listing-title a {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.2;
  color: #333333;
  text-decoration: none;
}

.listing-description p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
}



/* =================================
   Explore Section
   ================================= */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.explore-card {
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 0.6rem;
  padding: 1.2rem;
}

/* Card heading */

.explore-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.explore-card h3 a {
  color: #292929;
  text-decoration: none;
}

/* Card description */

.explore-card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #666666;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Explore indicator */

.explore-card-action {
  display: inline-block;
  color: #888888;
  font-size: 0.85rem;
  font-weight: 400;
}


/* =================================
   Clickable Section 
   ================================= */

/* Make the complete card clickable */

.explore-card {
  position: relative;
}

.explore-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}



/* =================================
   Article Navigation
   ================================= */

.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.article-navigation a {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.4rem;
  color: #444444;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.article-navigation a:hover {
  background-color: #f8f8f8;
  color: #222222;
}

.article-nav-back {
  margin-right: auto;
}

.article-nav-next {
  margin-left: auto;
}


/* =================================
   LLM Collection Layout
   ================================= */

.llm-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 2rem;
}

.llm-intro {
  align-self: start;
}

.llm-intro h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.llm-collection-meta {
  margin-top: 2rem;
  color: #888888;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Listing entries */

.llm-article-list .quarto-listing {
  width: 100%;
}

.llm-article-list .quarto-post {
  border: none !important;
  border-bottom: none !important;
  padding: 1.4rem 0;
}

/* Keep separators short */

.llm-article-list .quarto-post:not(:last-child) {
  border-bottom: 1px solid #eeeeee !important;
}

@media (max-width: 768px) {
  .llm-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* Number LLM articles automatically */

.llm-article-list .quarto-listing {
  counter-reset: llm-article;
}

.llm-article-list .quarto-post {
  counter-increment: llm-article;
  position: relative;
}

.llm-article-list .quarto-post .listing-title::before {
  content: counter(llm-article, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.1rem;
  color: #888888;
  font-size: 0.6em;
  font-weight: 600;
}
