/* Compact help navigation; marketing and application shells stay unchanged. */
body:has(.rs-header) {
  --text: #1a1a1a;
  --text-secondary: #1a1a1a;
  --text-muted: #595959;
  --border: #dedede;
  --border-strong: #d6d6d6;
  --support-link: #033a6d;
  --support-active: #edf3f8;
  --ai: var(--support-link);
  --ai-bg: var(--support-active);
  --ai-border: var(--border);
  --support-note-bg: rgba(232,232,232,.5);
  --support-note-border: rgba(115,115,118,.2);
  --support-info-bg: rgba(227,231,250,.5);
  --support-info-border: rgba(51,75,250,.2);
  --support-warning-bg: rgba(254,237,175,.5);
  --support-warning-border: rgba(251,201,22,.2);
  --support-caution-bg: rgba(255,243,205,.5);
  --support-caution-border: rgba(255,193,7,.2);
  --support-caution-strong-bg: #fff3cd;
  --support-danger-bg: rgba(254,217,219,.5);
  --support-danger-border: rgba(253,58,87,.2);
  --support-success-bg: rgba(215,239,220,.5);
  --support-success-border: rgba(27,177,87,.2);
}
.rs-header { position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--border); }
.rs-header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; max-width:1120px; min-height:83px; margin-inline:auto; padding:16px 24px; }
.rs-brand { display:inline-flex; align-items:center; gap:19px; flex-shrink:0; color:var(--text); text-decoration:none; }
.rs-brand img { display:block; width:150px; height:auto; }
.rs-brand span { padding-left:19px; border-left:1px solid var(--border-strong); font:600 15px/24px "Open Sans",Arial,sans-serif; }
.rs-header-links { display:flex; align-items:center; justify-content:flex-end; gap:24px; min-width:0; }
.rs-header-links a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font:600 13px/21px "Open Sans",Arial,sans-serif; text-decoration:none; }
.rs-site-link { color:var(--text-muted); }
.rs-site-link i { font-size:10px; }
.rs-site-link:hover, .rs-footer-links a:hover, .rs-footer-brand:hover { color:var(--ai); text-decoration:underline; text-underline-offset:4px; }
.rs-account { padding:10px 16px; border:1px solid transparent; border-radius:8px; background:var(--btn-action-bg); color:var(--btn-action-fg); white-space:nowrap; }
.rs-account:hover { background:var(--btn-action-hover); }
.rs-footer { margin-top:auto; border-top:1px solid var(--border); background:var(--surface-canvas); color:var(--text-muted); }
.rs-footer-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 28px; max-width:1120px; margin:auto; padding:26px 24px 88px; }
.rs-footer-brand { display:inline-flex; align-items:center; min-height:44px; color:var(--text-muted); font:600 13px/21px "Open Sans",Arial,sans-serif; text-decoration:none; }
.rs-footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:3px 22px; }
.rs-footer-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--text-muted); font:400 13px/21px "Open Sans",Arial,sans-serif; text-decoration:none; }
.rs-header a:focus-visible, .rs-footer a:focus-visible { outline:2px solid var(--btn-action-ring); outline-offset:4px; }
@media(max-width:1023px) {
  body[data-public-site]:has(.rs-header) #ai-chat-widget { top:auto !important; right:16px !important; bottom:calc(16px + env(safe-area-inset-bottom,0px)) !important; }
  body[data-public-site]:has(.rs-header) #ai-chat-widget:has(#ai-chat-window.active) #chat-toggle-btn { visibility:hidden; pointer-events:none; }
}
@media(max-width:650px) {
  .rs-header-inner { min-height:75px; padding:13px 20px; gap:12px; flex-wrap:wrap; }
  .rs-brand { gap:12px; }
  .rs-brand img { width:125px; }
  .rs-brand span { padding-left:12px; font-size:13px; }
  .rs-header-links { gap:14px; }
  .rs-site-link { display:none !important; }
  .rs-account { padding-inline:12px; }
  .rs-footer-inner { padding:20px 20px 92px; gap:4px; }
  .rs-footer-links { width:100%; gap:2px 22px; }
}
@media(max-width:380px) {
  .rs-header-inner { padding-inline:16px; gap:8px; }
  .rs-brand img { width:105px; }
  .rs-brand, .rs-brand span { gap:9px; padding-left:0; }
  .rs-brand span { border-left:0; font-size:12px; }
  .rs-account { padding-inline:10px; font-size:12px !important; }
}
@media print { .rs-header, .rs-footer { display:none; } }

