/* Force row layout and allow wrapping on all devices */
.quarto-about-trestles .about-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.9rem;
}

/* Prevent any child (li/div/etc.) from becoming full-width */
.quarto-about-trestles .about-links > * {
  flex: 0 0 auto !important;   /* don't grow, don't shrink */
  width: auto !important;
  min-width: 0 !important;
}

/* Ensure the link itself stays horizontal (icon + text side-by-side) */
.quarto-about-trestles .about-links a.about-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.35rem;
  white-space: nowrap;          /* keep icon+text on one line per pill */
  width: auto !important;
  margin: 0 !important;         /* rely on gap, not margins */
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 0.375rem;
}

/* Icons: ensure they stay inline and don't force a new line */
.quarto-about-trestles .about-links i,
.quarto-about-trestles .about-links img,
.quarto-about-trestles .about-links svg {
  display: inline-block !important;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Optional: slightly smaller pills on phones */
@media (max-width: 576px) {
  .quarto-about-trestles .about-links {
    column-gap: 0.5rem;
    row-gap: 1rem;
  }
  .quarto-about-trestles .about-links a.about-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
  }
}

/* ----- ENHANCED CARDS AND SECTIONS ----- */

/* Compact card styling for content blocks */
.card, .content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover, .content-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #005578;
}