/* V1-M10f.3f: full-width Ocean and Seaice titles above their icon rails.
 * Preserve existing controls, vertical navigation, and Ocean collapse behavior. */
#v2-module-home:has(#v2-ocean-workspace:not([hidden]))
#v2-ocean-workspace:not(.is-collapsed),
#v2-module-home:has(#v2-seaice-workspace:not([hidden]))
#v2-seaice-workspace {
    box-sizing: border-box;
    padding-top: 40px;
}

/* Anchor the title to the workspace, above both the rail and content column. */
#v2-ocean-workspace:not(.is-collapsed) #v2-ocean-sidebar-column,
#v2-seaice-workspace #v2-seaice-sidebar-column {
    position: static;
}
#v2-ocean-workspace:not(.is-collapsed) #v2-ocean-sidebar-header,
#v2-seaice-workspace #v2-seaice-sidebar-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 4;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 40px 0 12px;
    background: #0074d9;
}

#v2-seaice-workspace #v2-seaice-sidebar-collapse {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

#v2-seaice-workspace #v2-seaice-sidebar-collapse:hover {
    background: rgba(255, 255, 255, .15);
}

#v2-seaice-workspace #v2-seaice-sidebar-collapse:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

#v2-module-home:has(#v2-seaice-workspace:not([hidden]))
#v2-seaice-workspace.is-collapsed {
    width: 40px;
    padding-top: 0;
    border-right: 0;
}

#v2-seaice-workspace.is-collapsed #v2-seaice-sidebar-column,
#v2-seaice-workspace #v2-seaice-page-rail #v2-seaice-sidebar-expand[hidden] {
    display: none;
}
