/* ==========================================================================
   Yozza SMP clone — Rules page (rules.html)
   Gold page title, intro copy, Minecraft oak-plank accordions.
   ========================================================================== */

.rules-main {
  padding: 130px 0 110px;
}

.rules-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
}

.rules-intro { margin-top: 20px; }
.rules-intro p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: #c9bdd1;
}
.rules-main strong {
  color: #ede3f2;
  font-weight: 600;
}

.rules-link {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
}
.rules-link:hover { color: var(--c-primary-hover); }

.rules-section { margin-top: 68px; }
.rules-h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.rules-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #c9bdd1;
}

/* ---------- Accordion (Minecraft oak-plank bars) ---------- */
.acc {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.acc-item {
  border: 2px solid #a83fb0;
  border-radius: 4px;
  background-color: #e69ae6;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(90, 20, 100, .32);
}

.acc-head {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #4a1450;
}
.acc-head:hover { filter: brightness(1.045); }

.acc-chevron {
  flex: none;
  color: #4a1450;
  transition: transform .3s ease;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.acc-inner {
  padding: 14px 26px 22px;
  border-top: 1px solid rgba(120, 40, 130, .45);
}
.acc-inner ul { margin: 0; padding-left: 22px; }
.acc-inner li {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #3a1042;
}
.acc-inner li:first-child { margin-top: 0; }

/* ---------- Punishment tiers ---------- */
.punish-table {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.punish-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.punish-row:first-child { border-top: 0; }

.punish-row-head {
  background: rgba(240, 79, 234, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.punish-offense {
  font-weight: 600;
  color: #f1e8f5;
  font-size: 15px;
}

.tier-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tier-warn { background: rgba(255, 255, 255, 0.12); color: #e8e0ee; }
.tier-mute { background: rgba(233, 174, 0, 0.18); color: #f2c94c; }
.tier-ban { background: rgba(255, 70, 70, 0.18); color: #ff8080; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .rules-main { padding: 126px 0 80px; }
  .rules-title { font-size: 32px; }
  .rules-h2 { font-size: 24px; }
  .rules-section { margin-top: 52px; }
  .acc-head { padding: 0 18px; height: 56px; font-size: 15px; }
  .acc-inner { padding: 12px 18px 18px; }

  .punish-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .punish-row-head { display: none; }
}
