*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0B1220;--navy-800:#1B2433;--navy-700:#253040;--navy-600:#2e3b4e;
  --blue:#2155F5;--blue-light:#4d77f7;--blue-pale:#7a9af9;--blue-100:#e8effe;--blue-050:#f0f4ff;
  --white:#fff;--grey-50:#F8F9FB;--grey-100:#F2F4F7;--grey-200:#d4d8de;--grey-300:#b0b8c4;--grey-400:#8A94A6;
  --text:#0B1220;--text-secondary:#4a5568;--text-muted:#8A94A6;
  --green:#16a34a;--green-100:#dcfce7;--amber:#d97706;--amber-100:#fef3c7;
  --radius-sm:8px;--radius-md:12px;--radius-lg:16px;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.07);--shadow-md:0 4px 16px rgba(0,0,0,0.08);--shadow-lg:0 12px 40px rgba(0,0,0,0.12);
  --sidebar-width:288px;--header-height:60px;--role-bar-height:44px;
}
html,body{height:100%;font-family:'DM Sans',sans-serif;color:var(--text);background:var(--grey-50);-webkit-font-smoothing:antialiased}

/* ── HEADER ── */
.header{position:fixed;top:0;left:0;right:0;height:var(--header-height);background:var(--navy);border-bottom:1px solid rgba(255,255,255,0.06);display:flex;align-items:center;padding:0 20px;gap:14px;z-index:200}
.header-logo{display:flex;align-items:center;gap:9px;text-decoration:none;flex-shrink:0}
.header-logo-name{font-family:'Figtree',sans-serif;font-size:17px;font-weight:700;color:var(--white)}
.header-logo-badge{font-size:10px;font-weight:700;letter-spacing:0.5px;color:var(--blue-pale);background:rgba(33,85,245,0.15);border:1px solid rgba(33,85,245,0.25);border-radius:4px;padding:2px 7px}
.header-div{width:1px;height:20px;background:rgba(255,255,255,0.1);flex-shrink:0}
.header-search{flex:1;max-width:480px;position:relative}
.header-search-input{width:100%;height:36px;background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.12);border-radius:var(--radius-sm);padding:0 12px 0 36px;font-size:13.5px;font-family:'DM Sans',sans-serif;color:var(--white);outline:none;transition:border-color 0.15s,background 0.15s}
.header-search-input::placeholder{color:var(--grey-400)}
.header-search-input:focus{border-color:rgba(33,85,245,0.5);background:rgba(255,255,255,0.1)}
.search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--grey-400);pointer-events:none}
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);display:none;z-index:300;max-height:400px;overflow-y:auto}
.search-results.visible{display:block}
.sr-item{padding:11px 16px;cursor:pointer;border-bottom:1px solid var(--grey-100);transition:background 0.1s}
.sr-item:last-child{border-bottom:none}
.sr-item:hover{background:var(--blue-050)}
.sr-title{font-size:13.5px;font-weight:600;color:var(--text);margin-bottom:2px}
.sr-meta{font-size:11.5px;color:var(--text-muted)}
.sr-empty{padding:20px;text-align:center;font-size:13px;color:var(--text-muted)}
.header-spacer{flex:1}
.header-applink{font-size:12px;font-weight:600;color:var(--grey-300);text-decoration:none;white-space:nowrap;transition:color 0.15s}
.header-applink:hover{color:var(--white)}
.mobile-menu-btn{display:none;background:none;border:none;cursor:pointer;color:var(--white);padding:4px}

