/* Rules page */
.rules-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-nav {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1f1f1f;
}

.rules-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: .9rem;
}

.rules-nav a {
  display: block;
  padding: 8px 9px;
  border-radius: 7px;
  color: #bdbdbd;
  font-size: .9rem;
}

.rules-nav a:hover {
  color: #fff;
  background: #282828;
}

.rules-content {
  display: grid;
  gap: 18px;
}

.rules-intro {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #202020;
  color: #d1d1d1;
}

.rule-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1f1f1f;
}

.rule-group-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #242424;
}

.rule-group-header span {
  display: block;
  margin-bottom: 6px;
  color: #8f8f8f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rule-group-header h2 {
  font-size: 1.55rem;
}

.rule-entry {
  padding: 19px 22px;
}

.rule-entry + .rule-entry {
  border-top: 1px solid #303030;
}

.rule-entry h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.rule-entry p {
  margin: 0;
  color: #c5c5c5;
  line-height: 1.6;
}

.punishment {
  display: inline-flex;
  margin-top: 11px;
  padding: 5px 8px;
  border: 1px solid #4a4a4a;
  border-radius: 7px;
  color: #d7d7d7;
  background: #292929;
  font-size: .84rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
  }

  .rules-nav strong {
    display: none;
  }

  .rules-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid #303030;
    background: #242424;
  }
}

@media (max-width: 600px) {
  .rule-group-header,
  .rule-entry {
    padding-left: 17px;
    padding-right: 17px;
  }

  .rule-group-header h2 {
    font-size: 1.35rem;
  }
}
