/* Extracted from WP inline blocks and page-specific overrides */

div#toc_container {
  background: #1A1A1A;
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 8px;
  padding: 16px 18px;
  color: #E8E8E8;
}

a.main-banner {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.main-banner {
  background-image: url('../img/au77-banner.webp');
  background-color: #0A0A0A;
}

.main-text-content .bt-table-scroll-wrap table thead th {
  color: #FFFFFF;
  background-color: #1A1A1A;
  border-bottom: 2px solid #4CAF50;
}

.main-text-content .bt-table-scroll-wrap table tbody tr:nth-child(even) {
  color: #E8E8E8;
  background-color: #222222;
}

.main-text-content .bt-table-scroll-wrap table tbody tr:nth-child(odd) {
  color: #E8E8E8;
  background-color: #1A1A1A;
}

.main-text-content .bt-table-scroll-wrap table tbody tr:hover {
  color: #FFFFFF;
  background-color: #2A2A2A;
}

.bt-table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bt-table-scroll-wrap table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.bt-table-scroll-wrap table th,
.bt-table-scroll-wrap table td {
  white-space: nowrap;
}

.main-text-content table {
  width: 100%;
  margin: 20px auto;
}

.main-text-content thead {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
}

.main-text-content th,
.main-text-content td {
  padding: 10px;
}

/* Table of contents toggle */
#toc_container > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: #FFFFFF;
}

#toc_container .toc-toggle-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #4CAF50;
}

#toc_container > ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

#toc_container > ul li {
  list-style: none;
}

#toc_container > ul a {
  color: #4CAF50;
}

#toc_container > ul a:hover {
  color: #66BB6A;
}

#toc_container.toc-expanded > ul {
  display: block;
  margin-top: 1em;
}