/* ── ROLE BAR ── */
.role-bar{position:fixed;top:var(--header-height);left:0;right:0;height:var(--role-bar-height);background:var(--white);border-bottom:1px solid var(--grey-200);display:flex;align-items:center;padding:0 20px;gap:8px;z-index:150;overflow-x:auto}
.role-label{font-size:12px;font-weight:600;color:var(--text-muted);margin-right:4px;white-space:nowrap;flex-shrink:0}
.role-btn{height:28px;padding:0 14px;border-radius:20px;border:1.5px solid var(--grey-200);background:var(--white);font-size:12px;font-weight:600;color:var(--text-muted);cursor:pointer;font-family:'DM Sans',sans-serif;transition:all 0.15s;display:flex;align-items:center;gap:5px;white-space:nowrap;flex-shrink:0}
.role-btn:hover{border-color:var(--blue);color:var(--blue)}
.role-btn.active-all{background:var(--grey-100);border-color:var(--grey-300);color:var(--text)}
.role-btn.active-admin{background:var(--blue);border-color:var(--blue);color:var(--white)}
.role-btn.active-supervisor{background:#7c3aed;border-color:#7c3aed;color:var(--white)}
.role-btn.active-billing{background:var(--amber);border-color:var(--amber);color:var(--white)}
.role-btn.active-contractor{background:var(--green);border-color:var(--green);color:var(--white)}
.rb-spacer{flex:1}
.version-pill{font-size:11px;color:var(--text-muted);background:var(--grey-100);border:1px solid var(--grey-200);border-radius:20px;padding:2px 10px;font-weight:500;flex-shrink:0}

/* ── LAYOUT ── */
.layout{display:flex;padding-top:calc(var(--header-height) + var(--role-bar-height));min-height:100vh}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(11,18,32,0.5);z-index:170;backdrop-filter:blur(2px)}
.sidebar-overlay.visible{display:block}

/* ── SIDEBAR ── */
.sidebar{width:var(--sidebar-width);flex-shrink:0;position:fixed;top:calc(var(--header-height) + var(--role-bar-height));bottom:0;left:0;background:var(--white);border-right:1px solid var(--grey-200);overflow-y:auto;padding:12px 0 24px;transition:transform 0.25s;z-index:180}
.sidebar::-webkit-scrollbar{width:3px}
.sidebar::-webkit-scrollbar-thumb{background:var(--grey-200);border-radius:2px}

/* section headers */
.sb-section{margin-bottom:2px}
.sb-section-hdr{display:flex;align-items:center;justify-content:space-between;padding:7px 14px;cursor:pointer;user-select:none}
.sb-section-hdr:hover{background:var(--grey-50)}
.sb-section-title{font-size:11px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;color:var(--text-muted);display:flex;align-items:center;gap:7px}
.sb-chevron{color:var(--grey-300);transition:transform 0.18s;flex-shrink:0}
.sb-section.open .sb-chevron{transform:rotate(90deg)}
.sb-items{display:none;padding:2px 0 4px}
.sb-section.open .sb-items{display:block}

/* subsections */
.sb-subsection{margin-bottom:1px}
.sb-subsection-hdr{display:flex;align-items:center;justify-content:space-between;padding:6px 14px 6px 28px;cursor:pointer;user-select:none}
.sb-subsection-hdr:hover{background:var(--grey-50)}
.sb-subsection-title{font-size:12px;font-weight:600;color:var(--text-secondary)}
.sb-sub-chevron{color:var(--grey-300);transition:transform 0.18s;flex-shrink:0}
.sb-subsection.open .sb-sub-chevron{transform:rotate(90deg)}
.sb-sub-items{display:none}
.sb-subsection.open .sb-sub-items{display:block}

/* items */
.sb-item{display:block;padding:6px 14px 6px 40px;font-size:13px;color:var(--text-secondary);cursor:pointer;transition:all 0.1s;border-left:2px solid transparent;text-decoration:none;line-height:1.4}
.sb-item:hover{color:var(--text);background:var(--grey-50)}
.sb-item.active{color:var(--blue);background:var(--blue-050);border-left-color:var(--blue);font-weight:600}

.sb-divider{height:1px;background:var(--grey-100);margin:8px 14px}
.sb-hidden{display:none}

/* ── CONTENT ── */
.content{margin-left:var(--sidebar-width);flex:1;min-width:0;padding:40px 52px 80px;max-width:880px}

/* ── BREADCRUMB ── */
.breadcrumb{display:flex;align-items:center;gap:6px;margin-bottom:24px;font-size:12.5px;color:var(--text-muted);flex-wrap:wrap}
.breadcrumb a{color:var(--text-muted);text-decoration:none;transition:color 0.15s}
.breadcrumb a:hover{color:var(--blue)}
.bc-sep{color:var(--grey-300)}
.bc-cur{color:var(--text-secondary);font-weight:500}