/* Shared collection navigation for the Help index, collections and articles. */
.rs-header { z-index:60; background:var(--surface); color:var(--text); border-bottom:1px solid var(--border); }
.rs-header-inner { max-width:none; min-height:60px; padding:8px 24px; gap:20px; }
.rs-brand { gap:14px; color:var(--text); }
.rs-brand img { width:134px; }
.rs-brand span { border-left:0; padding-left:0; font-size:13px; line-height:22px; }
.rs-header-links { gap:22px; }
.rs-header-links a { color:var(--text); }
.rs-header-links .rs-login { font-weight:400; font-size:14px; }
.rs-header-links a:hover { text-decoration:underline; text-underline-offset:4px; }
.rs-search-button, .rs-menu { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:40px; padding:7px 12px; border:1px solid var(--border-strong); border-radius:7px; color:var(--text); background:transparent; }
.rs-search-button kbd { padding:1px 4px; font:11px/18px "Open Sans",Arial,sans-serif; opacity:.8; }
.rs-menu { display:none; }
.rs-header :is(a,button):focus-visible { outline:2px solid var(--ai); outline-offset:3px; }
.rs-sidebar { position:fixed; top:var(--rs-header-height,60px); bottom:0; left:0; z-index:45; width:272px; overflow-y:auto; overscroll-behavior:contain; border-right:1px solid var(--border); background:var(--surface); padding:24px 16px 48px; }
.rs-sidebar ul { padding:0; margin:0; list-style:none; }
.rs-all-collections { display:flex; align-items:center; gap:10px; padding:10px 8px; margin-bottom:8px; font-weight:600; text-decoration:none; color:var(--text); }
.rs-tree summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:36px; cursor:pointer; list-style:none; border-radius:6px; }
.rs-tree summary::-webkit-details-marker { display:none; }
.rs-tree summary a { display:flex; align-items:baseline; flex:1; gap:10px; min-width:0; padding:8px; font:600 14px/20px "Open Sans",Arial,sans-serif; color:var(--text); text-decoration:none; }
.rs-tree summary a i { width:16px; flex-shrink:0; color:var(--text-muted); }
.rs-tree-chevron { width:7px; height:7px; border-right:1px solid var(--text-muted); border-bottom:1px solid var(--text-muted); transform:rotate(-45deg); flex-shrink:0; margin-right:12px; }
.rs-tree details[open] > summary .rs-tree-chevron { transform:rotate(45deg); }
.rs-tree details > ul { margin-left:12px; padding-left:8px; border-left:1px solid var(--border); }
.rs-tree details > ul summary a { font-size:13px; font-weight:400; }
.rs-tree details > ul summary a i { display:none; }
.rs-tree-article { display:block; padding:9px 8px; color:var(--text-muted); text-decoration:none; font:400 12px/20px "Open Sans",Arial,sans-serif; border-radius:5px; overflow-wrap:anywhere; }
.rs-sidebar a:hover { color:var(--support-link); background:var(--support-active); }
.rs-sidebar a[aria-current="page"] { color:var(--support-link); background:var(--support-active); font-weight:600; }
.rs-sidebar :is(a,summary):focus-visible { outline:2px solid var(--ai); outline-offset:2px; }
.rs-main, .rs-footer { margin-left:272px; min-width:0; }
.rs-main { min-height:calc(100vh - var(--rs-header-height,60px)); }
.rs-footer { margin-left:0; background:var(--surface); }
.rs-footer-inner { display:flex; flex-direction:column; justify-content:flex-start; gap:20px; padding:44px 24px 52px; text-align:center; }
.rs-footer-brand { min-height:36px; }
.rs-footer-brand img { display:block; width:134px; height:auto; }
.rs-footer-description { margin:0; font:14px/24px "Open Sans",Arial,sans-serif; color:var(--support-link); }
.rs-footer-links { justify-content:center; gap:6px 22px; margin-top:10px; }
.rs-footer-links a { color:var(--support-link); font-size:14px; }
body:has(.rs-header) #ai-chat-widget { display:none !important; }
.rs-footer-inner { padding-inline:40px; }
.rs-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.rs-header [hidden] { display:none !important; }
.rs-mobile-logins { display:none; }
.rs-main .ha-search-inner { max-width:1200px; padding:20px 40px; }
.rs-main .ha-wrap { max-width:none; padding:32px 40px 64px 52px; }
.rs-main .ha-layout { grid-template-columns:minmax(0,1fr) 240px; gap:32px; }
.rs-main .ha-breadcrumbs { margin-bottom:16px; }
@media(max-width:1100px) {
  .rs-main .ha-layout { grid-template-columns:minmax(0,1fr); }
  .rs-main .ha-sidebar { display:none; }
  .rs-main .ha-mobile-toc:not([hidden]) { display:block; }
}
@media(max-width:900px) {
  .rs-header-inner { padding-inline:20px; }
  .rs-brand span { display:none; }
  .rs-header-links { gap:16px; }
  .rs-menu:not([hidden]) { display:inline-flex; }
  .rs-main, .rs-footer { margin-left:0; }
  .rs-sidebar { position:static; width:auto; border-bottom:1px solid var(--border); border-right:0; padding:16px 20px; }
  .rs-navigation-ready .rs-sidebar { display:none; position:fixed; top:var(--rs-header-height,60px); bottom:0; width:min(340px,100%); border-right:1px solid var(--border); box-shadow:8px 0 24px color-mix(in srgb,var(--text) 12%,transparent); }
  .rs-navigation-ready .rs-sidebar-open { display:block; }
}
@media(max-width:600px) {
  .rs-header-inner { padding:8px 16px; flex-wrap:wrap; gap:4px 12px; }
  .rs-brand img { width:116px; }
  .rs-header-links { gap:10px; }
  .rs-header-links .rs-login { display:none; }
  .rs-mobile-logins { display:flex; flex-direction:column; gap:6px; margin-top:24px; padding-top:12px; border-top:1px solid var(--border); }
  .rs-mobile-logins a { padding:12px 8px; color:var(--text); font:600 13px/20px "Open Sans",Arial,sans-serif; text-decoration:none; }
  .rs-header-links a { font-size:11px; }
  .rs-search-button { padding-inline:9px; font-size:0; gap:0; }
  .rs-search-button kbd { display:none; }
  .rs-search-button i { font-size:14px; }
  .rs-menu { padding-inline:10px; }
  .rs-footer-inner { padding-inline:20px; }
  .rs-main .ha-search-inner, .rs-main .ha-wrap { padding-inline:20px; }
}
@media print { .rs-sidebar { display:none; } .rs-main { margin-left:0; } }

