/* RuneNation theme: numbered Joomla pagination ONLY.
   Matches Joomla 3's <div class="pagination"><ul> and Bootstrap's <ul class="pagination">.
   Does not restyle navigation bars, article links, regular buttons or event ranking controls. */
html body ul.pagination,
html body div.pagination > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 7px 0 !important;
  margin: 18px auto 10px !important;
  list-style: none !important;
  max-width: 100%;
}
html body ul.pagination > li,
html body div.pagination > ul > li {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
}
html body ul.pagination > li > a,
html body ul.pagination > li > span,
html body div.pagination > ul > li > a,
html body div.pagination > ul > li > span {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 43px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border: 1px solid #b68132 !important;
  border-radius: 9px !important;
  background: #332013 !important;
  background-image: linear-gradient(180deg, #4a2d17 0%, #29180f 100%) !important;
  color: #f6dfa9 !important;
  font-size: 15px !important;
  font-family: inherit !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: none !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,229,166,.12), 0 2px 4px rgba(0,0,0,.25) !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
html body ul.pagination > li > a:hover,
html body div.pagination > ul > li > a:hover {
  border-color: #f0bf57 !important;
  background: #694014 !important;
  background-image: linear-gradient(180deg, #80511e, #4b2b13) !important;
  color: #fff5d5 !important;
  transform: translateY(-1px);
}
html body ul.pagination > li > a:focus-visible,
html body div.pagination > ul > li > a:focus-visible {
  outline: 3px solid #ffd66b !important;
  outline-offset: 3px !important;
  border-color: #ffd66b !important;
  box-shadow: 0 0 0 2px rgba(38,21,9,.9) !important;
}
/* Current page: a clearly distinct bright gold surface. */
html body ul.pagination > li.active > a,
html body ul.pagination > li.active > span,
html body ul.pagination > li > a[aria-current="page"],
html body div.pagination > ul > li.active > a,
html body div.pagination > ul > li.active > span,
html body div.pagination > ul > li > a[aria-current="page"] {
  border-color: #ffda78 !important;
  background: #e7ad3d !important;
  background-image: linear-gradient(180deg, #f5cc72, #d99720) !important;
  color: #211307 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 8px rgba(0,0,0,.25) !important;
  pointer-events: none;
  transform: none;
}
/* Disabled first/previous/next/end controls stay distinct, not blue. */
html body ul.pagination > li.disabled > a,
html body ul.pagination > li.disabled > span,
html body div.pagination > ul > li.disabled > a,
html body div.pagination > ul > li.disabled > span {
  border-color: #5d4630 !important;
  background: #291c14 !important;
  background-image: none !important;
  color: #ad987d !important;
  opacity: .75;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}
/* Guest notice: keep the existing event banner, only enhance its new link. */
html body .rn-guest-login-updated .rn-guest-account-link {
  color: #ffd775 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
html body .rn-guest-login-updated .rn-guest-account-link:hover {
  color: #fff6d3 !important;
}
html body .rn-guest-login-updated .rn-guest-account-link:focus-visible {
  outline: 2px solid #ffd775 !important;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  html body ul.pagination,
  html body div.pagination > ul {
    gap: 6px !important;
    padding: 6px 4px !important;
    margin: 16px auto !important;
  }
  html body ul.pagination > li > a,
  html body ul.pagination > li > span,
  html body div.pagination > ul > li > a,
  html body div.pagination > ul > li > span {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body ul.pagination > li > a,
  html body div.pagination > ul > li > a { transition: none !important; transform: none !important; }
}
