/* Shared slide-out page help panel (os-help-*).
   Loaded globally so any page can drop in the markup (see includes/help_panel.php)
   and be driven by the delegated handler in js/modules/pages/help-panel.ts. */

.os-help-handle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #35486E;
    color: #fff;
    writing-mode: vertical-rl;
    padding: 16px 7px;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    z-index: 3800;
    box-shadow: -2px 0 8px rgba(0, 0, 0, .18);
}

.os-help-handle:hover {
    background: #2c3a58;
}

/* For pages with a fixed right-side rail (~160px): sit the handle to its left. */
.os-help-handle.os-help-offset {
    right: 168px;
}

.os-help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 38, .35);
    z-index: 3900;
}

.os-help-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 390px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .22);
    z-index: 3950;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.os-help-drawer.open {
    transform: translateX(0);
}

.os-help-head {
    position: sticky;
    top: 0;
    background: #35486E;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
}

.os-help-head h3 {
    margin: 0;
    font-size: 15px;
}

.os-help-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.os-help-body {
    padding: 16px 18px 44px;
    font-size: 13px;
    color: #2c3446;
    line-height: 1.5;
}

.os-help-body h4 {
    margin: 18px 0 6px;
    font-size: 12px;
    color: #35486E;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.os-help-body h4:first-child {
    margin-top: 0;
}

.os-help-body p {
    margin: 0 0 8px;
}

.os-help-body ol,
.os-help-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.os-help-body li {
    margin-bottom: 4px;
}

.os-help-body .tip {
    background: #eef4ff;
    border-left: 3px solid #9db6e8;
    padding: 8px 10px;
    border-radius: 4px;
    margin: 8px 0;
}
