#abinb-nav.abinb-expanded {
    top: 0;
    left: 0;
    width: 90vw; /* mobile-friendly by default */
}

#abinb-nav.abinb-expanded > div {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    border: none; 
    height: 100vh;    
}
#abinb-nav nav a {
    color: rgb(var(--abinb-text-color));
}

/* tab panels */
#abinb-nav [role=tabpanel] {
    overflow: scroll;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 4rem;
}

#abinb-nav ul, #abinb-nav ol {
    margin: 0;
}

/* the tab buttons */

#abinb-list-of-navs {
    grid-area: abinb-buttons;
    padding: 0px;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#abinb-list-of-navs button[role=tab] {
    background: transparent;
    border: none;
    color: rgb(var(--abinb-icon-color));
    font-size: 65%;
    width: min-content;
    height: min-content;
}
#abinb-list-of-navs .abinb-iconify {
    width: calc(var(--icons) * .75);
    height: calc(var(--icons) * .75);
}
#abinb-list-of-navs button[role=tab][aria-selected=true] {
    cursor: default;
    opacity: 100%;
    border-bottom: .25rem solid rgb(var(--abinb-tab-focus-color));
    border-radius: 0;
}
#abinb-list-of-navs button[role=tab][aria-selected=false]:hover{
    cursor: pointer;
}
#abinb-list-of-navs button[role=tab] span {
    display: block;
}
#abinb-list-of-navs button[role=tab] > * {
    pointer-events: none;
}

#abinb-gotopage-error {
    margin: .5rem;
    font-size: smaller;
    
}
#abinb-search div, #abinb-page-list-wrapper > div > div {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}
#abinb-search input, #abinb-page-list-wrapper input {
    border-radius: 10px;
    line-height: 1.5;
    border: thin solid rgb(var(--abinb-text-color), .7);
}
#abinb-search input:hover, #abinb-page-list-wrapper input:hover {
    border: thin solid rgb(var(--abinb-tab-focus-color), 0.7);
}
#abinb-search input[type=search], #abinb-page-list-wrapper input[type=text] {
    flex-grow: 1;
    padding: 3px;
    font-size: 100%;
}
#abinb-search label, #abinb-page-list-wrapper label {
    position: absolute;
    visibility: hidden;
}
#abinb-search p, #abinb-page-list-wrapper p {
    font-style: italic;
    margin-top: 3rem;
}
#abinb-search input[type=button], #abinb-page-list-wrapper input[type=button] {
    font-size: 100%;
}
#abinb-page-list-wrapper p {
    display: block;
}
#abinb-about img {
    max-width: 90%;
    max-height: 20rem;
    margin: 1rem;
}
#abinb-about ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#abinb-about li span:first-child {
    font-weight: bold;
}

#abinb-search-results table {
    font-size: .9rem;
}
#abinb-search-results table tr {
   margin-bottom: 1rem;
}
#abinb-search-results table tr td:first-child {
    text-align: center;
}
#abinb-search-results table td {
    padding: .9rem;
}
#abinb-search-results table td:last-child {
    font-style: italic;
}
#abinb-search-results table td:nth-child(2):hover {
    border: 2px solid rgba(var(--abinb-search-highlight-color));
}
#abinb-search-results table th {
    position: sticky;
    top: 0;
    background-color: rgba(var(--abinb-page-background-color));
}

/* basically: non-narrow screens */
@media(min-width: 500px) {
    #abinb-nav.abinb-expanded {
        width: 40ch;
    }
}