/* ── Enhanced listing cards (targeting .quarto-post) ── */
.quarto-post {
  position: relative;
  border: 1px solid #DDE1E6;
  border-left: 4px solid var(--bs-primary);   /* accent bar — now hardwood orange */
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.75rem;
  transition: all 0.25s ease;
  overflow: hidden;
}
.quarto-post:hover {
  box-shadow: 0 8px 24px rgba(232, 99, 31, 0.18);   /* orange-tinted glow */
  transform: translateY(-3px);
  border-color: var(--bs-primary);
}

/* Breathing room for the card body */
.quarto-post .body {
  padding: 1.5rem;
}

/* Card titles pick up the site's display font */
.quarto-post .body h3,
.quarto-post .listing-title {
  font-family: "Barlow Condensed", "Archivo Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Thumbnail separator */
.quarto-post .thumbnail {
  margin: 0;
  border-bottom: none;
  position: relative;
}
.quarto-post .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Make entire card clickable ── */
.quarto-post {
  cursor: pointer;
}
.quarto-post > .thumbnail > a {
  position: static;
}
.quarto-post > .thumbnail > a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Keep title, subtitle, description, and metadata links clickable */
.quarto-post .body a,
.quarto-post .metadata a {
  position: relative;
  z-index: 2;
}

/* ── Wider, more readable metadata — date in mono, matches stat styling ── */
.quarto-post .metadata {
  padding: 0.75rem 0.5rem 1rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #55606B;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ── Logo spacing on homepage ── */
img[src*="logo"] {
  margin-bottom: 0;
}

/* ── Blog post dates ── */
.listing-date {
  font-family: "IBM Plex Mono", monospace;
  color: #55606B;
  font-size: 0.85rem;
}

/* ── Mobile readability ── */
body {
  font-size: 1rem;
  line-height: 1.7;
}

/* ── About page team photos ── */
.about-page img {
  border-radius: 50%;
  max-width: 150px;
}

/* 🌙 Dark mode overrides (body gets class "quarto-dark") */
body.quarto-dark .quarto-post {
  background-color: #171E27;           /* matches dark theme card-bg */
  border-color: #2A323C;               /* matches dark theme border token */
  border-left-color: var(--bs-primary);/* stays visible — brighter orange in dark mode */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.quarto-dark .quarto-post:hover {
  box-shadow: 0 8px 24px rgba(232, 99, 31, 0.22);
  border-color: var(--bs-primary);
}
body.quarto-dark .quarto-post .thumbnail {
  border-bottom-color: none;
}
body.quarto-dark .quarto-post .metadata,
body.quarto-dark .quarto-post .listing-date {
  color: #9AA4AE;
}
body.quarto-dark .quarto-post .listing-description,
body.quarto-dark .quarto-post .listing-subtitle {
  color: #C7CCD1;
}

/* Equations

mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
