/*
 Theme Name:   Astra Child - Netway
 Theme URI:    https://help.evaluationnetway.com
 Description:  Astra child theme for Netway Help System with left TOC and right sidebar
 Author:       William Trochim
 Template:     astra
 Version:      1.5.0
*/

/* â”€â”€ Right sidebar layout (content + right sidebar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-content-with-right-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.netway-main-content {
    flex: 1;
    min-width: 0;
}
.netway-right-sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* â”€â”€ Left TOC â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-toc {
    font-size: 13px;
    line-height: 1.2;
}
.netway-toc-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3a6b10;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 2px solid #3a6b10;
}
.netway-toc-title a {
    color: #3a6b10;
    text-decoration: none;
}
.netway-toc-title a:hover {
    text-decoration: underline;
}

/* Top-level list */
.netway-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each nested level indents and adds a subtle left border */
.netway-toc-list .netway-toc-list {
    padding-left: 10px;
    border-left: 1px solid #c8ddb8;
    margin-left: 3px;
}

.netway-toc-item,
.netway-toc-list li,
.netway-toc-list li li,
.netway-toc-list li li li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.netway-toc-item > a {
    display: block;
    padding: 1px 3px !important;
    margin: 0 !important;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.25 !important;
}

.netway-toc-item > a:hover {
    color: #3a6b10;
    background: #eef5e8;
}

/* Current page highlight */
.netway-toc-item.netway-toc-current > a {
    color: #3a6b10;
    font-weight: 700;
    background: #dff0cc;
    border-left: 3px solid #3a6b10;
    padding-left: 4px;
}

/* â”€â”€ TOC item indicator symbols â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Default: leaf node â€” bullet â€¢ */
.netway-toc-item > a::before {
    content: "â€¢ ";
    font-size: 10px;
    color: #888;
    display: inline-block;
    width: 14px;
}

/* Has children, not expanded â€” right triangle â–¶ */
.netway-toc-item.netway-toc-has-children > a::before {
    content: "â–¶ ";
    font-size: 9px;
    color: #3a6b10;
    width: 14px;
}

/* Has children AND expanded â€” down triangle â–¼ */
.netway-toc-item.netway-toc-expanded > a::before,
.netway-toc-item.netway-toc-current.netway-toc-has-children > a::before {
    content: "â–¼ ";
    font-size: 9px;
    color: #3a6b10;
    width: 14px;
}

/* Depth-based font size reduction to reinforce hierarchy */
.netway-toc-list.depth-0 > .netway-toc-item > a { font-size: 13px; font-weight: 600; }
.netway-toc-list.depth-1 > .netway-toc-item > a { font-size: 12.5px; }
.netway-toc-list.depth-2 > .netway-toc-item > a { font-size: 12px; }
.netway-toc-list.depth-3 > .netway-toc-item > a { font-size: 11.5px; color: #555; }
.netway-toc-list.depth-4 > .netway-toc-item > a { font-size: 11px; color: #666; }

/* â”€â”€ Right sidebar section boxes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-sidebar-section {
    background: #f2f7ee;
    border: 1px solid #c8ddb8;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.netway-sidebar-section h3 {
    background: #4a7c1f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    padding: 8px 14px;
}
.netway-sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.netway-sidebar-section ul li {
    padding: 6px 14px;
    border-bottom: 1px solid #daeace;
    font-size: 13px;
    line-height: 1.4;
}
.netway-sidebar-section ul li:last-child {
    border-bottom: none;
}

/* â”€â”€ Presentations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-presentation-title {
    color: #3a6b10;
    font-weight: 500;
}
.netway-presentation-title a {
    color: #3a6b10;
    text-decoration: none;
    font-weight: 500;
}
.netway-presentation-title a:hover {
    text-decoration: underline;
}
.netway-presentation-title::before {
    content: "â–¶ ";
    font-size: 10px;
    color: #3a6b10;
}
.netway-presentation-duration {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

/* â”€â”€ Guiding Documents â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-doc-link a {
    color: #3a6b10;
    text-decoration: none;
    font-weight: 500;
}
.netway-doc-link a:hover {
    text-decoration: underline;
}
.netway-doc-link a::before {
    content: "ðŸ“„ ";
    font-size: 12px;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
    .netway-content-with-right-sidebar {
        flex-direction: column;
    }
    .netway-right-sidebar {
        width: 100%;
    }
}

/* â”€â”€ Astra header bar â€” green background, white text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header,
.ast-primary-header-bar,
#masthead {
    background-color: #4a7c1f !important;
}
.site-title a,
.site-title a:hover,
.ast-site-identity a {
    color: #ffffff !important;
}
.main-header-menu .menu-link,
.main-header-menu .menu-link:hover,
#ast-hf-menu-1 .menu-link {
    color: #ffffff !important;
}

/* â”€â”€ Page title and subheadings â€” dark green â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #3a6b10 !important;
}

/* â”€â”€ Left TOC sidebar background â€” light green tint â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#secondary,
.widget-area,
.sidebar-main {
    background-color: #f2f7ee !important;
    border-right: 1px solid #c8ddb8;
}

/* â”€â”€ Fix left sidebar â€” remove full background, only tint the TOC widget â”€â”€â”€ */
#secondary,
.widget-area,
.sidebar-main {
    background-color: transparent !important;
    border-right: none !important;
}
.widget_netway_toc_widget {
    background-color: #f2f7ee !important;
    border: 1px solid #c8ddb8 !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

/* â”€â”€ Fix right sidebar headers â€” light green bg, dark green text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-sidebar-section h3 {
    background: #dff0cc !important;
    color: #3a6b10 !important;
}

/* â”€â”€ TOC title background â€” match current page highlight color â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.netway-toc-title {
    background-color: #dff0cc !important;
    padding: 6px 8px !important;
    border-radius: 3px !important;
    margin-bottom: 6px !important;
}
/* -- Content headings — correct size and green color ----------------------- */
.entry-content h1,
.entry-content h1 a,
.entry-content h2,
.entry-content h2 a,
.entry-content h3,
.entry-content h3 a,
.entry-content h4,
.entry-content h4 a {
    color: #3a6b10 !important;
    text-decoration: none;
}

.entry-content h1 { font-size: 1.3em;  font-weight: 600; margin: 1.2em 0 0.5em; }
.entry-content h2 { font-size: 1.1em;  font-weight: 600; margin: 1.2em 0 0.4em; }
.entry-content h3 { font-size: 1.0em;  font-weight: 600; margin: 1em 0 0.4em; }
.entry-content h4 { font-size: 0.95em; font-weight: 600; margin: 1em 0 0.3em; }

/* -- Content body links — green, no underline ------------------------------ */
.entry-content a {
    color: #3a6b10 !important;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}
/* -- Tighten vertical spacing in main content area ------------------- */
.entry-content p {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    line-height: 1.5;
}

.entry-content ul,
.entry-content ol {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.entry-content li {
    margin-bottom: 0.2em;
    line-height: 1.5;
}

.entry-content td,
.entry-content th {
    line-height: 1.4;
    padding: 4px 6px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 0.8em;
    margin-bottom: 0.3em;
}
/* -- Q&A section ----------------------------------------------------------- */
.netway-qa-item {
    border-left: 3px solid #4a7c1f;
    margin: 0 0 16px 0;
    padding: 10px 14px;
    background: #f2f7ee;
    border-radius: 0 4px 4px 0;
}
.netway-qa-question {
    margin: 0 0 6px 0;
    color: #3a6b10;
}
.netway-qa-answer {
    margin: 0;
    color: #333;
}
.netway-qa-answer p {
    margin: 0;
}