/*
FILE: /wp-content/mu-plugins/njoy/manual/assets/manual.css
PHASE 1 / SESSION 4
MANUAL UI
*/
/* =========================================
   ROOT
========================================= */
.njoy-manual-shell {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
}
/* =========================================
   SIDEBAR
========================================= */
.njoy-manual-sidebar {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
}
.njoy-manual-sidebar-inner {
    position: sticky;
    top: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-sizing: border-box;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
/* =========================================
   BRAND
========================================= */
.njoy-manual-brand {

    margin: 0 0 20px 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #edf0f3;

}
.njoy-manual-brand a {
 
    display: block;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
    line-height: 1.2;
    margin: 0;
    padding: 0;

}
/* =========================================
   NAV
========================================= */
.njoy-manual-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.njoy-manual-nav-item {
    border-radius: 10px;
    transition: all 0.2s ease;
}
.njoy-manual-nav-item a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.njoy-manual-nav-item:hover a {
    background: #f3f4f6;
    color: #111827;
}
/* ACTIVE */
.njoy-manual-nav-item.active a {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
}
/* EMPTY */
.njoy-manual-nav-empty {
    padding: 14px;
    color: #9ca3af;
    font-size: 14px;
}
/* =========================================
   CONTENT
========================================= */
.njoy-manual-content {
    /* flex: 1;  */

    flex: 1 1 auto;
    min-width: 0;
    width: 100%;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 32px 32px;
    box-sizing: border-box;

}
/* =========================================
   HEADER
========================================= */
.njoy-manual-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f3;
}
.njoy-manual-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}
/* =========================================
   BODY TYPOGRAPHY
========================================= */
.njoy-manual-body {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}
/* =========================================
   TYPOGRAPHY HIERARCHY
========================================= */
/* MAIN TITLE 
.njoy-manual-body > h1:first-child {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #e5e7eb;
}*/
/* SECTION TITLE */
.njoy-manual-body h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin-top: 28px;
    margin-bottom: 12px;
}
/* SUBSECTION */
.njoy-manual-body h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin-top: 20px;
    margin-bottom: 10px;
}
/* SMALL HEADING */
.njoy-manual-body h4,
.njoy-manual-body h5 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin-top: 16px;
    margin-bottom: 8px;
}

.njoy-manual-body p {
    margin: 0 0 14px;
}
.njoy-manual-body ul,
.njoy-manual-body ol {
    margin: 0 0 16px 22px;
}
.njoy-manual-body li {
    margin-bottom: 6px;
}
.njoy-manual-body a {
    color: #2563eb;
    text-decoration: none;
}
.njoy-manual-body a:hover {
    text-decoration: underline;
}
/* IMAGES */
.njoy-manual-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
/* TABLES */
.njoy-manual-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.njoy-manual-body table th,
.njoy-manual-body table td {
    border: 1px solid #d1d5db;
    padding: 10px;
    text-align: left;
}
/* CODE */
.njoy-manual-body pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 10px;
    background: #111827;
    color: #f9fafb;
    font-size: 14px;
}
.njoy-manual-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 0.95em;
}
/* =========================================
   HOME PAGE
========================================= */
.njoy-manual-home h1 {
    margin-top: 0;
    font-size: 34px;
    color: #111827;
}
.njoy-manual-home p {
    color: #6b7280;
    margin-bottom: 24px;
}
.njoy-manual-home-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.njoy-manual-home-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}
.njoy-manual-home-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.njoy-manual-home-item a {
    display: block;
    padding: 18px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
}
/* =========================================
   SCROLLBAR
========================================= */
.njoy-manual-sidebar-inner::-webkit-scrollbar {
    width: 8px;
}
.njoy-manual-sidebar-inner::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}
/* =========================================
   MOBILE
========================================= */
@media (max-width: 1024px) {
    .njoy-manual-shell {
        gap: 20px;
        padding: 24px 16px;
    }
    .njoy-manual-sidebar {
        width: 280px;
        min-width: 280px;
    }
    .njoy-manual-content {
        padding: 24px;
    }
    .njoy-manual-header h1 {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .njoy-manual-shell {
        flex-direction: column;
        padding: 16px;
    }
    .njoy-manual-sidebar {
        width: 100%;
        min-width: 100%;
    }
    .njoy-manual-sidebar-inner {
        position: relative;
        top: auto;
        max-height: none;
    }
    .njoy-manual-content {
        width: 100%;
        padding: 20px;
    }
    .njoy-manual-header h1 {
        font-size: 24px;
    }
    .njoy-manual-body {
        font-size: 15px;
    }
    .njoy-manual-home-list {
        grid-template-columns: 1fr;
    }
}

/*  additional 1 */
/* =========================================
   MOBILE TOGGLE
========================================= */
.njoy-manual-mobile-toggle {
    display: none;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}
/* =========================================
   MOBILE DRAWER
========================================= */
@media (max-width: 768px) {
    .njoy-manual-mobile-toggle {
        display: block;
    }
    .njoy-manual-sidebar {
        display: none;
    }
    .njoy-manual-sidebar.manual-open {
        display: block;
    }
}

/* patch    */
/* SEARCH */
.njoy-manual-search-wrap {
    margin-bottom: 20px;
}
#njoy-manual-search {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
}
/* PREV NEXT */
.njoy-manual-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.njoy-manual-prev-next a {
    flex: 1;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    transition: all 0.2s ease;
}
.njoy-manual-prev-next a:hover {
    background: #f3f4f6;
}
.manual-next {
    text-align: right;
}
/* look like betterDocs
FIRST HEADING INSIDE ARTICLE */
.njoy-manual-body > h1:first-child,
.njoy-manual-body > h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* MATCH ARTICLE TITLE TO SIDEBAR TITLE 
.njoy-manual-body > h1:first-child {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #edf0f3;
}
.njoy-manual-body > h1:first-child {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #e5e7eb;
    min-height: 72px;
    display: flex;
    align-items: flex-start;
}
.njoy-manual-body > h1:first-child {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    margin: 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e5e7eb;
    min-height: 96px;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}*/
.njoy-manual-body > h1:first-child {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 14px 0;
    padding: 0 0 14px 0;
    border-bottom: 1px solid #e5e7eb;
    display: block;
    min-height: unset;
    word-break: break-word;
    overflow-wrap: break-word;
}
