/* Server rules page. The look comes from styles.css (section kickers,
   numbered crew-rule cards, crew-story, crew-footnote) and whitelist.css
   (header, intro heading, footer); this file only lays them out. */
.rules-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 64px 80px;
}
.rules-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 72px;
}
/* The heading comes first at every width (whitelist.css moves the
   application intro below its form on phones). */
.rules-intro .application-intro {
  padding-top: 0;
  grid-row: auto;
}
.rules-intro h1 {
  margin-bottom: 0;
}
.rules-intro .crew-story p:last-child {
  margin-bottom: 0;
}
.rules-updated {
  font-size: 0.875rem;
}
.rules-section + .rules-section {
  margin-top: 80px;
}
/* The kicker's label is the section heading, at the kicker's size. */
.rules-section .section-kicker h2 {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
}
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  row-gap: 52px;
}
.rules-list .crew-rule p {
  max-width: 350px;
}
/* Numbers sit top right, as on the home page; headings keep clear of them.
   Word labels (FINAL SAY, REPORTS) are too wide for that corner, so they
   sit above their heading at every width. */
@media (min-width: 801px) {
  .rules-list .crew-rule h3 {
    padding-right: 34px;
  }
}
.rules-list .rule-label {
  position: static;
  display: block;
  margin-bottom: 12px;
}
.rules-list .crew-rule a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rules-list .crew-rule a:hover {
  color: var(--orange);
}
/* A rule opened from a link, such as /rules#grenade-launchers, is marked. */
.rules-list .crew-rule:target {
  border-top-color: var(--orange);
}
/* Rule headings run longer than the home page's, so laptops and tablets in
   landscape keep two columns until three have room for every heading line
   (from 1151px, where styles.css widens the card gap). */
@media (min-width: 801px) and (max-width: 1150px) {
  .rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .rules-shell {
    padding-inline: 28px;
  }
  .rules-intro {
    gap: 40px;
  }
}
@media (max-width: 800px) {
  .rules-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 52px;
  }
  .rules-section + .rules-section {
    margin-top: 60px;
  }
  .rules-list {
    row-gap: 24px;
  }
  /* Rule headings run longer than the home page's, so phones and tablets
     stack heading over text (the home page does this from 440px down)
     instead of squeezing the heading into a narrow left column. */
  .rules-list .crew-rule {
    grid-template-columns: 1fr;
  }
  .rules-list .crew-rule h3 {
    padding-right: 0;
    margin-bottom: 14px;
  }
}
@media (max-width: 760px) {
  .rules-shell {
    padding: 28px 20px 50px;
  }
}
