/* Mobile menu refinements */

#overlay.overlay {
    background: #10141b;
}

#overlay.overlay.open {
    opacity: 1;
}

.overlay-menu {
    padding: 0 1rem 1rem;
    overflow-y: auto;
}

.overlay-menu > .treemenu {
    margin: 0;
}

.overlay-menu .treemenu li {
    background: transparent;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-menu .treemenu li > a {
    margin: 0;
    padding: 1rem 0.25rem;
    color: #fff;
    font-size: 1.25rem;
}

.overlay-menu .treemenu li > a:hover,
.overlay-menu .treemenu li > a:focus,
.overlay-menu .treemenu li > a.active {
    color: #3e8def !important;
}

/* Hide the "•" placeholder shown for links without sub-items */
.overlay-menu .treemenu li.tree-empty > .toggler {
    display: none;
}

.overlay-menu .treemenu ul {
    margin: 0 0 0 1rem;
}

.mobile-logo {
    padding: 1rem 1.4rem 0.5rem;
}

.mobile-logo img,
.mobile-logo svg {
    margin: 0;
}

/* Tables in post content */

.e-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.e-content th,
.e-content td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e7e9ed;
    text-align: left;
    vertical-align: top;
}

.e-content thead th {
    border-bottom: 2px solid #3e8def;
    font-weight: 600;
    white-space: nowrap;
}

.e-content tbody tr:nth-child(even) {
    background: #f7f8f9;
}

.e-content td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.e-content td code {
    white-space: nowrap;
}

/* Collection page */

.collection-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.collection-page th,
.collection-page td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e7e9ed;
    text-align: left;
    vertical-align: top;
}

.collection-page thead th {
    border-bottom: 2px solid #3e8def;
    font-weight: 600;
    white-space: nowrap;
}

.collection-page tbody tr:nth-child(even) {
    background: #f7f8f9;
}

.collection-page td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .collection-page {
        overflow-x: auto;
    }

    .collection-page table {
        min-width: 42rem;
    }
}
