/* Buy Me a Coffee support box: same quiet surface as the sponsor board, so it
   reads as a footnote to the post rather than an ad. */
.elg-bmc {
  max-width: 50rem;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--elg-bg-soft);
  border: 1px solid var(--elg-line);
  border-radius: var(--elg-radius);
  font-family: var(--elg-font);
}

.elg-bmc-body {
  flex: 1;
  min-width: 0;
}

.elg-bmc-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elg-faint);
  margin-bottom: 0.2rem;
}

.elg-bmc-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--elg-ink);
}

.elg-bmc-text {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--elg-muted);
}

.elg-bmc-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.elg-bmc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--elg-radius-pill);
  background: var(--elg-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.elg-bmc-cta:hover {
  background: var(--elg-primary-hover);
  color: #fff;
}

.elg-bmc-official {
  display: block;
  line-height: 0;
}

.elg-bmc-official img {
  height: 44px;
  width: auto;
}

@media (max-width: 575.98px) {
  .elg-bmc {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .elg-bmc-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* Open-source project card shown above the support box at the end of posts.
   Shares the support box surface; the two stack as one quiet "after the post"
   block. */
.elg-oss {
  max-width: 50rem;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--elg-bg);
  border: 1px solid var(--elg-line-strong);
  border-radius: var(--elg-radius);
  font-family: var(--elg-font);
}

.elg-oss + .elg-bmc {
  margin-top: 1rem;
}

.elg-oss-body {
  flex: 1;
  min-width: 0;
}

.elg-oss-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elg-faint);
  margin-bottom: 0.2rem;
}

.elg-oss-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--elg-ink);
}

.elg-oss-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #00add8; /* Go brand colour, same as the projects page */
}

.elg-oss-lang {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--elg-faint);
}

.elg-oss-text {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--elg-muted);
}

.elg-oss-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.elg-oss-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--elg-radius-pill);
  background: var(--elg-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.elg-oss-cta:hover {
  color: #fff;
  opacity: 0.9;
}

.elg-oss-link {
  font-size: 0.8rem;
  color: var(--elg-accent-ink);
}

@media (max-width: 575.98px) {
  .elg-oss {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .elg-oss-actions {
    flex-direction: row;
    align-items: center;
  }
}
