/* custom CSS for ArduPilot wiki */

/* Table in user alerts page */
table.useralerts-table td {
    white-space: normal;
}

 /* override table width restrictions */ 
 .wy-table-responsive table td, .wy-table-responsive table th { 
     white-space: normal; 
 } 
  
 .wy-table-responsive { 
     margin-bottom: 24px; 
     max-width: 100%; 
     overflow: visible; 
 } 
  
 .wy-table-responsive th p { 
     margin-bottom: unset; 
 } 
/* CSS for Partners logo list */
table.partners-table {
    width: 100%;
}

table.partners-table img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

table.partners-table td {
    background-color: #fff !important;
    height: 15vw;
}

@media screen and (min-width: 1660px) {
    table.partners-table td {
        height: 250px;
    }
}

@media screen and (max-width: 600px) {
    table.partners-table td {
        width: 100%;
        display: block;
        height: 20vw;
        border: 1px solid #e1e4e5 !important;
    }

    table.partners-table, table.partners-table tbody {
        display: block;
    }
}

/* account for wiki top menu when jumping to anchor links */
:target { scroll-margin-top: 40px; }

/* make certain toc sidebar items red */
.wy-menu .toctree-l1 a[href*="arduplane-setup.html"],
.wy-menu .toctree-l1 a[href*="first-flight-landing-page.html"],
.wy-menu .toctree-l1 a[href*="initial-setup.html"],
.wy-menu .toctree-l1 a[href*="flying-arducopter.html"],
.wy-menu .toctree-l1 a[href*="apmrover-setup.html"],
.wy-menu .toctree-l1 a[href*="rover-first-drive.html"],
.wy-menu .toctree-l1 a[href*="quadplane-setup.html"],
.wy-menu .toctree-l1 a[href*="quadplane-flying"],
.wy-menu .toctree-l1 a[href*="quadplane-tuning-landingpage"],
.wy-menu .toctree-l1 a[href*="traditional-helicopter-first-time-setup"],
.wy-menu .toctree-l1 a[href*="traditional-helicopter-first-flight"] {
    color: red;
    font-weight: bold;
}
