img {
  max-width: 100%;
  height: auto;
}

table.docutils {
  width: 100%;
}

.wy-table-responsive table td:hover,
.wy-table-responsive table tr:hover {
    background-color: transparent !important;
}

.pinout-table tr:nth-child(1) td:nth-child(2) {
    background-color: white !important;
    color: black !important;
}
.pinout-table tr:nth-child(2) td:nth-child(2) {
    background-color: #5B3B1B !important;
    color: white !important;
}

.pinout-table tr:nth-child(3) td:nth-child(2) {
    background-color: green !important;
    color: black !important;
}

.pinout-table tr:nth-child(4) td:nth-child(2) {
    background-color: yellow !important;
    color: black !important;
}

.pinout-table tr:nth-child(5) td:nth-child(2) {
    background-color: grey !important;
    color: black !important;
}

.pinout-table tr:nth-child(6) td:nth-child(2) {
    background-color: pink !important;
    color: black !important;
}

.pinout-table tr:nth-child(7) td:nth-child(2) {
    background-color: #3973B6 !important;
    color: black !important;
}

.pinout-table tr:nth-child(8) td:nth-child(2) {
    background-color: #be322e !important;
    color: black !important;
}

.pinout-table tr:nth-child(9) td:nth-child(2) {
    background-color: orange !important;
    color: black !important;
}

.pinout-table tr:nth-child(10) td:nth-child(2) {
    background-color: #b72689 !important;
    color: black !important;
}

.pinout-table tr:nth-child(11) td:nth-child(2) {
    background-color: black !important;
    color: white !important;
}

.pinout-table tr:nth-child(12) td:nth-child(2) {
    background-color: purple !important;
    color: white !important;
}

.pinout-table tr:hover {
    background-color: transparent !important;
}

.pinout-table td:hover,
.pinout-table  th:hover {
    background-color: transparent !important;
}


.regular-table tr:hover {
    background-color: rgba(27, 98, 222, 0.1) !important;
}

.regular-table td:hover,
.regular-table  th:hover {
    background-color: rgba(0, 0, 0, 0.0) !important;
}

figure:has(> a.incorrect-placement-figure) {
  display: table;
  position: relative;
}

figure.align-center:has(> a.incorrect-placement-figure) {
  margin-left: auto;
  margin-right: auto;
}

figure:has(> a.incorrect-placement-figure) img {
  display: block;
}

figure:has(> a.incorrect-placement-figure)::before,
figure:has(> a.incorrect-placement-figure)::after {
  color: #c62828;
  content: "×";
  font-family: Arial, sans-serif;
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 800;
  left: 20px;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  bottom: 20px;
  transform-origin: center;
  z-index: 2;
}

.theme-switch-button,
.header-article-items__end .search-button__button {
  display: none !important;
}

:root {
  --geolux-primary: #232259;
  --geolux-secondary: #273b90;
  --geolux-accent: #273b90;
  --geolux-logo: #416ba9;
  --geolux-bg: #e6e6e6;
  --geolux-surface: #ffffff;
  --geolux-text: rgb(54, 54, 54);
  --geolux-border: #fff;
  --geolux-shadow: rgba(0, 0, 0, 0.0);
  --geolux-radius: 0;
}

html {
  --pst-font-family-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pst-font-family-heading: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pst-font-size-base: 1.0rem;
  --pst-font-size-h1: 2.2rem;
  --pst-font-size-h2: 1.8rem;
  --pst-font-size-h3: 1.25rem;
  --pst-color-primary: var(--geolux-secondary);
  --pst-color-primary-bg: rgba(39, 59, 144, 0.08);
  --pst-color-primary-highlight: #1f2f72;
  --pst-color-secondary: var(--geolux-accent);
  --pst-color-secondary-bg: rgba(40, 170, 225, 0.12);
  --pst-color-secondary-highlight: #128fc5;
  --pst-color-accent: var(--geolux-accent);
  --pst-color-link: var(--geolux-secondary);
  --pst-color-inline-code: var(--geolux-secondary);
  --pst-color-link-hover: var(--geolux-secondary) !important;
  --pst-color-text-base: var(--geolux-text) !important;
  --pst-color-text-muted: rgba(45, 42, 38, 0.72);
  --pst-color-heading: var(--geolux-primary);
  --pst-heading-color: var(--geolux-primary);
  --pst-color-background: var(--geolux-bg);
  --pst-color-on-background: var(--geolux-surface);
  --pst-color-surface: var(--geolux-surface);
  --pst-color-border: var(--geolux-border);
  --pst-color-shadow: var(--geolux-shadow);
  --pst-sidebar-font-size: 0.97rem;
  --pst-sidebar-font-size-mobile: 1rem;
}

body {
  color: var(--geolux-text) !important;
  font-family: var(--pst-font-family-base);
  font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--geolux-primary);
  font-family: var(--pst-font-family-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  color: var(--geolux-secondary);
}

h2 {
  border-bottom: 1px solid rgba(40, 40, 40, 0.15);
  padding-bottom: 0.25rem;
}

a {
  color: var(--geolux-secondary);
}

a:hover {
  color: var(--geolux-secondary);
}

a:visited,
a:visited:hover,
.reference.external:hover,
.reference.internal:hover,
.bd-links .nav-link:hover,
.bd-toc-nav a:hover {
  color: var(--geolux-secondary);
}

.sidebar-secondary-item {
  border-left: 0 !important;
}

.bd-sidebar-secondary {
  align-self: stretch;
  border-left: 1px solid rgba(39, 59, 144, 0.16);
  min-height: 100%;
  padding-left: 1rem;
}

.bd-sidebar-secondary .sidebar-secondary-items {
  padding-left: 0;
}

.search-button-field.search-button__button {
  border: 1px solid rgba(39, 59, 144, 0.18);
  border-radius: 999rem;
  color: var(--geolux-secondary);
}

.search-button-field.search-button__button:hover {
  border-color: rgba(39, 59, 144, 0.35);
  color: var(--geolux-secondary);
}

.bd-search .form-control,
.search-button__search-container .form-control {
  border: 1px solid rgba(39, 59, 144, 0.22);
  box-shadow: none;
}

.bd-search .form-control:focus,
.search-button__search-container .form-control:focus {
  border-color: var(--geolux-secondary);
  box-shadow: 0 0 0 0.2rem rgba(39, 59, 144, 0.12);
  outline: none;
}

.search-button__search-container {
  border-radius: 1rem;
}

.highlight .c1 {
  color: var(--geolux-secondary) !important;
}

.pre {
  color: var(--geolux-secondary) !important;
}

.search-button-field.search-button__button:hover {
  box-shadow: none !important;
}

.bd-search {
  border: 0 !important;
}

.toc-entry a.nav-link:hover {
  color: var(--geolux-secondary) !important;
}