/* Project tiles: a large image, then a bold title and a short description, no card frame. */
.quarto-listing .card {
  border: 0;
  background: transparent;
}
.quarto-listing .card .card-img-top,
.quarto-listing .card .listing-item-img-placeholder {
  aspect-ratio: 3 / 2;
  height: auto !important;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.quarto-listing .card:hover .card-img-top {
  opacity: 0.85;
}
.quarto-listing .card .card-body {
  padding: 0.75rem 0 0;
}
.quarto-listing .card .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.quarto-listing .card .card-text {
  color: var(--bs-secondary-color, #555);
}

/* Headline number cards: a big number beside a sentence. */
.stat-cards {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.stat-cards.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.stat-cards.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat-cards.three .stat-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e8e7e3;
  border-radius: 6px;
  background: #fff;
}
.stat-number {
  flex: 0 0 auto;
  min-width: 5.5ch;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: #0b0b0b;
  font-variant-numeric: tabular-nums;
}
.stat-card.is-blue .stat-number { color: #2a78d6; }
.stat-card.is-orange .stat-number { color: #c4501f; }
.stat-card.is-green .stat-number { color: #158a60; }
.stat-card.is-note { background: #f3f2ee; border-color: #f3f2ee; }
.stat-text { font-size: 1rem; line-height: 1.4; }
.stat-text p { margin: 0; }
.stat-text span, .stat-text br + * { color: #52514e; font-size: 0.92rem; }
@media (max-width: 575px) {
  .stat-card { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .stat-number { font-size: 2rem; }
}

/* Two side-by-side text cards. */
.text-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.text-card {
  padding: 1rem 1.25rem 0.5rem;
  border: 1px solid #e8e7e3;
  border-radius: 6px;
  background: #fff;
}
.text-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.text-card.is-green h3 { color: #158a60; }

/* Timeline: dates on a line, wrapping to a list on a phone. */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding-top: 0.25rem;
}
.timeline-step {
  position: relative;
  padding-top: 1.1rem;
  border-top: 2px solid #c9c7c0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eb6834;
}
.timeline-step p { margin: 0 0 0.25rem; }
.timeline-step strong { color: #c4501f; }
.timeline-step.is-next::before { background: #a3aab3; }
.timeline-step.is-next strong { color: #52514e; }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step { border-top: 0; border-left: 2px solid #c9c7c0; padding: 0 0 1rem 1.1rem; }
  .timeline-step::before { top: 2px; left: -7px; }
}
