.container {
  width: min(100% - 2.5rem, var(--site-content-max));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.subtitle {
  max-width: 38rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--site-muted-bright);
}

.main {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.section {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.card,
.intro,
.promotion,
.getInvolved,
.contact {
  padding: 1.35rem;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  min-width: 0;
}

.card p,
.section p,
.contact li,
.stepsList li {
  line-height: 1.7;
}

.grid,
.contributeGrid,
.enforcementGrid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.grid,
.contributeGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enforcementGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enforcementItem {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.enforcementItem h4 {
  margin-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.steps > * {
  min-width: 0;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step > :last-child,
.stepNumberTips,
.step p,
.step h4 {
  min-width: 0;
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.stepNumber {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--site-border-strong);
  border-radius: 999px;
  color: var(--site-text);
  font-size: 0.78rem;
}

.stepNumberTips {
  display: grid;
  gap: 0.55rem;
}

.codeBlock {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--site-border);
  background: #0c0c0c;
}

.codeHeader {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--site-border);
}

.windowControls {
  display: flex;
  gap: 0.4rem;
}

.controlButton {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.title {
  color: var(--site-muted-bright);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.codeContent {
  overflow-x: auto;
  max-width: 100%;
  padding: 1rem;
}

.codeText {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  color: var(--site-text);
  font-size: 0.85rem;
  line-height: 1.65;
}

.tagGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-text);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stepsList {
  margin: 0;
  padding-left: 1.2rem;
}

.stepsList code,
.card code {
  padding: 0.12rem 0.32rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.4rem, var(--site-content-max));
    padding-top: 1.5rem;
  }

  .grid,
  .contributeGrid,
  .enforcementGrid {
    grid-template-columns: 1fr;
  }

  .card,
  .intro,
  .promotion,
  .getInvolved,
  .contact {
    padding: 1.1rem;
  }
}
