/**
 * New Theme — layout shell only (base styles from style.css).
 */

.new-theme--web .new-theme-web-shell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
}

/**
 * #sidebarleft in modern style.css uses position:fixed; left:-280px (ID wins over classes).
 * Force the web sidebar into the document flow.
 */
.new-theme--web #sidebarleft.new-theme__sidenav--web {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: min(22vw, 300px) !important;
    min-width: 240px !important;
    max-width: 320px;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    z-index: 5 !important;
    transform: none !important;
    transition: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background-color: #fff !important;
}

.new-theme--web #sidebarleft.new-theme__sidenav--web.active {
    left: 0 !important;
    transform: none !important;
}

.new-theme--web #sidebarleft.new-theme__sidenav--web ul {
    padding: 0.25rem 0 1.5rem !important;
}

.new-theme--web .new-theme-web-main {
    min-width: 0;
    min-height: 100vh;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.new-theme--web .new-theme__toolbar .new-theme__sidebar-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.new-theme--web .overlay {
    display: none !important;
}

.new-theme--web #content {
    flex: 1 1 auto;
}

/* Mobile template used padding-top for fixed navbar — web has its own header */
.new-theme--web #content.nt-web-content {
    padding: 0 !important;
    min-height: auto !important;
    margin: 0 !important;
    width: 100% !important;
}

.new-theme--web .nt-web-content__inner.content-wrap {
    min-height: auto !important;
    overflow: visible !important;
    max-width: none !important;
}

.new-theme--mobile .new-theme__sidenav--web {
    display: none;
}

.new-theme--mobile .new-theme-web-shell {
    display: block;
}

.new-theme__toolbar-title {
    font-weight: 600;
    margin-right: auto;
    padding-left: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-theme__site-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fa;
}

.new-theme__site-footer a {
    color: inherit;
    text-decoration: underline;
}
