/* Página do Regulamento do Clube Audax Bento. */
.rules-page .rules-hero {
  padding-bottom: 2.5rem;
}

.rules-hero .section-heading {
  margin-bottom: 0;
}

.rules-meta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.rules-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.rules-toc {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.rules-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.rules-toc h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.rules-toc ul {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  list-style: none;
}

.rules-toc ol {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rules-toc a {
  color: var(--text);
  text-decoration: none;
}

.rules-toc a:hover,
.rules-toc a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.rules-body {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  line-height: 1.65;
}

.rules-article {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.rules-article + .rules-article {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.rules-part {
  margin: 2.5rem 0 1.25rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-part:first-child {
  margin-top: 0;
}

.rules-article h2 {
  margin: 0 0 1rem;
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.3;
  color: var(--brand-strong);
}

.rules-article h2 span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.rules-article h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.02rem;
  color: var(--brand);
}

.rules-article p {
  margin: 0 0 0.75rem;
}

.rules-article ul {
  margin: 0 0 0.9rem;
  padding-left: 1.4rem;
}

.rules-article li {
  margin-bottom: 0.3rem;
}

.rules-note {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--surface-alt);
}

.rules-table {
  width: 100%;
  max-width: 34rem;
  margin: 0.25rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rules-table th,
.rules-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rules-table th {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.rules-table td:last-child {
  white-space: nowrap;
  font-weight: 700;
}

.rules-back {
  margin-top: 2rem;
}

@media (min-width: 960px) {
  .rules-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
  }

  .rules-toc {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .rules-toc,
  .rules-back,
  .skip-link {
    display: none;
  }

  .rules-layout {
    display: block;
  }

  .rules-body {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
