/* Live Doxygen catalogue; site.js retains the existing responsive drawer and local search. */
body.knowledge-live #side-nav{position:fixed!important;top:0;bottom:0;height:100vh!important;display:flex!important;flex-direction:column;overflow:hidden}
body.knowledge-live #side-nav #top{flex:0 0 auto}
body.knowledge-live #nav-tree{flex:1 1 auto;min-height:0;overflow-y:auto!important}
body.knowledge-live #container{display:block;min-width:0;height:auto!important;overflow:visible}
body.knowledge-live #doc-content{min-width:0;height:auto!important;overflow:visible}
body.knowledge-live #page-nav{display:none!important}
body.knowledge-live .mobile-local-search{display:block;position:relative!important;top:auto!important;margin:.75rem 1rem;padding:.7rem}
body.knowledge-live .contents p{max-width:none;text-align:justify;word-break:normal;overflow-wrap:break-word}
.knowledge-catalog-nav,.knowledge-page-outline{padding:.35rem .5rem;direction:rtl}
.knowledge-catalog-nav>a,.knowledge-catalog-nav li>a{display:block!important;padding:.5rem .6rem!important;border-radius:.5rem;font-size:14px;line-height:1.85;text-decoration:none;overflow-wrap:break-word;white-space:normal}
.knowledge-catalog-nav a:hover,.knowledge-catalog-nav a[aria-current=page]{background:#e7edf5;color:#123f6b!important}
.knowledge-catalog-nav a[aria-current=page]{font-weight:700;border-inline-start:3px solid #123f6b}
.knowledge-catalog-nav details{margin:.55rem 0;border-block-end:1px solid #dce4ed}
.knowledge-catalog-nav summary{padding:.55rem .2rem;cursor:pointer;font-weight:700;line-height:1.85}
.knowledge-catalog-nav ul{padding-inline-start:.65rem!important}
.knowledge-word-search{display:flex;flex-wrap:wrap;gap:.45rem;padding:.6rem}
.knowledge-word-search label{flex-basis:100%;font-size:13px}
.knowledge-live #MSearchField{min-width:0;width:100%;height:44px;box-sizing:border-box;flex:1 1 140px;margin:0;padding:.55rem;border:1px solid #b9cadb;border-radius:.45rem;background:#fff;color:#17324d;font-size:16px;line-height:1.6}
.knowledge-word-search button{min-height:44px;padding:.55rem .65rem;border:0;border-radius:.45rem;color:#fff;background:#123f6b;font:inherit;cursor:pointer}
.knowledge-live .table-scroll{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.knowledge-live .contents .table-scroll>table{width:100%;min-width:600px;table-layout:auto;border-collapse:collapse;direction:rtl}
.knowledge-live .contents .table-scroll th,.knowledge-live .contents .table-scroll td{word-break:normal;overflow-wrap:normal;white-space:normal;padding:.65rem;vertical-align:top;border:1px solid #dce4ed;line-height:1.85;text-align:start}
.knowledge-live .contents .table-scroll th{background:#eaf0f6;font-weight:700}
.knowledge-live .contents .table-scroll :is(th,td) :is(p,li){text-align:start;text-align-last:auto;word-break:normal;overflow-wrap:normal}
.knowledge-live .guide-pagination{display:flex;gap:.75rem;justify-content:space-between;margin-block:2rem;flex-wrap:wrap}
.knowledge-live .guide-pagination a{min-width:0;flex:1 1 220px;overflow-wrap:break-word}
.knowledge-live .guide-crumb{margin-block:.65rem}
.knowledge-live .gallery-card{break-inside:avoid}
.knowledge-live .gallery-card img{display:block;width:100%;height:auto;object-fit:contain}
@media(min-width:1500px){body.knowledge-live #container{display:grid;grid-template-columns:minmax(0,1fr) 240px}body.knowledge-live #page-nav{display:block!important;position:sticky;align-self:start;top:0;width:auto;max-width:100%;box-sizing:border-box;height:100vh;overflow:auto}.knowledge-page-outline li{margin:.55rem 0}.knowledge-page-outline a{line-height:1.85}}
@media(max-width:900px){body.knowledge-live #side-nav{top:58px!important;height:calc(100vh - 58px)!important}body.knowledge-live #container{display:block!important}}
@media(max-width:600px){.knowledge-live .contents .table-scroll>table{font-size:14px}.knowledge-live .contents .table-scroll th,.knowledge-live .contents .table-scroll td{padding:.5rem}.knowledge-live .guide-pagination{flex-direction:column}.knowledge-live .guide-pagination a{flex-basis:auto}}
@media print{body.knowledge-live #side-nav,body.knowledge-live #page-nav,.knowledge-live .mobile-local-search{display:none!important}body.knowledge-live #doc-content{margin:0!important}.knowledge-live .table-scroll{overflow:visible}.knowledge-live .contents .table-scroll>table{min-width:0}.knowledge-live .guide-pagination{display:none}}

/* One nested document outline; the compact copy remains available on phones and tablets. */
.knowledge-live #page-nav-tree{display:block;width:auto}
.knowledge-live #page-nav-contents{position:static;height:auto;min-height:0;width:auto;overflow:visible}
.knowledge-page-outline ol{list-style:none;padding:0;margin:.5rem 0}
.knowledge-page-outline ol ol{list-style:disc;padding-inline-start:1.1rem;border-inline-start:1px solid #dce4ed}
.knowledge-page-outline li{margin:.35rem 0;padding-inline-start:.1rem;line-height:1.85}
.knowledge-page-outline a{display:block;padding:.2rem 0;color:#244764;text-decoration:none;overflow-wrap:break-word}
.knowledge-page-outline a:hover,.knowledge-page-outline a:focus-visible{color:#082f57;text-decoration:underline}
.knowledge-mobile-outline{margin:1rem clamp(.75rem,3vw,2rem);padding:.65rem 1rem;border:1px solid #dce4ed;border-radius:.75rem;background:#fff}
.knowledge-mobile-outline>summary{cursor:pointer;font-weight:700;line-height:1.9}
.knowledge-mobile-outline .knowledge-page-outline>b{display:none}
.knowledge-mobile-outline[open] .knowledge-page-outline{max-height:50vh;overflow:auto;overscroll-behavior:contain}
.knowledge-learning-list{list-style:decimal;margin:1rem 0 2rem;padding-inline-start:2rem;counter-reset:none}
.knowledge-learning-list>li{padding:.8rem .9rem;margin:.65rem 0;border:1px solid #dce4ed;border-radius:.7rem;background:#fff;line-height:1.85}
.knowledge-learning-list>li::marker{font-weight:700;color:#315a7d}
.knowledge-learning-list a{display:flex;align-items:baseline;gap:.4rem .8rem;flex-wrap:wrap;text-decoration:none}
.knowledge-learning-list a b{flex:1 1 240px;min-width:0;overflow-wrap:break-word}
.knowledge-learning-list a span{font-size:.8rem;color:#557087}
.knowledge-learning-list p{font-size:.9rem;margin:.35rem 0 0;color:#557087}
.knowledge-order-note{color:#557087}
@media(min-width:1500px){.knowledge-mobile-outline{display:none}}
@media(max-width:600px){.knowledge-learning-list{padding-inline-start:1.5rem}.knowledge-learning-list>li{padding:.65rem}.knowledge-mobile-outline{padding:.55rem .7rem}}
@media print{.knowledge-mobile-outline{display:none}}

/* Knowledge tables: center cell contents vertically. Justify wrapped body text;
   keep single lines and the final line centered without stretching short values.
   This must outrank the Word import's paragraph text-align:start!important. */
body.knowledge-live #doc-content .contents .table-scroll :is(th,td){
 vertical-align:middle;
}
body.knowledge-live #doc-content .contents .table-scroll td,
body.knowledge-live #doc-content .contents .table-scroll td :is(p,li,blockquote){
 text-align:justify!important;
 text-align-last:center;
 text-justify:inter-word;
}
body.knowledge-live #doc-content .contents .table-scroll th,
body.knowledge-live #doc-content .contents .table-scroll th :is(p,li,blockquote){
 text-align:center!important;
 text-align-last:center;
}
/* Technical labels may wrap onto two lines; keep their word spacing natural. */
body.knowledge-live #doc-content .contents .table-scroll td.knowledge-table-value,
body.knowledge-live #doc-content .contents .table-scroll td .knowledge-table-value{
 text-align:center!important;
 text-align-last:center;
}
/* Remove trailing paragraph space that otherwise makes centered text sit high. */
body.knowledge-live #doc-content .contents .table-scroll :is(th,td)>:first-child{margin-block-start:0}
body.knowledge-live #doc-content .contents .table-scroll :is(th,td)>:last-child{margin-block-end:0}
/* Preserve dedicated image and code/math alignment and all existing dir rules. */
body.knowledge-live #doc-content .contents .table-scroll :is(th,td) p.word-image-block{
 text-align:center!important;
 text-align-last:center!important;
}
body.knowledge-live #doc-content .contents .table-scroll :is(th,td) :is(pre,.fragment,.math-scroll,math){
 text-align:start!important;
 text-align-last:auto!important;
}

/* UI-8: keep Persian manual titles on the existing modern UI font. */
.hp-manual-title,.hp-manual-title *{font-family:Vazirmatn,TrainingVazirmatn,HiPowerPersianUI,Tahoma,Arial,sans-serif!important;letter-spacing:normal!important;font-weight:700;word-break:normal!important;overflow-wrap:normal!important;line-height:1.8!important}