.rs-search-dialog { width:min(640px,calc(100% - 32px)); max-height:calc(100dvh - 64px); margin:10vh auto auto; padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:0 18px 60px color-mix(in srgb,var(--text) 20%,transparent); overflow:auto; }
.rs-search-dialog::backdrop { background:color-mix(in srgb,var(--text) 40%,transparent); }
.rs-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.rs-dialog-heading h2 { margin:0; font:600 17px/26px "Open Sans",Arial,sans-serif; }
.rs-dialog-close { flex-shrink:0; width:40px; height:40px; border:1px solid var(--border); border-radius:7px; background:var(--surface); font-size:26px; line-height:1; }
.rs-dialog-form { display:flex; align-items:center; gap:12px; border:1px solid var(--border-strong); border-radius:8px; padding:6px 6px 6px 12px; }
.rs-dialog-form input { min-width:0; width:100%; border:0; background:var(--surface); font:16px/24px "Open Sans",Arial,sans-serif; color:var(--text); }
.rs-dialog-form .pd-action { flex-shrink:0; }
.rs-dialog-form:focus-within { outline:2px solid var(--ai); outline-offset:2px; }
.rs-dialog-form input:focus { outline:none; box-shadow:none; }
.rs-search-status { margin:16px 0 8px; color:var(--text-muted); font-size:13px; }
.rs-search-results a { display:block; padding:14px 8px; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.rs-search-results a:hover { background:var(--ai-bg); }
.rs-search-results :is(strong,span) { display:block; font:600 14px/22px "Open Sans",Arial,sans-serif; }
.rs-search-results span { margin-top:4px; color:var(--text-muted); font-size:12px; font-weight:400; }
.rs-search-dialog :is(button,a):focus-visible { outline:2px solid var(--ai); outline-offset:3px; }
@media(max-width:600px) { .rs-search-dialog { margin-top:5vh; padding:16px; } .rs-dialog-form { gap:8px; } .rs-dialog-form > i { display:none; } }
@media print { .rs-search-dialog { display:none; } }