/* ── ARTICLE ── */
.article-header{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--grey-200)}
.article-meta{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.role-badge{font-size:11px;font-weight:700;padding:2px 10px;border-radius:20px;letter-spacing:0.3px}
.rb-all{background:var(--grey-100);color:var(--text-muted)}
.rb-admin{background:var(--blue-100);color:var(--blue)}
.rb-supervisor{background:#ede9fe;color:#7c3aed}
.rb-billing{background:var(--amber-100);color:var(--amber)}
.rb-contractor{background:var(--green-100);color:var(--green)}
.article-updated{font-size:12px;color:var(--text-muted)}
.article-id{font-size:11px;font-family:monospace;color:var(--grey-300);background:var(--grey-100);padding:1px 6px;border-radius:4px}
.article-title{font-family:'Figtree',sans-serif;font-size:clamp(22px,3vw,30px);font-weight:800;color:var(--text);letter-spacing:-0.5px;line-height:1.2;margin-bottom:12px}
.article-intro{font-size:15.5px;color:var(--text-secondary);line-height:1.7;padding:14px 18px;background:var(--blue-050);border-left:3px solid var(--blue);border-radius:0 var(--radius-sm) var(--radius-sm) 0}

/* ── ARTICLE BODY ── */
.article-body{font-size:15px;line-height:1.75;color:var(--text-secondary)}
.article-body h2{font-family:'Figtree',sans-serif;font-size:19px;font-weight:700;color:var(--text);margin:32px 0 12px;letter-spacing:-0.3px}
.article-body h3{font-family:'Figtree',sans-serif;font-size:16px;font-weight:700;color:var(--text);margin:24px 0 8px}
.article-body p{margin-bottom:14px}
.article-body strong{font-weight:600;color:var(--text)}
.article-body ul{margin:12px 0 16px 20px;display:flex;flex-direction:column;gap:6px}
.article-body li{font-size:14.5px;color:var(--text-secondary);line-height:1.6}

/* steps */
.steps{display:flex;flex-direction:column;gap:0;margin:20px 0}
.step{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--grey-100)}
.step:last-child{border-bottom:none}
.step-num{width:30px;height:30px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;font-family:'Figtree',sans-serif;font-size:13px;font-weight:700;color:var(--white);flex-shrink:0;margin-top:2px;box-shadow:0 2px 8px rgba(33,85,245,0.28)}
.step-body{flex:1;min-width:0}
.step-title{font-family:'Figtree',sans-serif;font-size:15px;font-weight:700;color:var(--text);margin-bottom:5px}
.step-desc{font-size:14px;color:var(--text-secondary);line-height:1.65;margin-bottom:10px}
.step-img{width:100%;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:var(--radius-md);overflow:hidden;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}
.step-img-icon{width:32px;height:32px;background:var(--grey-200);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:var(--grey-400)}
.step-img-label{font-size:12px;color:var(--grey-400);font-weight:500}

/* callouts */
.callout{display:flex;gap:10px;padding:13px 16px;border-radius:var(--radius-md);margin:18px 0;font-size:13.5px;line-height:1.6}
.callout-tip{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.callout-note{background:var(--blue-050);border:1px solid var(--blue-100);color:#1e40af}
.callout-warn{background:var(--amber-100);border:1px solid #fde68a;color:#92400e}
.callout-icon{flex-shrink:0;font-size:15px;line-height:1.5}
.callout strong{font-weight:700}

/* related */
.related{margin-top:44px;padding-top:28px;border-top:1px solid var(--grey-200)}
.related-title{font-size:12px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;color:var(--text-muted);margin-bottom:14px}
.related-links{display:flex;flex-direction:column;gap:7px}
.related-link{display:flex;align-items:center;gap:10px;padding:11px 14px;background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);text-decoration:none;color:var(--text);transition:all 0.15s;font-size:13.5px;font-weight:500}
.related-link:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-050)}
.rl-arrow{margin-left:auto;color:var(--grey-300);transition:color 0.15s;flex-shrink:0}
.related-link:hover .rl-arrow{color:var(--blue)}

/* ── HOME ── */
.home-header{margin-bottom:36px}
.home-title{font-family:'Figtree',sans-serif;font-size:clamp(26px,4vw,38px);font-weight:800;color:var(--text);letter-spacing:-0.8px;margin-bottom:8px}
.home-sub{font-size:16px;color:var(--text-secondary);line-height:1.6}
.cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:36px}
.cat-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-lg);padding:22px;cursor:pointer;transition:all 0.15s;text-decoration:none;display:block}
.cat-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.cat-icon{width:38px;height:38px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.ci-blue{background:var(--blue-050);color:var(--blue)}
.ci-purple{background:#ede9fe;color:#7c3aed}
.ci-amber{background:var(--amber-100);color:var(--amber)}
.ci-green{background:var(--green-100);color:var(--green)}
.ci-navy{background:rgba(11,18,32,0.06);color:var(--navy)}
.cat-title{font-family:'Figtree',sans-serif;font-size:15px;font-weight:700;color:var(--text);margin-bottom:5px}
.cat-desc{font-size:13px;color:var(--text-secondary);line-height:1.55}
.cat-count{font-size:11.5px;color:var(--text-muted);margin-top:8px;font-weight:500}
.popular-section{margin-top:4px}
.popular-title{font-size:12px;font-weight:700;letter-spacing:0.6px;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px}
.pop-links{display:flex;flex-direction:column;gap:6px}
.pop-link{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-sm);font-size:13.5px;color:var(--text-secondary);cursor:pointer;transition:all 0.12s;font-weight:500;text-decoration:none}
.pop-link:hover{color:var(--blue);border-color:var(--blue-100);background:var(--blue-050)}
.pop-icon{color:var(--grey-300);flex-shrink:0}

/* ── FAQ ── */
.faq-list{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.faq-item{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);overflow:hidden}
.faq-question{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;font-size:14px;font-weight:600;color:var(--text);gap:12px;user-select:none;transition:background 0.1s}
.faq-question:hover{background:var(--grey-50)}
.faq-q-chevron{color:var(--grey-300);transition:transform 0.18s;flex-shrink:0}
.faq-item.open .faq-q-chevron{transform:rotate(90deg)}
.faq-answer{display:none;padding:0 16px 16px;font-size:13.5px;color:var(--text-secondary);line-height:1.65;border-top:1px solid var(--grey-100)}
.faq-item.open .faq-answer{display:block;padding-top:12px}
.faq-ref{margin-top:10px;font-size:12px;color:var(--text-muted)}
.faq-ref a{color:var(--blue);text-decoration:none;font-weight:500}
.faq-ref a:hover{text-decoration:underline}

/* ── GETTING STARTED ── */
.gs-steps{display:flex;flex-direction:column;gap:16px;margin-top:8px}
.gs-step{display:flex;gap:16px;background:var(--white);border:1px solid var(--grey-200);border-radius:var(--radius-md);padding:18px}
.gs-step-num{width:32px;height:32px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center;font-family:'Figtree',sans-serif;font-size:14px;font-weight:700;color:var(--white);flex-shrink:0}
.gs-step-body{flex:1;min-width:0}
.gs-step-title{font-family:'Figtree',sans-serif;font-size:15px;font-weight:700;color:var(--text);margin-bottom:5px}
.gs-step-desc{font-size:13.5px;color:var(--text-secondary);line-height:1.6;margin-bottom:8px}
.gs-step-required{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:var(--blue);background:var(--blue-050);border:1px solid var(--blue-100);border-radius:20px;padding:2px 8px}
.gs-step-optional{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:var(--text-muted);background:var(--grey-100);border:1px solid var(--grey-200);border-radius:20px;padding:2px 8px}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .sidebar{transform:translateX(-100%);z-index:180}
  .sidebar.open{transform:translateX(0)}
  .content{margin-left:0;padding:28px 24px 60px}
  .cat-grid{grid-template-columns:1fr}
  .mobile-menu-btn{display:flex}
  .header-applink{display:none}
  .header-search{max-width:none;flex:1}
}
@media(max-width:480px){
  .content{padding:20px 16px 60px}
  .step{flex-direction:column;gap:10px}
}
