.section-intro {
  max-width: 760px;
  margin: -10px 0 24px;
  color: var(--muted);
}

.contribution-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contribution-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.contribution-card:hover {
  border-color: var(--border-strong);
}

.contribution-head,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contribution-head > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-tier {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-tier.maintainer-invited {
  color: var(--accent);
}

.lead-tier.triage-lead {
  color: var(--orange);
}

.contribution-card h3 {
  margin: 16px 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.contribution-card h3 a:hover {
  color: var(--accent);
}

.lead-reasons {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.lead-reasons span {
  position: relative;
  padding-left: 17px;
  color: var(--text);
  font-size: 12px;
}

.lead-reasons span::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
}

.lead-caveat {
  margin: 16px 0;
  padding: 12px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 12px;
}

.lead-actions {
  margin-top: auto;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 650;
}

.lead-actions a:first-child {
  color: var(--accent);
}

.lead-actions a:last-child {
  color: var(--blue);
}

.lead-method {
  display: grid;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  grid-template-columns: repeat(3, 1fr);
}

.lead-method > div {
  display: flex;
  min-height: 165px;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.lead-method > div:last-child {
  border-right: 0;
}

.lead-method strong {
  color: var(--accent);
  font:
    600 28px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.lead-method span {
  margin-top: 3px;
  font-weight: 700;
}

.lead-method p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contribution-filter {
  margin-top: 0;
}

.contribution-card.hidden {
  display: none;
}

.no-leads {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.news-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.news-card > header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.news-card > header h2 a,
.release-bulletin h3 a,
.upcoming-news a {
  color: var(--text);
}

.news-card > header > span {
  max-width: 42%;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.release-bulletin,
.upcoming-news,
.community-news {
  padding: 22px 24px;
}

.release-bulletin {
  min-height: 250px;
  border-bottom: 1px solid var(--border);
}

.release-bulletin h3 {
  margin: 12px 0 5px;
  font-size: 20px;
}

.release-bulletin code {
  color: var(--accent);
  font-size: 11px;
}

.release-bulletin ul {
  min-height: 92px;
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.release-bulletin .evidence {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.release-bulletin.unavailable {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.news-kind {
  display: inline-flex;
  align-self: start;
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  font:
    700 9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-kind.stable {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.news-kind.prerelease {
  color: var(--purple);
}

.news-kind.milestone {
  color: var(--blue);
}

.upcoming-news h3 {
  margin: 0 0 14px;
  font-size: 13px;
}

.community-news {
  border-top: 1px solid var(--border);
}

.community-news h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.community-news ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-news li {
  display: grid;
  align-items: start;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr auto;
}

.community-news li > div {
  display: grid;
  gap: 4px;
}

.community-news small {
  color: var(--muted);
  font-size: 10px;
}

.community-news .hn-link {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.upcoming-news ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upcoming-news li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.upcoming-news li > div {
  display: grid;
  gap: 3px;
}

.upcoming-news small,
.progress-label,
.news-caveat,
.upcoming-news li.unavailable {
  color: var(--muted);
  font-size: 10px;
}

.upcoming-news li.unavailable {
  display: block;
}

.news-caveat {
  margin: 16px 0 0;
  line-height: 1.5;
}

.news-explainer {
  margin-bottom: 28px;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.news-explainer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.news-grid-full {
  margin-bottom: 70px;
}

.project-news {
  margin: 32px 0;
}

.project-news .news-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) 1.2fr 1fr;
}

.project-news .community-news {
  grid-column: 1 / -1;
}

.project-news .news-card > header,
.project-news .release-bulletin {
  border-right: 1px solid var(--border);
  border-bottom: 0;
}

.project-news .release-bulletin {
  min-height: 0;
}

.methodology {
  max-width: 800px;
  margin-top: 65px;
  padding-top: 35px;
  border-top: 1px solid var(--border);
}

.methodology h2 {
  font-size: 24px;
}

.methodology p {
  color: var(--muted);
}

.methodology a {
  color: var(--blue);
}

@media (max-width: 850px) {
  .contribution-grid,
  .news-grid,
  .project-news .news-card {
    grid-template-columns: 1fr;
  }

  .project-news .news-card > header,
  .project-news .release-bulletin {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .lead-method {
    grid-template-columns: 1fr;
  }

  .lead-method > div {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .lead-method > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .topnav .secondary-nav {
    display: none;
  }

  .contribution-card {
    padding: 18px;
  }

  .contribution-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
