body{
  max-width: 100vw;
  overflow-x: hidden;
}
.custom-pagination {
  text-align: center;
  margin-top: 20px;
}
.custom-pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 2px;
}
.custom-pagination li:not(:has(.prev)):not(:has(.next)) {
  order: 1;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-grey);
  border-radius: 100px;
  background-color: #fff0;
  transition: background-color 0.3s, color 0.3s;
}
.custom-pagination li:not(:has(.prev)):not(:has(.next)):hover,
.custom-pagination li span.current {
  background-color: #f9fafb;
  color: var(--color-grey-dark);
}
.custom-pagination li:has(.prev) {
  order: 0;
  margin-right: auto;
}
.custom-pagination li:has(.next) {
  order: 2;
  margin-left: auto;
}
.custom-pagination .prev,
.custom-pagination .next {
  box-shadow: 0 1px rgb(0 0 0 / 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background-color: var(--color-white);
  color: var(--color-grey-dark);
  border: 1px solid var(--color-border-grey);
  border-radius: 1000px;
}

article ul{
  list-style-type: disc;
  padding-left: 25px;
}

article ol{
  list-style-type: decimal;
  padding-left: 25px;
}

/* article h1 */
article h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

/* article h2 */
article h2 {
  font-size: 1.875rem;
  font-weight: bold;
  color: #6b21a8;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* article h3 */
article h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d4ed8;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* article h4 */
article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* article h5 */
article h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* article h6 */
article h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* article table */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
}

/* article tr (stripe effect) */
article tr:nth-child(even) {
  background-color: #f9fafb;
}

article tr:nth-child(odd) {
  background-color: #ffffff;
}

/* article th */
article th {
  background-color: #f3f4f6;
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
}

/* article td */
article td {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  vertical-align: top;
}

/* article table responsive wrapper */
article .table-wrapper {
  overflow-x: auto;
}

article pre code {
  display: block;
  padding: 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

/* media query for small screens */
@media screen and (max-width: 768px) {
  article table {
    width: 100%;
    min-width: 200px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  article th,
  article td {
    white-space: nowrap;
  }

  article pre code {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
}
