.rules-page{
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rules-header h1{
  text-align:center;
  margin-bottom: 12px;
}

.rules-lead{
  text-align:center;
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 8px 0;
}

.rules-divider{
  margin: 26px 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.rules-section{
  margin: 22px 0;
}

.rules-list{
  padding-left: 1.2rem;
}

.rules-list-sub{
  padding-left: 1.2rem;
  margin-top: 8px;
}

.rules-bullets{
  padding-left: 1.2rem;
}

.rules-page a{
  text-decoration: underline;
}

/* ---------------- Rules page link contrast fixes ---------------- */

.rules-page a {
  color: #ffffff;              /* readable on dark background */
  text-decoration: underline;
}

.rules-page a:hover,
.rules-page a:focus {
  color: #9fd3ff;              /* light blue hover (accessible) */
  text-decoration: underline;
}

/* Optional: links inside header area slightly brighter */
.rules-header a {
  color: #e6f2ff;
}

.rules-header a:hover {
  color: #b8dcff;
}

.rules-note {
  background: rgba(255, 80, 80, 0.12);
  border-left: 4px solid #ff4c4c;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
}

.rules-note-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 80, 80, 0.18);
  border: 1px solid rgba(255, 80, 80, 0.35);
  font-weight: 700;
}

/* Tabs container */
.rules-tabs.rules-tabs--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                 /* separation between items */
  justify-content: center;
  margin: 14px 0 18px;
}

/* Each tab */
.rules-tabs.rules-tabs--pills .rules-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);   /* readable on dark */
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

/* Hover */
.rules-tabs.rules-tabs--pills a.rules-tab:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-1px);
}

/* Active (current section) */
.rules-tabs.rules-tabs--pills .rules-tab.active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.40);
  color: #fff;
  font-weight: 800;
}

/* Optional: focus ring for keyboard nav */
.rules-tabs.rules-tabs--pills a.rules-tab:focus {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
}

/* Only the "More Information" area */
.rules-page .rules-content .rules-more a {
  color: #0a84ff;
  text-decoration: underline;
}

/* --- Force readable links in the "More Information" section --- */
.rules-page .rules-more a,
.rules-page .rules-more a:visited {
  color: #0a84ff !important;
  text-decoration: underline;
}

.rules-page .rules-more a:hover,
.rules-page .rules-more a:focus {
  color: #006dd9 !important;
}