/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */
@import url(docbook.css);

body.book.toc2.toc-left {
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-areas:
        "header1  header1"
        "sidebar main"
        "sidebar  footer";
    background-color: #fff;
    color: #444;

    width: calc(100vw - 1.5rem);
    height: 100vh;
    overflow: hidden;
}
body.book.toc2.toc-left #header {
    display: contents;
}
body.book.toc2.toc-left #header h1 {
    grid-area: header1;
    text-align: center;
}
body.book.toc2.toc-left #header h1:hover + .details {
    display: inline-block;
}
body.book.toc2.toc-left #header .details {
    position: absolute;
    right: 0;
    top: 0;

    background-color: white;
    display: none;
    text-align: right;
    height: 1.5rem;
}
body.book.toc2.toc-left #toc {
    grid-area: sidebar;
    height: calc(100vh - 6rem);
    overflow-y: auto;
}
body.book.toc2.toc-left #content {
    grid-area: main;
    overflow-y: auto;
    height: calc(100vh - 8rem);
}
body.book.toc2.toc-left #footer {
    grid-area: footer;
}
